diff -r ebfee66fde93 -r 84197e66a4bd messagingapp/msgui/unifiededitor/src/msgunieditorprocessimageoperation.cpp --- a/messagingapp/msgui/unifiededitor/src/msgunieditorprocessimageoperation.cpp Fri Jun 04 10:25:39 2010 +0100 +++ b/messagingapp/msgui/unifiededitor/src/msgunieditorprocessimageoperation.cpp Fri Jun 11 13:35:48 2010 +0300 @@ -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.