summaryrefslogtreecommitdiff
path: root/src/operator-unsubscribe.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/operator-unsubscribe.cc')
-rw-r--r--src/operator-unsubscribe.cc13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/operator-unsubscribe.cc b/src/operator-unsubscribe.cc
index ae900a8..b4a197e 100644
--- a/src/operator-unsubscribe.cc
+++ b/src/operator-unsubscribe.cc
@@ -1,9 +1,10 @@
-/** --------------------------------------------------------------------
+/**
* @file operator-unsubscribe.cc
* @brief Implementation of the UNSUBSCRIBE command.
* @author Andreas Aardal Hanssen
* @date 2002-2005
- * ----------------------------------------------------------------- **/
+ */
+
#include "convert.h"
#include "depot.h"
#include "operators.h"
@@ -16,28 +17,23 @@
#include <sys/stat.h>
-using namespace ::std;
using namespace Binc;
+using std::string;
-//----------------------------------------------------------------------
UnsubscribeOperator::UnsubscribeOperator(void) {}
-//----------------------------------------------------------------------
UnsubscribeOperator::~UnsubscribeOperator(void) {}
-//----------------------------------------------------------------------
const string UnsubscribeOperator::getName(void) const
{
return "UNSUBSCRIBE";
}
-//----------------------------------------------------------------------
int UnsubscribeOperator::getState(void) const
{
return Session::AUTHENTICATED | Session::SELECTED;
}
-//------------------------------------------------------------------------
Operator::ProcessResult UnsubscribeOperator::process(Depot &depot, Request &command)
{
const string &mailbox = command.getMailbox();
@@ -55,7 +51,6 @@ Operator::ProcessResult UnsubscribeOperator::process(Depot &depot, Request &comm
return OK;
}
-//----------------------------------------------------------------------
Operator::ParseResult UnsubscribeOperator::parse(Request &c_in) const
{
Session &session = Session::getInstance();