diff options
Diffstat (limited to 'src/include/imapparser.h')
-rw-r--r-- | src/include/imapparser.h | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/src/include/imapparser.h b/src/include/imapparser.h index 4f77985..5dfffb4 100644 --- a/src/include/imapparser.h +++ b/src/include/imapparser.h @@ -2,14 +2,14 @@ * @file imapparser.h * @brief Declaration of the common items for parsing IMAP input * @author Andreas Aardal Hanssen - * @date 2002-2005 + * @date 2002-2005 * ----------------------------------------------------------------- **/ #ifndef imapparser_h_included #define imapparser_h_included /* stl includes */ -#include <string> #include <map> +#include <string> #include <vector> namespace Binc { @@ -19,13 +19,17 @@ namespace Binc { void addRange(unsigned int a_in, unsigned int b_in); bool isInSet(unsigned int n) const; void addNumber(unsigned int a_in); - inline bool isLimited(void) const { return limited; } + + inline bool isLimited(void) const + { + return limited; + } static SequenceSet &all(void); static SequenceSet &null(void); - SequenceSet &operator = (const SequenceSet ©); + SequenceSet &operator=(const SequenceSet ©); SequenceSet(void); SequenceSet(const SequenceSet ©); @@ -74,11 +78,12 @@ namespace Binc { int type; unsigned int number; SequenceSet bset; - enum {KEY_AND, KEY_OR, KEY_NOT, KEY_OTHER, KEY_SET}; - + + enum { KEY_AND, KEY_OR, KEY_NOT, KEY_OTHER, KEY_SET }; + std::vector<BincImapParserSearchKey> children; - const SequenceSet& getSet(void) const; + const SequenceSet &getSet(void) const; BincImapParserSearchKey(void); }; @@ -106,9 +111,9 @@ namespace Binc { std::string literal; std::string contextInfo; bool uidmode; - + public: - BincImapParserData * extra; + BincImapParserData *extra; std::vector<std::string> flags; std::vector<std::string> statuses; |