equal
deleted
inserted
replaced
24 #include <AknUtils.h> |
24 #include <AknUtils.h> |
25 #include <StringLoader.h> |
25 #include <StringLoader.h> |
26 #include <eikdialogext.h> |
26 #include <eikdialogext.h> |
27 #include <AknsBasicBackgroundControlContext.h> |
27 #include <AknsBasicBackgroundControlContext.h> |
28 #include <MMGFetchVerifier.h> // For VerifySelectionL() |
28 #include <MMGFetchVerifier.h> // For VerifySelectionL() |
29 |
29 #include <glxresourceutilities.h> // for CGlxResourceUtilities |
30 #include <glxuiutility.h> |
30 #include <glxuiutility.h> |
31 #include <glxscreenfurniture.h> |
31 #include <glxscreenfurniture.h> |
32 #include <glxtracer.h> // Logging macros |
32 #include <glxtracer.h> // Logging macros |
33 #include <glxlog.h> |
33 #include <glxlog.h> |
34 #include <glxcommandhandlers.hrh> //command ids |
34 #include <glxcommandhandlers.hrh> //command ids |
35 |
35 #include <data_caging_path_literals.hrh> // KDC_APP_RESOURCE_DIR |
36 #include <mglxmedialist.h> // MGlxMediaList, CMPXCollectionPath |
36 #include <mglxmedialist.h> // MGlxMediaList, CMPXCollectionPath |
37 |
37 |
38 #include <alf/alfevent.h> |
38 #include <alf/alfevent.h> |
39 #include <alf/alfdisplay.h> |
39 #include <alf/alfdisplay.h> |
40 |
40 |
43 #include "glxfetcherdialog.h" |
43 #include "glxfetcherdialog.h" |
44 #include "glxfetchercontainer.h" |
44 #include "glxfetchercontainer.h" |
45 #include "glxfetcher.hrh" |
45 #include "glxfetcher.hrh" |
46 |
46 |
47 const TInt KControlId = 1; |
47 const TInt KControlId = 1; |
48 |
48 |
|
49 _LIT(KGlxGridviewResource, "glxgridviewdata.rsc"); |
|
50 |
49 //----------------------------------------------------------------------------- |
51 //----------------------------------------------------------------------------- |
50 // C++ default constructor. |
52 // C++ default constructor. |
51 //----------------------------------------------------------------------------- |
53 //----------------------------------------------------------------------------- |
52 inline CGlxFetcherDialog::CGlxFetcherDialog( |
54 inline CGlxFetcherDialog::CGlxFetcherDialog( |
53 CDesCArray& aSelectedFiles, |
55 CDesCArray& aSelectedFiles, |
86 // Destructor |
88 // Destructor |
87 //----------------------------------------------------------------------------- |
89 //----------------------------------------------------------------------------- |
88 CGlxFetcherDialog::~CGlxFetcherDialog() |
90 CGlxFetcherDialog::~CGlxFetcherDialog() |
89 { |
91 { |
90 TRACER("CGlxFetcherDialog::~CGlxFetcherDialog"); |
92 TRACER("CGlxFetcherDialog::~CGlxFetcherDialog"); |
|
93 if (iResourceOffset) |
|
94 { |
|
95 CCoeEnv::Static()->DeleteResourceFile(iResourceOffset); |
|
96 } |
|
97 |
91 if(iMMCNotifier) |
98 if(iMMCNotifier) |
92 { |
99 { |
93 delete iMMCNotifier; |
100 delete iMMCNotifier; |
94 iMMCNotifier = NULL; |
101 iMMCNotifier = NULL; |
95 } |
102 } |
122 // Get the Instance of the toolbar and disable it as it is note required in the Fetcher Application |
129 // Get the Instance of the toolbar and disable it as it is note required in the Fetcher Application |
123 if (iAvkonAppUi->CurrentFixedToolbar()) // there is Hardware Specific Output for Fixed ToolBar |
130 if (iAvkonAppUi->CurrentFixedToolbar()) // there is Hardware Specific Output for Fixed ToolBar |
124 { |
131 { |
125 iAvkonAppUi->CurrentFixedToolbar()->SetToolbarVisibility(EFalse); |
132 iAvkonAppUi->CurrentFixedToolbar()->SetToolbarVisibility(EFalse); |
126 } |
133 } |
|
134 |
|
135 // Load resource file for grid view empty text |
|
136 TParse parse; |
|
137 parse.Set(KGlxGridviewResource, &KDC_APP_RESOURCE_DIR, NULL); |
|
138 TFileName resourceFile; |
|
139 resourceFile.Append(parse.FullName()); |
|
140 CGlxResourceUtilities::GetResourceFilenameL(resourceFile); |
|
141 iResourceOffset = CCoeEnv::Static()->AddResourceFileL(resourceFile); |
|
142 |
127 // Get the Hitchcock environment. |
143 // Get the Hitchcock environment. |
128 iUiUtility = CGlxUiUtility::UtilityL(); |
144 iUiUtility = CGlxUiUtility::UtilityL(); |
129 iEnv = iUiUtility->Env(); |
145 iEnv = iUiUtility->Env(); |
130 iFetchUri = EFalse; |
146 iFetchUri = EFalse; |
131 iMMCNotifier = CGlxMMCNotifier::NewL(*this); |
147 iMMCNotifier = CGlxMMCNotifier::NewL(*this); |