diff -r a32b19fb291e -r 5b14749788d7 messagingapp/msgui/unifiededitor/src/msgunieditorprocessimageoperation.cpp --- a/messagingapp/msgui/unifiededitor/src/msgunieditorprocessimageoperation.cpp Thu Jun 17 09:57:06 2010 +0100 +++ b/messagingapp/msgui/unifiededitor/src/msgunieditorprocessimageoperation.cpp Thu Jul 22 16:32:06 2010 +0100 @@ -19,13 +19,13 @@ // ========== INCLUDE FILES ================================ -#include +#include #include #include -#include -#include // for Central Repository keys +#include +#include // for Central Repository keys #include #include @@ -43,12 +43,12 @@ #include #include -#include +#include #include #include #include -#include "msgmonitor.h" +#include "msgunieditormonitor.h" #include "msgunieditorprocessimageoperation.h" // ========== CONSTANTS ==================================== @@ -85,7 +85,7 @@ CleanupStack::PushL( self ); self->ConstructL(); - CleanupStack::Pop( self ); + CleanupStack::Pop(); return self; } @@ -149,7 +149,7 @@ delete repository; - iMaxMmsSize = MsgMonitor::maxMmsSize(); + iMaxMmsSize = MsgUnifiedEditorMonitor::maxMmsSize(); } // --------------------------------------------------------- @@ -476,9 +476,9 @@ if ( !( iProcessMethod & EUniProcessImgMethodScale ) && ( iImageInfo->FileSize() + - MsgMonitor::messageSize() ) > iMaxMmsSize && + MsgUnifiedEditorMonitor::messageSize() ) > iMaxMmsSize && iImageInfo->MimeType().CompareF( KMsgMimeImageJpeg ) == 0 && - (MsgMonitor::messageSize()) < KUniCompressionMargin ) + (MsgUnifiedEditorMonitor::messageSize()) < KUniCompressionMargin ) { // Only compression needed as image is JPEG that is larger than can be fitted // into the message and scaling is not performed. Also current message size @@ -493,7 +493,7 @@ // Image won't be processed if ( ( origSize.iWidth > KImageRichWidth || origSize.iHeight > KImageRichHeight ) && - ( iImageInfo->FileSize() + MsgMonitor::messageSize() ) < iMaxMmsSize ) + ( iImageInfo->FileSize() + MsgUnifiedEditorMonitor::messageSize() ) < iMaxMmsSize ) { // Original image width or height is "non-conformant" and original image would // fit to into the message without any processing. @@ -525,7 +525,8 @@ if( largeImageQuery && iMmsCreationMode == EMmsCreationModeWarning) { HbMessageBox::question(LOC_LARGE_IMAGE_NOTE, this, - SLOT(onDialogLargeImage(HbAction*))); + SLOT(onDialogLargeImage(HbAction*)), + HbMessageBox::Yes | HbMessageBox::No); } else {