messagingapp/msgui/unifiededitor/src/msgunieditorbody.cpp
changeset 43 35b64624a9e7
parent 34 84197e66a4bd
child 44 36f374c67aa8
equal deleted inserted replaced
34:84197e66a4bd 43:35b64624a9e7
    39 #include <smutset.h>
    39 #include <smutset.h>
    40 #include <xqaiwrequest.h>
    40 #include <xqaiwrequest.h>
    41 #include <xqrequestinfo.h>
    41 #include <xqrequestinfo.h>
    42 #include <xqsharablefile.h>
    42 #include <xqsharablefile.h>
    43 #include <xqappmgr.h>
    43 #include <xqappmgr.h>
    44 
    44 #include <xqconversions.h>
    45 // USER INCLUDES
    45 // USER INCLUDES
    46 #include "msgunieditorbody.h"
    46 #include "msgunieditorbody.h"
    47 #include "UniEditorGenUtils.h"
    47 #include "UniEditorGenUtils.h"
    48 #include "UniSendingSettings.h"
    48 #include "UniSendingSettings.h"
    49 #include "msgunieditormonitor.h"
    49 #include "msgunieditormonitor.h"
    50 #include "s60qconversions.h"
    50 
    51 #include "mmsconformancecheck.h"
    51 #include "mmsconformancecheck.h"
    52 #include "unieditorpluginloader.h"
    52 #include "unieditorpluginloader.h"
    53 #include "unieditorplugininterface.h"
    53 #include "unieditorplugininterface.h"
    54 #include "convergedmessage.h"
    54 #include "convergedmessage.h"
    55 #include "msgmediautil.h"
    55 #include "msgmediautil.h"
   207         }
   207         }
   208 
   208 
   209         if( error == KErrNone)
   209         if( error == KErrNone)
   210         {
   210         {
   211             mMediaResolver->SetCharacterSetRecognition(EFalse);
   211             mMediaResolver->SetCharacterSetRecognition(EFalse);
   212             HBufC *name = S60QConversions::qStringToS60Desc(imagefile);
   212             HBufC *name = XQConversions::qStringToS60Desc(imagefile);
   213             RFile file;
   213             RFile file;
   214             TRAP(error, file = mMediaResolver->FileHandleL(*name));
   214             TRAP(error, file = mMediaResolver->FileHandleL(*name));
   215             if(error == KErrNone)
   215             if(error == KErrNone)
   216             {
   216             {
   217                 TRAP(error,mImageInfo = static_cast<CMsgImageInfo*>
   217                 TRAP(error,mImageInfo = static_cast<CMsgImageInfo*>
   634     mImageInfo = NULL;
   634     mImageInfo = NULL;
   635 
   635 
   636     if (aEvent == EUniEditorProcessImageOperationComplete && 
   636     if (aEvent == EUniEditorProcessImageOperationComplete && 
   637             aFileName.Length() > 0)
   637             aFileName.Length() > 0)
   638     {
   638     {
   639         mImageFile = S60QConversions::s60DescToQString(aFileName);
   639         mImageFile = XQConversions::s60DescToQString(aFileName);
   640     }
   640     }
   641     else
   641     else
   642     {
   642     {
   643         mImageFile = mSavedImageFile;
   643         mImageFile = mSavedImageFile;
   644     }
   644     }