aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/async/smtp/MCSMTPDisconnectOperation.cc
diff options
context:
space:
mode:
authorGravatar CodaFi <devteam.codafi@gmail.com>2013-06-23 14:47:58 -0600
committerGravatar CodaFi <devteam.codafi@gmail.com>2013-06-23 14:47:58 -0600
commit4838d93cd40698a899bcf6c93b05a3412c4c45fb (patch)
treec89fc3ec6f7671fdb889e9e4224fc02fc4882163 /src/async/smtp/MCSMTPDisconnectOperation.cc
parent59408009d5cd0c002b138881f2bb67d274da91bb (diff)
parentca781d4470f77d7e91a5e522ec2afebcb7b07e8a (diff)
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'src/async/smtp/MCSMTPDisconnectOperation.cc')
-rw-r--r--src/async/smtp/MCSMTPDisconnectOperation.cc28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/async/smtp/MCSMTPDisconnectOperation.cc b/src/async/smtp/MCSMTPDisconnectOperation.cc
new file mode 100644
index 00000000..592ceb48
--- /dev/null
+++ b/src/async/smtp/MCSMTPDisconnectOperation.cc
@@ -0,0 +1,28 @@
+//
+// SMTPDisconnectOperation.cpp
+// mailcore2
+//
+// Created by DINH Viêt Hoà on 6/22/13.
+// Copyright (c) 2013 MailCore. All rights reserved.
+//
+
+#include "MCSMTPDisconnectOperation.h"
+
+#include "MCSMTPAsyncSession.h"
+#include "MCSMTPSession.h"
+
+using namespace mailcore;
+
+SMTPDisconnectOperation::SMTPDisconnectOperation()
+{
+}
+
+SMTPDisconnectOperation::~SMTPDisconnectOperation()
+{
+}
+
+void SMTPDisconnectOperation::main()
+{
+ session()->session()->disconnect();
+ setError(ErrorCode::ErrorNone);
+}