aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/async
diff options
context:
space:
mode:
authorGravatar libec <libor.huspenina@gmail.com>2015-11-07 21:02:04 +0100
committerGravatar libec <libor.huspenina@gmail.com>2015-11-07 21:02:04 +0100
commit703a580f1fe599f2dde7fec6c6e9a51ca47da34d (patch)
tree9689aad3943a884922ab4c50b2ca92a5c73fcc50 /src/async
parente8e41511e27e9b9f5d757bf2ac33871edd676ec4 (diff)
Adds error code to IMAPSession::customCommand. Renames sendCustomCommand to customCommand.
Diffstat (limited to 'src/async')
-rwxr-xr-xsrc/async/imap/MCIMAPAsyncSession.cpp2
-rwxr-xr-xsrc/async/imap/MCIMAPAsyncSession.h2
-rw-r--r--src/async/imap/MCIMAPCustomCommandOperation.cpp4
3 files changed, 5 insertions, 3 deletions
diff --git a/src/async/imap/MCIMAPAsyncSession.cpp b/src/async/imap/MCIMAPAsyncSession.cpp
index 15d546d5..a8cccea5 100755
--- a/src/async/imap/MCIMAPAsyncSession.cpp
+++ b/src/async/imap/MCIMAPAsyncSession.cpp
@@ -537,7 +537,7 @@ IMAPFetchContentOperation * IMAPAsyncSession::fetchMessageByNumberOperation(Stri
return op;
}
-IMAPCustomCommandOperation * IMAPAsyncSession::sendCustomCommand(String *command, bool urgent)
+IMAPCustomCommandOperation * IMAPAsyncSession::customCommand(String *command, bool urgent)
{
IMAPCustomCommandOperation *op = new IMAPCustomCommandOperation();
diff --git a/src/async/imap/MCIMAPAsyncSession.h b/src/async/imap/MCIMAPAsyncSession.h
index 42fedcfb..62577a6e 100755
--- a/src/async/imap/MCIMAPAsyncSession.h
+++ b/src/async/imap/MCIMAPAsyncSession.h
@@ -136,7 +136,7 @@ namespace mailcore {
Encoding encoding, bool urgent = false);
virtual IMAPFetchContentOperation * fetchMessageByNumberOperation(String * folder, uint32_t number, bool urgent = false);
- virtual IMAPCustomCommandOperation * sendCustomCommand(String *command, bool urgent);
+ virtual IMAPCustomCommandOperation * customCommand(String *command, bool urgent);
virtual IMAPFetchContentOperation * fetchMessageAttachmentByNumberOperation(String * folder, uint32_t number, String * partID,
Encoding encoding, bool urgent = false);
diff --git a/src/async/imap/MCIMAPCustomCommandOperation.cpp b/src/async/imap/MCIMAPCustomCommandOperation.cpp
index 61e0e655..3995d6aa 100644
--- a/src/async/imap/MCIMAPCustomCommandOperation.cpp
+++ b/src/async/imap/MCIMAPCustomCommandOperation.cpp
@@ -37,6 +37,8 @@ String * IMAPCustomCommandOperation::response()
void IMAPCustomCommandOperation::main()
{
- mResponse = session()->session()->sendCustomCommand(mCustomCommand);
+ ErrorCode error;
+ mResponse = session()->session()->customCommand(mCustomCommand, &error);
MC_SAFE_RETAIN(mResponse);
+ setError(error);
}