21 #include <glxcommandhandlers.hrh> |
21 #include <glxcommandhandlers.hrh> |
22 #include <glxscreenfurniture.h> |
22 #include <glxscreenfurniture.h> |
23 #include <glxtracer.h> |
23 #include <glxtracer.h> |
24 #include <DocumentHandler.h> |
24 #include <DocumentHandler.h> |
25 #include <glxpanic.h> |
25 #include <glxpanic.h> |
|
26 #include <glxuiutilities.rsg> |
|
27 #include <glxgeneraluiutilities.h> |
|
28 #include <StringLoader.h> |
26 |
29 |
27 // --------------------------------------------------------------------------- |
30 // --------------------------------------------------------------------------- |
28 // Two-phased constructor. |
31 // Two-phased constructor. |
29 // --------------------------------------------------------------------------- |
32 // --------------------------------------------------------------------------- |
30 // |
33 // |
84 if ( &imageHandle ) |
87 if ( &imageHandle ) |
85 { |
88 { |
86 if ( imageHandle.SubSessionHandle() != KNullHandle ) |
89 if ( imageHandle.SubSessionHandle() != KNullHandle ) |
87 { |
90 { |
88 TDataType nullType; |
91 TDataType nullType; |
89 CDocumentHandler* handler = CDocumentHandler::NewLC(NULL); |
92 CDocumentHandler* handler = CDocumentHandler::NewLC(NULL); |
90 __ASSERT_ALWAYS(handler, Panic(EGlxPanicNullPointer)); |
93 __ASSERT_ALWAYS(handler, Panic(EGlxPanicNullPointer)); |
91 TRAP_IGNORE(handler->CopyL(imageHandle, KNullDesC, nullType, NULL)); |
94 TRAPD(err, handler->CopyL(imageHandle, KNullDesC, nullType, NULL)); |
92 CleanupStack::PopAndDestroy(handler); |
95 CleanupStack::PopAndDestroy(handler); |
|
96 if (err == KErrNone) |
|
97 { |
|
98 HBufC* noteText = StringLoader::LoadL( |
|
99 R_GLX_COMPLETION_FILE_SAVED_TO); |
|
100 if (noteText) |
|
101 { |
|
102 CleanupStack::PushL(noteText); |
|
103 GlxGeneralUiUtilities::ShowConfirmationNoteL( |
|
104 *noteText, ETrue); |
|
105 CleanupStack::PopAndDestroy(noteText); |
|
106 } |
|
107 } |
93 } |
108 } |
94 } |
109 } |
95 return ETrue; |
110 return ETrue; |
96 } |
111 } |
97 return EFalse; |
112 return EFalse; |
98 } |
113 } |
|
114 |
99 // --------------------------------------------------------------------------- |
115 // --------------------------------------------------------------------------- |
100 // DynInitMenuPaneL |
116 // DynInitMenuPaneL |
101 // --------------------------------------------------------------------------- |
117 // --------------------------------------------------------------------------- |
102 // |
118 // |
103 void CGlxCommandHandlerSave::DynInitMenuPaneL(TInt /*aResourceId*/, CEikMenuPane* aMenuPane) |
119 void CGlxCommandHandlerSave::DynInitMenuPaneL(TInt /*aResourceId*/, CEikMenuPane* aMenuPane, |
|
120 TBool /*aIsBrowseMode*/) |
104 { |
121 { |
105 TRACER("CGlxCommandHandlerSave::DynInitMenuPaneL"); |
122 TRACER("CGlxCommandHandlerSave::DynInitMenuPaneL"); |
106 if ( aMenuPane ) |
123 if ( aMenuPane ) |
107 { |
124 { |
108 TInt pos; |
125 TInt pos; |