photosgallery/viewframework/commandhandlers/commoncommandhandlers/src/glxcommandhandlersend.cpp
branchRCL_3
changeset 23 b023a8d2866a
parent 21 f9e827349359
child 24 ea65f74e6de4
--- a/photosgallery/viewframework/commandhandlers/commoncommandhandlers/src/glxcommandhandlersend.cpp	Mon Jun 21 15:40:32 2010 +0300
+++ b/photosgallery/viewframework/commandhandlers/commoncommandhandlers/src/glxcommandhandlersend.cpp	Thu Jul 15 18:39:01 2010 +0300
@@ -47,6 +47,7 @@
 #include <glxresourceutilities.h>           // for CGlxResourceUtilities
 #include <glxicons.mbg>
 #include <glximageviewermanager.h>          // for CGlxImageViewerManager
+#include <glxgeneraluiutilities.h>
 
 // LOCAL FUNCTIONS AND CONSTANTS
 namespace
@@ -351,9 +352,15 @@
 		iUiUtility->SetAppOrientationL( EGlxOrientationDefault );
 		}
 	// Trap the send call to ensure the orientation is reverted
-	TRAP_IGNORE( iSendUi->ShowQueryAndSendL( msgData, Capabilities(),
-	                filterOutPlugins, KNullUid, ETrue, *title ) );
-		
+	TRAPD(error, iSendUi->ShowQueryAndSendL( msgData, Capabilities(),
+					filterOutPlugins, KNullUid, ETrue, *title ));
+	if (error == KErrNoMemory || error == KErrNotSupported || error
+			== KErrInUse || error == KErrDiskFull || error == KErrTimedOut
+			|| error == KErrPermissionDenied)
+		{
+		GlxGeneralUiUtilities::ShowErrorNoteL(error);
+		GLX_LOG_INFO1("error sending the image %d",error);
+		}
 	CleanupStack::PopAndDestroy(filterOutPlugins);
 	CleanupStack::PopAndDestroy(title);
 	CleanupStack::PopAndDestroy(msgData);