photosgallery/viewframework/commandhandlers/commoncommandhandlers/src/glxcommandhandlersend.cpp
branchRCL_3
changeset 23 b023a8d2866a
parent 21 f9e827349359
child 24 ea65f74e6de4
equal deleted inserted replaced
21:f9e827349359 23:b023a8d2866a
    45 #include <glxuiutilities.rsg>				// for R_GLX_TOOLTIP_SEND
    45 #include <glxuiutilities.rsg>				// for R_GLX_TOOLTIP_SEND
    46 #include <glxfetchcontextremover.h>         // for TGlxFetchContextRemover 
    46 #include <glxfetchcontextremover.h>         // for TGlxFetchContextRemover 
    47 #include <glxresourceutilities.h>           // for CGlxResourceUtilities
    47 #include <glxresourceutilities.h>           // for CGlxResourceUtilities
    48 #include <glxicons.mbg>
    48 #include <glxicons.mbg>
    49 #include <glximageviewermanager.h>          // for CGlxImageViewerManager
    49 #include <glximageviewermanager.h>          // for CGlxImageViewerManager
       
    50 #include <glxgeneraluiutilities.h>
    50 
    51 
    51 // LOCAL FUNCTIONS AND CONSTANTS
    52 // LOCAL FUNCTIONS AND CONSTANTS
    52 namespace
    53 namespace
    53 	{
    54 	{
    54 	const TInt KSendMsgBodySz = 0;
    55 	const TInt KSendMsgBodySz = 0;
   349  	if(iUiUtility->IsPenSupported())
   350  	if(iUiUtility->IsPenSupported())
   350 		{
   351 		{
   351 		iUiUtility->SetAppOrientationL( EGlxOrientationDefault );
   352 		iUiUtility->SetAppOrientationL( EGlxOrientationDefault );
   352 		}
   353 		}
   353 	// Trap the send call to ensure the orientation is reverted
   354 	// Trap the send call to ensure the orientation is reverted
   354 	TRAP_IGNORE( iSendUi->ShowQueryAndSendL( msgData, Capabilities(),
   355 	TRAPD(error, iSendUi->ShowQueryAndSendL( msgData, Capabilities(),
   355 	                filterOutPlugins, KNullUid, ETrue, *title ) );
   356 					filterOutPlugins, KNullUid, ETrue, *title ));
   356 		
   357 	if (error == KErrNoMemory || error == KErrNotSupported || error
       
   358 			== KErrInUse || error == KErrDiskFull || error == KErrTimedOut
       
   359 			|| error == KErrPermissionDenied)
       
   360 		{
       
   361 		GlxGeneralUiUtilities::ShowErrorNoteL(error);
       
   362 		GLX_LOG_INFO1("error sending the image %d",error);
       
   363 		}
   357 	CleanupStack::PopAndDestroy(filterOutPlugins);
   364 	CleanupStack::PopAndDestroy(filterOutPlugins);
   358 	CleanupStack::PopAndDestroy(title);
   365 	CleanupStack::PopAndDestroy(title);
   359 	CleanupStack::PopAndDestroy(msgData);
   366 	CleanupStack::PopAndDestroy(msgData);
   360 	}
   367 	}
   361 	
   368