summaryrefslogtreecommitdiff
path: root/src/operator-namespace.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/operator-namespace.cc')
-rw-r--r--src/operator-namespace.cc26
1 files changed, 10 insertions, 16 deletions
diff --git a/src/operator-namespace.cc b/src/operator-namespace.cc
index 8574f91..f03f0c7 100644
--- a/src/operator-namespace.cc
+++ b/src/operator-namespace.cc
@@ -4,9 +4,6 @@
* @author Andreas Aardal Hanssen
* @date 2002-2005
* ----------------------------------------------------------------- **/
-#include <string>
-#include <iostream>
-
#include "depot.h"
#include "iodevice.h"
#include "iofactory.h"
@@ -14,18 +11,17 @@
#include "recursivedescent.h"
#include "session.h"
+#include <iostream>
+#include <string>
+
using namespace ::std;
using namespace Binc;
//----------------------------------------------------------------------
-NamespaceOperator::NamespaceOperator(void)
-{
-}
+NamespaceOperator::NamespaceOperator(void) {}
//----------------------------------------------------------------------
-NamespaceOperator::~NamespaceOperator(void)
-{
-}
+NamespaceOperator::~NamespaceOperator(void) {}
//----------------------------------------------------------------------
const string NamespaceOperator::getName(void) const
@@ -40,20 +36,19 @@ int NamespaceOperator::getState(void) const
}
//----------------------------------------------------------------------
-Operator::ProcessResult NamespaceOperator::process(Depot &depot,
- Request &command)
+Operator::ProcessResult NamespaceOperator::process(Depot &depot, Request &command)
{
bincClient << "* NAMESPACE ";
- bincClient << "(("; // personal namespace
+ bincClient << "(("; // personal namespace
bincClient << toImapString(depot.getPersonalNamespace());
bincClient << " ";
char c = depot.getDelimiter();
bincClient << toImapString(string(&c, 1));
bincClient << "))";
- bincClient << " NIL"; // others' namespaces
- bincClient << " NIL"; // shared namespaces
+ bincClient << " NIL"; // others' namespaces
+ bincClient << " NIL"; // shared namespaces
bincClient << endl;
return OK;
@@ -64,8 +59,7 @@ Operator::ParseResult NamespaceOperator::parse(Request &c_in) const
{
Session &session = Session::getInstance();
- if (c_in.getUidMode())
- return REJECT;
+ if (c_in.getUidMode()) return REJECT;
Operator::ParseResult res;
if ((res = expectCRLF()) != ACCEPT) {