summaryrefslogtreecommitdiff
path: root/src/imapparser.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/imapparser.cc')
-rw-r--r--src/imapparser.cc56
1 files changed, 28 insertions, 28 deletions
diff --git a/src/imapparser.cc b/src/imapparser.cc
index 6610c3e..e004feb 100644
--- a/src/imapparser.cc
+++ b/src/imapparser.cc
@@ -20,7 +20,7 @@
using namespace Binc;
using std::string;
-Request::Request(void)
+Request::Request()
: uidmode(false)
, extra(nullptr)
, flags()
@@ -30,17 +30,17 @@ Request::Request(void)
, fatt()
{}
-Request::~Request(void)
+Request::~Request()
{
if (extra != nullptr) delete extra;
}
-void Request::setUidMode(void)
+void Request::setUidMode()
{
uidmode = true;
}
-bool Request::getUidMode(void) const
+bool Request::getUidMode() const
{
return uidmode;
}
@@ -50,7 +50,7 @@ void Request::setTag(string &t_in)
tag = t_in;
}
-const string &Request::getTag(void) const
+const string &Request::getTag() const
{
return tag;
}
@@ -60,7 +60,7 @@ void Request::setMode(const string &m_in)
mode = m_in;
}
-const string &Request::getMode(void) const
+const string &Request::getMode() const
{
return mode;
}
@@ -70,7 +70,7 @@ void Request::setName(const string &s_in)
name = s_in;
}
-const string &Request::getName(void) const
+const string &Request::getName() const
{
return name;
}
@@ -80,7 +80,7 @@ void Request::setAuthType(const string &s_in)
authtype = s_in;
}
-const string &Request::getAuthType(void) const
+const string &Request::getAuthType() const
{
return authtype;
}
@@ -90,7 +90,7 @@ void Request::setLiteral(const string &s_in)
literal = s_in;
}
-const string &Request::getLiteral(void) const
+const string &Request::getLiteral() const
{
return literal;
}
@@ -100,7 +100,7 @@ void Request::setDate(const string &s_in)
date = s_in;
}
-const string &Request::getDate(void) const
+const string &Request::getDate() const
{
return date;
}
@@ -111,7 +111,7 @@ void Request::setCharSet(const string &s_in)
uppercase(charset);
}
-const string &Request::getCharSet(void) const
+const string &Request::getCharSet() const
{
return charset;
}
@@ -121,7 +121,7 @@ void Request::setUserID(const string &s_in)
userid = s_in;
}
-const string &Request::getUserID(void) const
+const string &Request::getUserID() const
{
return userid;
}
@@ -131,7 +131,7 @@ void Request::setPassword(const string &s_in)
password = s_in;
}
-const string &Request::getPassword(void) const
+const string &Request::getPassword() const
{
return password;
}
@@ -141,7 +141,7 @@ void Request::setMailbox(const string &s_in)
mailbox = s_in;
}
-const string &Request::getMailbox(void) const
+const string &Request::getMailbox() const
{
return mailbox;
}
@@ -151,7 +151,7 @@ void Request::setListMailbox(const string &s_in)
listmailbox = s_in;
}
-const string &Request::getListMailbox(void) const
+const string &Request::getListMailbox() const
{
return listmailbox;
}
@@ -161,7 +161,7 @@ void Request::setContextInfo(const string &s_in)
contextInfo = s_in;
}
-const string &Request::getContextInfo(void) const
+const string &Request::getContextInfo() const
{
return contextInfo;
}
@@ -171,27 +171,27 @@ void Request::setNewMailbox(const string &s_in)
newmailbox = s_in;
}
-const string &Request::getNewMailbox(void) const
+const string &Request::getNewMailbox() const
{
return newmailbox;
}
-SequenceSet &Request::getSet(void)
+SequenceSet &Request::getSet()
{
return bset;
}
-std::vector<string> &Request::getStatuses(void)
+std::vector<string> &Request::getStatuses()
{
return statuses;
}
-std::vector<string> &Request::getFlags(void)
+std::vector<string> &Request::getFlags()
{
return flags;
}
-SequenceSet::SequenceSet(void) : limited(true), nullSet(false) {}
+SequenceSet::SequenceSet() : limited(true), nullSet(false) {}
SequenceSet::SequenceSet(const SequenceSet &copy)
: limited(copy.limited)
@@ -208,21 +208,21 @@ SequenceSet &SequenceSet::operator=(const SequenceSet &copy)
return *this;
}
-SequenceSet::~SequenceSet(void) {}
+SequenceSet::~SequenceSet() {}
-SequenceSet &SequenceSet::null(void)
+SequenceSet &SequenceSet::null()
{
static SequenceSet nil;
nil.nullSet = true;
return nil;
}
-bool SequenceSet::isNull(void) const
+bool SequenceSet::isNull() const
{
return nullSet;
}
-SequenceSet &SequenceSet::all(void)
+SequenceSet &SequenceSet::all()
{
static bool initialized = false;
static SequenceSet all;
@@ -280,7 +280,7 @@ BincImapParserFetchAtt::BincImapParserFetchAtt(const std::string &typeName) : ty
hassection = false;
}
-string BincImapParserFetchAtt::toString(void)
+string BincImapParserFetchAtt::toString()
{
string tmp;
if (type == "BODY.PEEK")
@@ -317,13 +317,13 @@ string BincImapParserFetchAtt::toString(void)
return tmp;
}
-BincImapParserSearchKey::BincImapParserSearchKey(void)
+BincImapParserSearchKey::BincImapParserSearchKey()
{
type = 0;
number = 0;
}
-const SequenceSet &BincImapParserSearchKey::getSet(void) const
+const SequenceSet &BincImapParserSearchKey::getSet() const
{
return bset;
}