summaryrefslogtreecommitdiff
path: root/src/include/depot.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/depot.h')
-rw-r--r--src/include/depot.h46
1 files changed, 23 insertions, 23 deletions
diff --git a/src/include/depot.h b/src/include/depot.h
index 3e65c8e..0d3cfae 100644
--- a/src/include/depot.h
+++ b/src/include/depot.h
@@ -23,33 +23,33 @@ namespace Binc {
class DepotFactory {
private:
std::vector<Depot *> depots;
- DepotFactory(void);
+ DepotFactory();
public:
void assign(Depot *);
Depot *get(const std::string &name) const;
- static DepotFactory &getInstance(void);
- ~DepotFactory(void);
+ static DepotFactory &getInstance();
+ ~DepotFactory();
};
class Depot {
public:
class iterator {
public:
- iterator(void);
+ iterator();
iterator(const iterator &copy);
iterator(DIR *, struct dirent *);
- ~iterator(void);
+ ~iterator();
iterator &operator=(const iterator &copy);
- std::string operator*(void) const;
- void operator++(void);
+ std::string operator*() const;
+ void operator++();
bool operator!=(iterator) const;
bool operator==(iterator) const;
- void deref(void);
+ void deref();
friend class Depot;
@@ -78,31 +78,31 @@ namespace Binc {
public:
Depot();
Depot(const std::string &name);
- virtual ~Depot(void) = default;
+ virtual ~Depot() = default;
virtual iterator begin(const std::string &) const;
- virtual const iterator &end(void) const;
+ virtual const iterator &end() const;
void setDelimiter(char);
- char getDelimiter(void) const;
+ char getDelimiter() const;
virtual void assign(Mailbox *);
bool setDefaultType(const std::string &n);
- Mailbox *getDefault(void) const;
+ Mailbox *getDefault() const;
virtual Mailbox *get(const std::string &path) const;
virtual bool setSelected(Mailbox *);
- virtual Mailbox *getSelected(void) const;
- void resetSelected(void);
+ virtual Mailbox *getSelected() const;
+ void resetSelected();
bool getStatus(const std::string &s_in, Status &dest) const;
- const std::string &getName(void) const;
+ const std::string &getName() const;
- virtual const std::string &getPersonalNamespace(void) const;
- virtual const std::string &getOthersNamespace(void) const;
- virtual const std::string &getSharedNamespace(void) const;
+ virtual const std::string &getPersonalNamespace() const;
+ virtual const std::string &getOthersNamespace() const;
+ virtual const std::string &getSharedNamespace() const;
virtual std::string mailboxToFilename(const std::string &m) const = 0;
virtual std::string filenameToMailbox(const std::string &m) const = 0;
@@ -111,14 +111,14 @@ namespace Binc {
virtual bool deleteMailbox(const std::string &m) const;
virtual bool renameMailbox(const std::string &m, const std::string &n) const;
- const std::string &getLastError(void) const;
+ const std::string &getLastError() const;
void setLastError(const std::string &error) const;
- virtual std::vector<std::string> getSubscriptions(void) const;
+ virtual std::vector<std::string> getSubscriptions() const;
virtual void subscribeTo(const std::string mailbox);
virtual bool unsubscribeTo(const std::string mailbox);
- virtual void loadSubscribes(void);
- virtual bool saveSubscribes(void) const;
+ virtual void loadSubscribes();
+ virtual bool saveSubscribes() const;
};
class MaildirPPDepot : public Depot {
@@ -126,7 +126,7 @@ namespace Binc {
std::string mailboxToFilename(const std::string &m) const;
std::string filenameToMailbox(const std::string &m) const;
- const std::string &getPersonalNamespace(void) const;
+ const std::string &getPersonalNamespace() const;
MaildirPPDepot();
~MaildirPPDepot();