diff -r 2dac0fdba72b -r 191387a8b767 photosgallery/viewframework/commandhandlers/commoncommandhandlers/src/glxcommandhandlersave.cpp --- 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 #include #include +#include +#include +#include // --------------------------------------------------------------------------- // 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 )