diff options
author | 2013-07-06 10:47:26 -0400 | |
---|---|---|
committer | 2013-07-06 10:47:26 -0400 | |
commit | 040b039916c183b87930d027dc84fbc9f3a3c840 (patch) | |
tree | 78376a9f4dcc3b4122fae551675d10544749bd0d /src/core/imap | |
parent | 78572335a74e85a3d64ba6ec0f506182abd391e8 (diff) |
Passing `&error` parameter to rendering methods.
Diffstat (limited to 'src/core/imap')
-rw-r--r-- | src/core/imap/MCIMAPSession.cc | 12 | ||||
-rw-r--r-- | src/core/imap/MCIMAPSession.h | 8 |
2 files changed, 10 insertions, 10 deletions
diff --git a/src/core/imap/MCIMAPSession.cc b/src/core/imap/MCIMAPSession.cc index 0b58ed0c..54290ff4 100644 --- a/src/core/imap/MCIMAPSession.cc +++ b/src/core/imap/MCIMAPSession.cc @@ -3022,7 +3022,7 @@ ConnectionLogger * IMAPSession::connectionLogger() return mConnectionLogger; } -String * IMAPSession::htmlRendering(IMAPMessage * message, String * folder) +String * IMAPSession::htmlRendering(IMAPMessage * message, String * folder, ErrorCode * pError) { HTMLRendererIMAPDataCallback * dataCallback = new HTMLRendererIMAPDataCallback(); @@ -3035,7 +3035,7 @@ String * IMAPSession::htmlRendering(IMAPMessage * message, String * folder) return htmlString; } -String * IMAPSession::htmlBodyRendering(IMAPMessage * message, String * folder) +String * IMAPSession::htmlBodyRendering(IMAPMessage * message, String * folder, ErrorCode * pError) { HTMLRendererIMAPDataCallback * dataCallback = new HTMLRendererIMAPDataCallback(); HTMLBodyRendererTemplateCallback * htmlCallback = new HTMLBodyRendererTemplateCallback(); @@ -3050,17 +3050,17 @@ String * IMAPSession::htmlBodyRendering(IMAPMessage * message, String * folder) return htmlBodyString; } -String * IMAPSession::plainTextRendering(IMAPMessage * message, String * folder) +String * IMAPSession::plainTextRendering(IMAPMessage * message, String * folder, ErrorCode * pError) { - String * htmlString = htmlRendering(message, folder); + String * htmlString = htmlRendering(message, folder, pError); String * plainTextString = htmlString->flattenHTML(); return plainTextString; } -String * IMAPSession::plainTextBodyRendering(IMAPMessage * message, String * folder) +String * IMAPSession::plainTextBodyRendering(IMAPMessage * message, String * folder, ErrorCode * pError) { - String * htmlBodyString = htmlBodyRendering(message, folder); + String * htmlBodyString = htmlBodyRendering(message, folder, pError); String * plainTextBodyString = htmlBodyString->flattenHTML(); plainTextBodyString->replaceOccurrencesOfString(MCSTR("\t"), MCSTR(" ")); diff --git a/src/core/imap/MCIMAPSession.h b/src/core/imap/MCIMAPSession.h index 5c453e63..09732edd 100644 --- a/src/core/imap/MCIMAPSession.h +++ b/src/core/imap/MCIMAPSession.h @@ -142,17 +142,17 @@ namespace mailcore { virtual ConnectionLogger * connectionLogger(); /** HTML rendering of the body of the message to be displayed in a web view.*/ - virtual String * htmlRendering(IMAPMessage * message, String * folder); + virtual String * htmlRendering(IMAPMessage * message, String * folder, ErrorCode * pError); /** HTML rendering of the body of the message.*/ - virtual String * htmlBodyRendering(IMAPMessage * message, String * folder); + virtual String * htmlBodyRendering(IMAPMessage * message, String * folder, ErrorCode * pError); /** Text rendering of the message.*/ - virtual String * plainTextRendering(IMAPMessage * message, String * folder); + virtual String * plainTextRendering(IMAPMessage * message, String * folder, ErrorCode * pError); /** Text rendering of the body of the message. All end of line will be removed and white spaces cleaned up. This method can be used to generate the summary of the message.*/ - virtual String * plainTextBodyRendering(IMAPMessage * message, String * folder); + virtual String * plainTextBodyRendering(IMAPMessage * message, String * folder, ErrorCode * pError); public: // private virtual void loginIfNeeded(ErrorCode * pError); |