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.cc16
1 files changed, 5 insertions, 11 deletions
diff --git a/src/operator-id.cc b/src/operator-id.cc
index de74909..3a6fd49 100644
--- a/src/operator-id.cc
+++ b/src/operator-id.cc
@@ -1,9 +1,10 @@
-/** --------------------------------------------------------------------
+/**
* @file operator-id.cc
* @brief Operator for the ID extension. Described in RFC2971 Oct 2000.
* @author Erwin Hoffmann
* @date 22.09.2023
- * ------------------------------------------------------------------ **/
+ */
+
#include "depot.h"
#include "globals.h"
#include "iodevice.h"
@@ -15,37 +16,30 @@
#include <iostream>
#include <string>
-using namespace ::std;
using namespace Binc;
-//----------------------------------------------------------------------
IdOperator::IdOperator(void) {}
-//----------------------------------------------------------------------
IdOperator::~IdOperator(void) {}
-//----------------------------------------------------------------------
-const string IdOperator::getName(void) const
+const std::string IdOperator::getName(void) const
{
return "ID";
}
-//----------------------------------------------------------------------
int IdOperator::getState(void) const
{
return Session::NONAUTHENTICATED | Session::AUTHENTICATED | Session::SELECTED;
}
-//----------------------------------------------------------------------
Operator::ProcessResult IdOperator::process(Depot &depot, Request &command)
{
bincClient << "* ID (\"name\" \"Binc IMAP\""
- << " \"version\" \"" << BINC_VERSION "\")" << endl;
+ << " \"version\" \"" << BINC_VERSION "\")" << std::endl;
return OK;
}
-//----------------------------------------------------------------------
Operator::ParseResult IdOperator::parse(Request &c_in) const
{
Session &session = Session::getInstance();