photosgallery/viewframework/commandhandlers/commoncommandhandlers/src/glxcommandhandlersave.cpp
branchRCL_3
changeset 25 191387a8b767
parent 9 6b87b143d312
child 30 a60acebbbd9d
--- a/photosgallery/viewframework/commandhandlers/commoncommandhandlers/src/glxcommandhandlersave.cpp	Wed Apr 14 15:57:24 2010 +0300
+++ b/photosgallery/viewframework/commandhandlers/commoncommandhandlers/src/glxcommandhandlersave.cpp	Tue Apr 27 16:37:53 2010 +0300
@@ -23,6 +23,9 @@
 #include <glxtracer.h>
 #include <DocumentHandler.h>
 #include <glxpanic.h>
+#include <glxuiutilities.rsg>
+#include <glxgeneraluiutilities.h>
+#include <StringLoader.h>
 
 // ---------------------------------------------------------------------------
 // Two-phased constructor.
@@ -86,21 +89,35 @@
             if ( imageHandle.SubSessionHandle() != KNullHandle )
                 {
                 TDataType nullType;
-                CDocumentHandler* handler = CDocumentHandler::NewLC(NULL); 
+                CDocumentHandler* handler = CDocumentHandler::NewLC(NULL);
                 __ASSERT_ALWAYS(handler, Panic(EGlxPanicNullPointer));
-                TRAP_IGNORE(handler->CopyL(imageHandle, KNullDesC, nullType, NULL));
+                TRAPD(err, handler->CopyL(imageHandle, KNullDesC, nullType, NULL));
                 CleanupStack::PopAndDestroy(handler);
+                if (err == KErrNone)
+                    {
+                    HBufC* noteText = StringLoader::LoadL(
+                            R_GLX_COMPLETION_FILE_SAVED_TO);
+                    if (noteText)
+                        {
+                        CleanupStack::PushL(noteText);
+                        GlxGeneralUiUtilities::ShowConfirmationNoteL(
+                                *noteText, ETrue);
+                        CleanupStack::PopAndDestroy(noteText);
+                        }
+                    }
                 }            
     		}
     	return ETrue;
     	}
     return EFalse;
     } 
+
 // ---------------------------------------------------------------------------
 // DynInitMenuPaneL
 // ---------------------------------------------------------------------------
 //
-void CGlxCommandHandlerSave::DynInitMenuPaneL(TInt /*aResourceId*/, CEikMenuPane* aMenuPane)
+void CGlxCommandHandlerSave::DynInitMenuPaneL(TInt /*aResourceId*/, CEikMenuPane* aMenuPane,
+                                                TBool /*aIsBrowseMode*/)
     {
     TRACER("CGlxCommandHandlerSave::DynInitMenuPaneL");
     if ( aMenuPane )