diff options
Diffstat (limited to 'src/include/operators.h')
-rw-r--r-- | src/include/operators.h | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/src/include/operators.h b/src/include/operators.h index bc03607..fe28680 100644 --- a/src/include/operators.h +++ b/src/include/operators.h @@ -23,7 +23,7 @@ namespace Binc { enum class ProcessResult { OK, BAD, NO, NOTHING, ABORT }; virtual ProcessResult process(Depot &, Request &) = 0; - virtual Parser::ParseResult parse(Request &) = 0; + virtual Parser::ParseResult parse(Request &, Parser &) = 0; virtual Session::State getState() const = 0; virtual const std::string getName() const = 0; @@ -32,7 +32,7 @@ namespace Binc { struct AppendOperator : public Operator { ProcessResult process(Depot &, Request &) final; - Parser::ParseResult parse(Request &) final; + Parser::ParseResult parse(Request &, Parser &) final; const std::string getName() const final; Session::State getState() const final; @@ -43,7 +43,7 @@ namespace Binc { class AuthenticateOperator : public Operator { public: ProcessResult process(Depot &, Request &) override; - virtual Parser::ParseResult parse(Request &) override; + virtual Parser::ParseResult parse(Request &, Parser &) override; const std::string getName() const override; Session::State getState() const override; @@ -61,7 +61,7 @@ namespace Binc { public: ProcessResult process(Depot &, Request &); - virtual Parser::ParseResult parse(Request &); + virtual Parser::ParseResult parse(Request &, Parser &); const std::string getName() const; Session::State getState() const; @@ -75,7 +75,7 @@ namespace Binc { class CheckOperator : public Operator { public: ProcessResult process(Depot &, Request &); - virtual Parser::ParseResult parse(Request &); + virtual Parser::ParseResult parse(Request &, Parser &); const std::string getName() const; Session::State getState() const; @@ -87,7 +87,7 @@ namespace Binc { class CreateOperator : public Operator { public: ProcessResult process(Depot &, Request &); - virtual Parser::ParseResult parse(Request &); + virtual Parser::ParseResult parse(Request &, Parser &); const std::string getName() const; Session::State getState() const; @@ -99,7 +99,7 @@ namespace Binc { class CloseOperator : public Operator { public: ProcessResult process(Depot &, Request &); - virtual Parser::ParseResult parse(Request &); + virtual Parser::ParseResult parse(Request &, Parser &); const std::string getName() const; Session::State getState() const; @@ -111,7 +111,7 @@ namespace Binc { class CopyOperator : public Operator { public: ProcessResult process(Depot &, Request &); - virtual Parser::ParseResult parse(Request &); + virtual Parser::ParseResult parse(Request &, Parser &); const std::string getName() const; Session::State getState() const; @@ -123,7 +123,7 @@ namespace Binc { class DeleteOperator : public Operator { public: ProcessResult process(Depot &, Request &); - virtual Parser::ParseResult parse(Request &); + virtual Parser::ParseResult parse(Request &, Parser &); const std::string getName() const; Session::State getState() const; @@ -135,7 +135,7 @@ namespace Binc { class ExpungeOperator : public Operator { public: ProcessResult process(Depot &, Request &); - virtual Parser::ParseResult parse(Request &); + virtual Parser::ParseResult parse(Request &, Parser &); const std::string getName() const; Session::State getState() const; @@ -146,15 +146,15 @@ namespace Binc { class FetchOperator : public Operator { protected: - Parser::ParseResult expectSectionText(BincImapParserFetchAtt &f_in) const; - Parser::ParseResult expectSection(BincImapParserFetchAtt &f_in) const; - Parser::ParseResult expectFetchAtt(BincImapParserFetchAtt &f_in) const; - Parser::ParseResult expectOffset(BincImapParserFetchAtt &f_in) const; - Parser::ParseResult expectHeaderList(BincImapParserFetchAtt &f_in) const; + Parser::ParseResult expectSectionText(BincImapParserFetchAtt &f_in, Parser &p) const; + Parser::ParseResult expectSection(BincImapParserFetchAtt &f_in, Parser &p) const; + Parser::ParseResult expectFetchAtt(BincImapParserFetchAtt &f_in, Parser &p) const; + Parser::ParseResult expectOffset(BincImapParserFetchAtt &f_in, Parser &p) const; + Parser::ParseResult expectHeaderList(BincImapParserFetchAtt &f_in, Parser &p) const; public: ProcessResult process(Depot &, Request &); - virtual Parser::ParseResult parse(Request &); + virtual Parser::ParseResult parse(Request &, Parser &); const std::string getName() const; Session::State getState() const; @@ -166,7 +166,7 @@ namespace Binc { class IdOperator : public Operator { public: ProcessResult process(Depot &, Request &); - virtual Parser::ParseResult parse(Request &); + virtual Parser::ParseResult parse(Request &, Parser &); const std::string getName() const; Session::State getState() const; @@ -185,7 +185,7 @@ namespace Binc { public: ProcessResult process(Depot &, Request &); - virtual Parser::ParseResult parse(Request &); + virtual Parser::ParseResult parse(Request &, Parser &); const std::string getName() const; Session::State getState() const; @@ -208,7 +208,7 @@ namespace Binc { public: ProcessResult process(Depot &, Request &); - virtual Parser::ParseResult parse(Request &); + virtual Parser::ParseResult parse(Request &, Parser &); const std::string getName() const; Session::State getState() const; @@ -220,7 +220,7 @@ namespace Binc { class LoginOperator : public Operator { public: ProcessResult process(Depot &, Request &); - virtual Parser::ParseResult parse(Request &); + virtual Parser::ParseResult parse(Request &, Parser &); const std::string getName() const; Session::State getState() const; @@ -232,7 +232,7 @@ namespace Binc { class LogoutOperator : public Operator { public: ProcessResult process(Depot &, Request &); - virtual Parser::ParseResult parse(Request &); + virtual Parser::ParseResult parse(Request &, Parser &); const std::string getName() const; Session::State getState() const; @@ -244,7 +244,7 @@ namespace Binc { class LsubOperator : public Operator { public: ProcessResult process(Depot &, Request &); - virtual Parser::ParseResult parse(Request &); + virtual Parser::ParseResult parse(Request &, Parser &); const std::string getName() const; Session::State getState() const; @@ -256,7 +256,7 @@ namespace Binc { class NamespaceOperator : public Operator { public: virtual ProcessResult process(Depot &, Request &); - virtual Parser::ParseResult parse(Request &); + virtual Parser::ParseResult parse(Request &, Parser &); const std::string getName() const; Session::State getState() const; @@ -268,7 +268,7 @@ namespace Binc { class NoopOperator : public Operator { public: virtual ProcessResult process(Depot &, Request &); - virtual Parser::ParseResult parse(Request &); + virtual Parser::ParseResult parse(Request &, Parser &); const std::string getName() const; Session::State getState() const; @@ -288,7 +288,7 @@ namespace Binc { class RenameOperator : public Operator { public: ProcessResult process(Depot &, Request &); - virtual Parser::ParseResult parse(Request &); + virtual Parser::ParseResult parse(Request &, Parser &); const std::string getName() const; Session::State getState() const; @@ -299,7 +299,7 @@ namespace Binc { class SearchOperator : public Operator { protected: - Parser::ParseResult expectSearchKey(BincImapParserSearchKey &s_in) const; + Parser::ParseResult expectSearchKey(BincImapParserSearchKey &s_in, Parser &p) const; class SearchNode { std::string date; @@ -384,7 +384,7 @@ namespace Binc { public: ProcessResult process(Depot &, Request &); - virtual Parser::ParseResult parse(Request &); + virtual Parser::ParseResult parse(Request &, Parser &); const std::string getName() const; Session::State getState() const; @@ -396,7 +396,7 @@ namespace Binc { class SelectOperator : public Operator { public: ProcessResult process(Depot &, Request &); - virtual Parser::ParseResult parse(Request &); + virtual Parser::ParseResult parse(Request &, Parser &); const std::string getName() const; Session::State getState() const; @@ -415,7 +415,7 @@ namespace Binc { class StarttlsOperator : public Operator { public: ProcessResult process(Depot &, Request &); - virtual Parser::ParseResult parse(Request &); + virtual Parser::ParseResult parse(Request &, Parser &); const std::string getName() const; Session::State getState() const; @@ -430,7 +430,7 @@ namespace Binc { public: ProcessResult process(Depot &, Request &); - virtual Parser::ParseResult parse(Request &); + virtual Parser::ParseResult parse(Request &, Parser &); const std::string getName() const; Session::State getState() const; @@ -442,7 +442,7 @@ namespace Binc { class StoreOperator : public Operator { public: ProcessResult process(Depot &, Request &); - virtual Parser::ParseResult parse(Request &); + virtual Parser::ParseResult parse(Request &, Parser &); const std::string getName() const; Session::State getState() const; @@ -454,7 +454,7 @@ namespace Binc { class SubscribeOperator : public Operator { public: ProcessResult process(Depot &, Request &); - virtual Parser::ParseResult parse(Request &); + virtual Parser::ParseResult parse(Request &, Parser &); const std::string getName() const; Session::State getState() const; @@ -466,7 +466,7 @@ namespace Binc { class UnsubscribeOperator : public Operator { public: ProcessResult process(Depot &, Request &); - virtual Parser::ParseResult parse(Request &); + virtual Parser::ParseResult parse(Request &, Parser &); const std::string getName() const; Session::State getState() const; |