diff options
Diffstat (limited to 'src/async/imap/MCIMAPOperation.cc')
-rw-r--r-- | src/async/imap/MCIMAPOperation.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/async/imap/MCIMAPOperation.cc b/src/async/imap/MCIMAPOperation.cc index 8dfb7a1a..f9187ee8 100644 --- a/src/async/imap/MCIMAPOperation.cc +++ b/src/async/imap/MCIMAPOperation.cc @@ -21,10 +21,12 @@ IMAPOperation::IMAPOperation() mSession = NULL; mImapCallback = NULL; mError = ErrorNone; + mFolder = NULL; } IMAPOperation::~IMAPOperation() { + MC_SAFE_RELEASE(mFolder); MC_SAFE_RELEASE(mSession); } @@ -38,6 +40,16 @@ IMAPAsyncSession * IMAPOperation::session() return mSession; } +void IMAPOperation::setFolder(String * folder) +{ + MC_SAFE_REPLACE_COPY(String, mFolder, folder); +} + +String * IMAPOperation::folder() +{ + return mFolder; +} + void IMAPOperation::setImapCallback(IMAPOperationCallback * callback) { mImapCallback = callback; |