Bincimap 2.0.16
Easy Imapping
Loading...
Searching...
No Matches
mailbox.cc
Go to the documentation of this file.
1
7#include <string>
8
9#include "mailbox.h"
10#include "message.h"
11
12using namespace ::std;
13using namespace Binc;
14
15//------------------------------------------------------------------------
17{
18 sqnr = sqn;
19}
20
21//------------------------------------------------------------------------
23{
24}
25
26//------------------------------------------------------------------------
28{
29}
30
31//------------------------------------------------------------------------
33{
34}
35
36//------------------------------------------------------------------------
37bool Mailbox::isReadOnly(void) const
38{
39 return readOnly;
40}
41
42//------------------------------------------------------------------------
43void Mailbox::setReadOnly(bool readOnly)
44{
45 this->readOnly = readOnly;
46}
47
48//------------------------------------------------------------------------
50 : realIterator(i)
51{
52}
53
54//------------------------------------------------------------------------
56{
57 return *realIterator;
58}
59
60//------------------------------------------------------------------------
62{
63 ++realIterator;
64}
65
66//------------------------------------------------------------------------
68{
69 return realIterator == i.realIterator;
70}
71
72//------------------------------------------------------------------------
74{
75 return realIterator != i.realIterator;
76}
77
78//------------------------------------------------------------------------
80{
81 realIterator.erase();
82}
83
84//------------------------------------------------------------------------
85unsigned int Mailbox::iterator::getSqnr(void) const
86{
87 return realIterator.sqnr;
88}
89
90//------------------------------------------------------------------------
91void Mailbox::setName(const string &name)
92{
93 this->name = name;
94}
95
96//------------------------------------------------------------------------
97const string Mailbox::getName(void) const
98{
99 return name;
100}
101
102//------------------------------------------------------------------------
103const string &Mailbox::getLastError(void) const
104{
105 return lastError;
106}
107
108//------------------------------------------------------------------------
109void Mailbox::setLastError(const string &error) const
110{
111 lastError = error;
112}
virtual ~BaseIterator(void)
Definition: mailbox.cc:22
void operator++(void)
Definition: mailbox.cc:61
bool operator!=(const iterator &) const
Definition: mailbox.cc:73
unsigned int getSqnr() const
Definition: mailbox.cc:85
Message & operator*(void)
Definition: mailbox.cc:55
BaseIterator & realIterator
Definition: mailbox.h:64
iterator(BaseIterator &i)
Definition: mailbox.cc:49
bool operator==(const iterator &) const
Definition: mailbox.cc:67
virtual ~Mailbox(void)
Definition: mailbox.cc:32
void setLastError(const std::string &error) const
Definition: mailbox.cc:109
bool readOnly
Definition: mailbox.h:125
const std::string & getLastError(void) const
Definition: mailbox.cc:103
Mailbox(void)
Definition: mailbox.cc:27
bool isReadOnly(void) const
Definition: mailbox.cc:37
void setName(const std::string &name)
Definition: mailbox.cc:91
void setReadOnly(bool readOnly)
Definition: mailbox.cc:43
const std::string getName(void) const
Definition: mailbox.cc:97
The Message class provides an interface for IMAP messages.
Definition: message.h:31
Declaration of the Mailbox class (Mailbox is logical container)
Declaration of the Message class.
Definition: bincimapd.cc:9