summaryrefslogtreecommitdiff
path: root/src/operator-id.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/operator-id.cc')
-rw-r--r--src/operator-id.cc23
1 files changed, 8 insertions, 15 deletions
diff --git a/src/operator-id.cc b/src/operator-id.cc
index 842c0a3..de74909 100644
--- a/src/operator-id.cc
+++ b/src/operator-id.cc
@@ -4,29 +4,25 @@
* @author Erwin Hoffmann
* @date 22.09.2023
* ------------------------------------------------------------------ **/
-#include <string>
-#include <iostream>
-
#include "depot.h"
+#include "globals.h"
#include "iodevice.h"
#include "iofactory.h"
#include "operators.h"
#include "recursivedescent.h"
#include "session.h"
-#include "globals.h"
+
+#include <iostream>
+#include <string>
using namespace ::std;
using namespace Binc;
//----------------------------------------------------------------------
-IdOperator::IdOperator(void)
-{
-}
+IdOperator::IdOperator(void) {}
//----------------------------------------------------------------------
-IdOperator::~IdOperator(void)
-{
-}
+IdOperator::~IdOperator(void) {}
//----------------------------------------------------------------------
const string IdOperator::getName(void) const
@@ -37,14 +33,11 @@ const string IdOperator::getName(void) const
//----------------------------------------------------------------------
int IdOperator::getState(void) const
{
- return Session::NONAUTHENTICATED
- | Session::AUTHENTICATED
- | Session::SELECTED;
+ return Session::NONAUTHENTICATED | Session::AUTHENTICATED | Session::SELECTED;
}
//----------------------------------------------------------------------
-Operator::ProcessResult IdOperator::process(Depot &depot,
- Request &command)
+Operator::ProcessResult IdOperator::process(Depot &depot, Request &command)
{
bincClient << "* ID (\"name\" \"Binc IMAP\""
<< " \"version\" \"" << BINC_VERSION "\")" << endl;