summaryrefslogtreecommitdiff
path: root/src/include/operators.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/operators.h')
-rw-r--r--src/include/operators.h234
1 files changed, 117 insertions, 117 deletions
diff --git a/src/include/operators.h b/src/include/operators.h
index f6bb987..9cfd10a 100644
--- a/src/include/operators.h
+++ b/src/include/operators.h
@@ -25,21 +25,21 @@ namespace Binc {
virtual ProcessResult process(Depot &, Request &) = 0;
virtual ParseResult parse(Request &) const = 0;
- virtual int getState(void) const = 0;
- virtual const std::string getName(void) const = 0;
+ virtual int getState() const = 0;
+ virtual const std::string getName() const = 0;
- virtual ~Operator(void){};
+ virtual ~Operator(){};
};
class AppendOperator : public Operator {
public:
ProcessResult process(Depot &, Request &);
virtual ParseResult parse(Request &) const;
- const std::string getName(void) const;
- int getState(void) const;
+ const std::string getName() const;
+ int getState() const;
- AppendOperator(void);
- ~AppendOperator(void);
+ AppendOperator();
+ ~AppendOperator();
};
class AuthenticateOperator : public Operator {
@@ -47,15 +47,15 @@ namespace Binc {
ProcessResult process(Depot &, Request &);
virtual ParseResult parse(Request &) const;
- const std::string getName(void) const;
- int getState(void) const;
+ const std::string getName() const;
+ int getState() const;
ProcessResult Login(std::string &username, std::string &password);
ProcessResult Plain(std::string &username, std::string &password);
ProcessResult Cram(std::string &username, std::string &password, std::string &challenge);
- AuthenticateOperator(void);
- ~AuthenticateOperator(void);
+ AuthenticateOperator();
+ ~AuthenticateOperator();
};
class CapabilityOperator : public Operator {
@@ -65,13 +65,13 @@ namespace Binc {
ProcessResult process(Depot &, Request &);
virtual ParseResult parse(Request &) const;
- const std::string getName(void) const;
- int getState(void) const;
+ const std::string getName() const;
+ int getState() const;
void addCapability(const std::string &cap);
- CapabilityOperator(void);
- ~CapabilityOperator(void);
+ CapabilityOperator();
+ ~CapabilityOperator();
};
class CheckOperator : public Operator {
@@ -79,11 +79,11 @@ namespace Binc {
ProcessResult process(Depot &, Request &);
virtual ParseResult parse(Request &) const;
- const std::string getName(void) const;
- int getState(void) const;
+ const std::string getName() const;
+ int getState() const;
- CheckOperator(void);
- ~CheckOperator(void);
+ CheckOperator();
+ ~CheckOperator();
};
class CreateOperator : public Operator {
@@ -91,11 +91,11 @@ namespace Binc {
ProcessResult process(Depot &, Request &);
virtual ParseResult parse(Request &) const;
- const std::string getName(void) const;
- int getState(void) const;
+ const std::string getName() const;
+ int getState() const;
- CreateOperator(void);
- ~CreateOperator(void);
+ CreateOperator();
+ ~CreateOperator();
};
class CloseOperator : public Operator {
@@ -103,11 +103,11 @@ namespace Binc {
ProcessResult process(Depot &, Request &);
virtual ParseResult parse(Request &) const;
- const std::string getName(void) const;
- int getState(void) const;
+ const std::string getName() const;
+ int getState() const;
- CloseOperator(void);
- ~CloseOperator(void);
+ CloseOperator();
+ ~CloseOperator();
};
class CopyOperator : public Operator {
@@ -115,11 +115,11 @@ namespace Binc {
ProcessResult process(Depot &, Request &);
virtual ParseResult parse(Request &) const;
- const std::string getName(void) const;
- int getState(void) const;
+ const std::string getName() const;
+ int getState() const;
- CopyOperator(void);
- ~CopyOperator(void);
+ CopyOperator();
+ ~CopyOperator();
};
class DeleteOperator : public Operator {
@@ -127,11 +127,11 @@ namespace Binc {
ProcessResult process(Depot &, Request &);
virtual ParseResult parse(Request &) const;
- const std::string getName(void) const;
- int getState(void) const;
+ const std::string getName() const;
+ int getState() const;
- DeleteOperator(void);
- ~DeleteOperator(void);
+ DeleteOperator();
+ ~DeleteOperator();
};
class ExpungeOperator : public Operator {
@@ -139,11 +139,11 @@ namespace Binc {
ProcessResult process(Depot &, Request &);
virtual ParseResult parse(Request &) const;
- const std::string getName(void) const;
- int getState(void) const;
+ const std::string getName() const;
+ int getState() const;
- ExpungeOperator(void);
- ~ExpungeOperator(void);
+ ExpungeOperator();
+ ~ExpungeOperator();
};
class FetchOperator : public Operator {
@@ -158,11 +158,11 @@ namespace Binc {
ProcessResult process(Depot &, Request &);
virtual ParseResult parse(Request &) const;
- const std::string getName(void) const;
- int getState(void) const;
+ const std::string getName() const;
+ int getState() const;
- FetchOperator(void);
- ~FetchOperator(void);
+ FetchOperator();
+ ~FetchOperator();
};
class IdOperator : public Operator {
@@ -170,11 +170,11 @@ namespace Binc {
ProcessResult process(Depot &, Request &);
virtual ParseResult parse(Request &) const;
- const std::string getName(void) const;
- int getState(void) const;
+ const std::string getName() const;
+ int getState() const;
- IdOperator(void);
- ~IdOperator(void);
+ IdOperator();
+ ~IdOperator();
};
class IdleOperator : public Operator {
@@ -189,11 +189,11 @@ namespace Binc {
ProcessResult process(Depot &, Request &);
virtual ParseResult parse(Request &) const;
- const std::string getName(void) const;
- int getState(void) const;
+ const std::string getName() const;
+ int getState() const;
- IdleOperator(void);
- ~IdleOperator(void);
+ IdleOperator();
+ ~IdleOperator();
};
class ListOperator : public Operator {
@@ -212,11 +212,11 @@ namespace Binc {
ProcessResult process(Depot &, Request &);
virtual ParseResult parse(Request &) const;
- const std::string getName(void) const;
- int getState(void) const;
+ const std::string getName() const;
+ int getState() const;
- ListOperator(void);
- ~ListOperator(void);
+ ListOperator();
+ ~ListOperator();
};
class LoginOperator : public Operator {
@@ -224,11 +224,11 @@ namespace Binc {
ProcessResult process(Depot &, Request &);
virtual ParseResult parse(Request &) const;
- const std::string getName(void) const;
- int getState(void) const;
+ const std::string getName() const;
+ int getState() const;
- LoginOperator(void);
- ~LoginOperator(void);
+ LoginOperator();
+ ~LoginOperator();
};
class LogoutOperator : public Operator {
@@ -236,11 +236,11 @@ namespace Binc {
ProcessResult process(Depot &, Request &);
virtual ParseResult parse(Request &) const;
- const std::string getName(void) const;
- int getState(void) const;
+ const std::string getName() const;
+ int getState() const;
- LogoutOperator(void);
- ~LogoutOperator(void);
+ LogoutOperator();
+ ~LogoutOperator();
};
class LsubOperator : public Operator {
@@ -248,11 +248,11 @@ namespace Binc {
ProcessResult process(Depot &, Request &);
virtual ParseResult parse(Request &) const;
- const std::string getName(void) const;
- int getState(void) const;
+ const std::string getName() const;
+ int getState() const;
- LsubOperator(void);
- ~LsubOperator(void);
+ LsubOperator();
+ ~LsubOperator();
};
class NamespaceOperator : public Operator {
@@ -260,11 +260,11 @@ namespace Binc {
virtual ProcessResult process(Depot &, Request &);
virtual ParseResult parse(Request &) const;
- const std::string getName(void) const;
- int getState(void) const;
+ const std::string getName() const;
+ int getState() const;
- NamespaceOperator(void);
- ~NamespaceOperator(void);
+ NamespaceOperator();
+ ~NamespaceOperator();
};
class NoopOperator : public Operator {
@@ -272,19 +272,19 @@ namespace Binc {
virtual ProcessResult process(Depot &, Request &);
virtual ParseResult parse(Request &) const;
- const std::string getName(void) const;
- int getState(void) const;
+ const std::string getName() const;
+ int getState() const;
- NoopOperator(void);
- ~NoopOperator(void);
+ NoopOperator();
+ ~NoopOperator();
};
class NoopPendingOperator : public NoopOperator {
public:
ProcessResult process(Depot &, Request &);
- NoopPendingOperator(void);
- ~NoopPendingOperator(void);
+ NoopPendingOperator();
+ ~NoopPendingOperator();
};
class RenameOperator : public Operator {
@@ -292,11 +292,11 @@ namespace Binc {
ProcessResult process(Depot &, Request &);
virtual ParseResult parse(Request &) const;
- const std::string getName(void) const;
- int getState(void) const;
+ const std::string getName() const;
+ int getState() const;
- RenameOperator(void);
- ~RenameOperator(void);
+ RenameOperator();
+ ~RenameOperator();
};
class SearchOperator : public Operator {
@@ -361,7 +361,7 @@ namespace Binc {
const std::string &delim = "-");
static bool convertDateHeader(const std::string &d_in, time_t &t);
- void order(void);
+ void order();
bool match(Mailbox *,
Message *,
@@ -369,8 +369,8 @@ namespace Binc {
unsigned int lastmessage,
unsigned int lastuid) const;
- int getType(void) const;
- int getWeight(void) const;
+ int getType() const;
+ int getWeight() const;
void setWeight(int i);
void init(const BincImapParserSearchKey &a);
@@ -380,7 +380,7 @@ namespace Binc {
return a.getWeight() < b.getWeight();
}
- SearchNode(void);
+ SearchNode();
SearchNode(const BincImapParserSearchKey &a);
};
@@ -388,11 +388,11 @@ namespace Binc {
ProcessResult process(Depot &, Request &);
virtual ParseResult parse(Request &) const;
- const std::string getName(void) const;
- int getState(void) const;
+ const std::string getName() const;
+ int getState() const;
- SearchOperator(void);
- ~SearchOperator(void);
+ SearchOperator();
+ ~SearchOperator();
};
class SelectOperator : public Operator {
@@ -400,18 +400,18 @@ namespace Binc {
ProcessResult process(Depot &, Request &);
virtual ParseResult parse(Request &) const;
- const std::string getName(void) const;
- int getState(void) const;
+ const std::string getName() const;
+ int getState() const;
- SelectOperator(void);
- ~SelectOperator(void);
+ SelectOperator();
+ ~SelectOperator();
};
class ExamineOperator : public SelectOperator {
public:
- const std::string getName(void) const;
- ExamineOperator(void);
- ~ExamineOperator(void);
+ const std::string getName() const;
+ ExamineOperator();
+ ~ExamineOperator();
};
class StarttlsOperator : public Operator {
@@ -419,12 +419,12 @@ namespace Binc {
ProcessResult process(Depot &, Request &);
virtual ParseResult parse(Request &) const;
- const std::string getName(void) const;
- int getState(void) const;
- int goStartTLS(void) const;
+ const std::string getName() const;
+ int getState() const;
+ int goStartTLS() const;
- StarttlsOperator(void);
- ~StarttlsOperator(void);
+ StarttlsOperator();
+ ~StarttlsOperator();
};
class StatusOperator : public Operator {
@@ -434,11 +434,11 @@ namespace Binc {
ProcessResult process(Depot &, Request &);
virtual ParseResult parse(Request &) const;
- const std::string getName(void) const;
- int getState(void) const;
+ const std::string getName() const;
+ int getState() const;
- StatusOperator(void);
- ~StatusOperator(void);
+ StatusOperator();
+ ~StatusOperator();
};
class StoreOperator : public Operator {
@@ -446,11 +446,11 @@ namespace Binc {
ProcessResult process(Depot &, Request &);
virtual ParseResult parse(Request &) const;
- const std::string getName(void) const;
- int getState(void) const;
+ const std::string getName() const;
+ int getState() const;
- StoreOperator(void);
- ~StoreOperator(void);
+ StoreOperator();
+ ~StoreOperator();
};
class SubscribeOperator : public Operator {
@@ -458,11 +458,11 @@ namespace Binc {
ProcessResult process(Depot &, Request &);
virtual ParseResult parse(Request &) const;
- const std::string getName(void) const;
- int getState(void) const;
+ const std::string getName() const;
+ int getState() const;
- SubscribeOperator(void);
- ~SubscribeOperator(void);
+ SubscribeOperator();
+ ~SubscribeOperator();
};
class UnsubscribeOperator : public Operator {
@@ -470,11 +470,11 @@ namespace Binc {
ProcessResult process(Depot &, Request &);
virtual ParseResult parse(Request &) const;
- const std::string getName(void) const;
- int getState(void) const;
+ const std::string getName() const;
+ int getState() const;
- UnsubscribeOperator(void);
- ~UnsubscribeOperator(void);
+ UnsubscribeOperator();
+ ~UnsubscribeOperator();
};
}