diff options
author | CodaFi <devteam.codafi@gmail.com> | 2013-06-23 14:47:58 -0600 |
---|---|---|
committer | CodaFi <devteam.codafi@gmail.com> | 2013-06-23 14:47:58 -0600 |
commit | 4838d93cd40698a899bcf6c93b05a3412c4c45fb (patch) | |
tree | c89fc3ec6f7671fdb889e9e4224fc02fc4882163 /src/async/smtp/MCSMTPDisconnectOperation.cc | |
parent | 59408009d5cd0c002b138881f2bb67d274da91bb (diff) | |
parent | ca781d4470f77d7e91a5e522ec2afebcb7b07e8a (diff) |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'src/async/smtp/MCSMTPDisconnectOperation.cc')
-rw-r--r-- | src/async/smtp/MCSMTPDisconnectOperation.cc | 28 |
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); +} |