summaryrefslogtreecommitdiff
path: root/src/include/pendingupdates.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/pendingupdates.h')
-rw-r--r--src/include/pendingupdates.h19
1 files changed, 6 insertions, 13 deletions
diff --git a/src/include/pendingupdates.h b/src/include/pendingupdates.h
index c1adda0..eddf8f9 100644
--- a/src/include/pendingupdates.h
+++ b/src/include/pendingupdates.h
@@ -1,24 +1,24 @@
-/** --------------------------------------------------------------------
+/**
* @file pendingupdates.h
* @brief <--->
* @author Andreas Aardal Hanssen
* @date 2002-2005
- * ----------------------------------------------------------------- **/
-#include <map>
-#include <vector>
+ */
#ifndef pendingupdates_h_included
#define pendingupdates_h_included
+#include <map>
+#include <string>
+#include <vector>
+
namespace Binc {
class Mailbox;
- //------------------------------------------------------------------------
class PendingUpdates {
public:
enum { EXPUNGE = 0x01, FLAGS = 0x02, EXISTS = 0x04, RECENT = 0x08 };
- //----------------------------------------------------------------------
class expunged_const_iterator {
private:
std::vector<unsigned int>::iterator internal;
@@ -29,16 +29,13 @@ namespace Binc {
bool operator!=(expunged_const_iterator) const;
bool operator==(expunged_const_iterator) const;
- //--
expunged_const_iterator(void);
expunged_const_iterator(std::vector<unsigned int>::iterator i);
};
- //--
expunged_const_iterator beginExpunged(void);
expunged_const_iterator endExpunged(void);
- //----------------------------------------------------------------------
class flagupdates_const_iterator {
private:
std::map<unsigned int, unsigned int>::iterator internal;
@@ -54,18 +51,15 @@ namespace Binc {
void operator++(void);
bool operator!=(flagupdates_const_iterator) const;
- //--
flagupdates_const_iterator(void);
flagupdates_const_iterator(std::map<unsigned int, unsigned int>::iterator i,
std::map<unsigned int, std::vector<std::string>> *,
std::map<unsigned int, unsigned int> *);
};
- //--
flagupdates_const_iterator beginFlagUpdates(void);
flagupdates_const_iterator endFlagUpdates(void);
- //--
void addExpunged(unsigned int uid);
void addFlagUpdates(unsigned int sqnr,
unsigned int uid,
@@ -78,7 +72,6 @@ namespace Binc {
bool newExists(void) const;
bool newRecent(void) const;
- //--
PendingUpdates(void);
~PendingUpdates(void);