diff options
Diffstat (limited to 'src/operator-logout.cc')
-rw-r--r-- | src/operator-logout.cc | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/src/operator-logout.cc b/src/operator-logout.cc index aabffdf..67458f3 100644 --- a/src/operator-logout.cc +++ b/src/operator-logout.cc @@ -1,9 +1,10 @@ -/** -------------------------------------------------------------------- +/** * @file operator-logout.cc * @brief Implementation of the LOGOUT command * @author Andreas Aardal Hanssen * @date 2002-2005 - * ----------------------------------------------------------------- **/ + */ + #include "convert.h" #include "depot.h" #include "iodevice.h" @@ -16,32 +17,26 @@ #include <iostream> #include <string> -using namespace ::std; using namespace Binc; -//---------------------------------------------------------------------- LogoutOperator::LogoutOperator(void) {} -//---------------------------------------------------------------------- LogoutOperator::~LogoutOperator(void) {} -//---------------------------------------------------------------------- -const string LogoutOperator::getName(void) const +const std::string LogoutOperator::getName(void) const { return "LOGOUT"; } -//---------------------------------------------------------------------- int LogoutOperator::getState(void) const { return Session::NONAUTHENTICATED | Session::AUTHENTICATED | Session::SELECTED; } -//------------------------------------------------------------------------ Operator::ProcessResult LogoutOperator::process(Depot &depot, Request &command) { - bincClient << "* BYE Binc IMAP shutting down" << endl; - bincClient << command.getTag() << " OK LOGOUT completed" << endl; + bincClient << "* BYE Binc IMAP shutting down" << std::endl; + bincClient << command.getTag() << " OK LOGOUT completed" << std::endl; bincClient.flush(); #ifdef BINCIMAPD @@ -58,7 +53,6 @@ Operator::ProcessResult LogoutOperator::process(Depot &depot, Request &command) return NOTHING; } -//---------------------------------------------------------------------- Operator::ParseResult LogoutOperator::parse(Request &c_in) const { Session &session = Session::getInstance(); |