equal
deleted
inserted
replaced
30 class MMPXViewUtility; |
30 class MMPXViewUtility; |
31 class MMPXCollectionUtility; |
31 class MMPXCollectionUtility; |
32 class CGlxUiUtility; |
32 class CGlxUiUtility; |
33 class CGlxNavigationalState; |
33 class CGlxNavigationalState; |
34 class CAknGlobalNote; |
34 class CAknGlobalNote; |
35 |
|
36 class CGlxBackServiceWrapper; |
|
37 |
35 |
38 /** |
36 /** |
39 * CGlxIVwrAppUi |
37 * CGlxIVwrAppUi |
40 * |
38 * |
41 * @lib ViewerApplication |
39 * @lib ViewerApplication |
74 private: // From CCoeAppUi |
72 private: // From CCoeAppUi |
75 |
73 |
76 void HandleForegroundEventL( TBool aForeground ); |
74 void HandleForegroundEventL( TBool aForeground ); |
77 |
75 |
78 private: |
76 private: |
|
77 enum TEntryType |
|
78 { |
|
79 EEntryTypeStartUp = 0, |
|
80 EEntryTypeFocusGained |
|
81 }; |
79 /** |
82 /** |
80 * Get view scoring ids based on current navigational state |
83 * Get view scoring ids based on current navigational state |
81 * (using Get in the name since the function does not return anything) |
84 * (using Get in the name since the function does not return anything) |
82 * @param aIns list that will be populated with scoring ids |
85 * @param aIns list that will be populated with scoring ids |
83 */ |
86 */ |
96 * @return scoding id |
99 * @return scoding id |
97 */ |
100 */ |
98 TUid ViewScoringIdForNaviStateDepth( const CMPXCollectionPath& aNaviState ) const; |
101 TUid ViewScoringIdForNaviStateDepth( const CMPXCollectionPath& aNaviState ) const; |
99 |
102 |
100 /** |
103 /** |
|
104 * Requesting OOM to Free Some Memory, so that photos image viewer can start |
|
105 * @return Error if Memory Cannot be freed else Error None |
|
106 */ |
|
107 TInt OOMRequestFreeMemoryL( TInt aBytesRequested) ; |
|
108 |
|
109 /** |
|
110 * Finds Current Memory Availability And Decides to Send a Request for freeing the memory |
|
111 * @param aCriticalMemoryRequired Bare Minimum to start photos image viewer |
|
112 * @return Error Code from OOM |
|
113 */ |
|
114 TInt ReserveMemoryL(TInt aCriticalMemoryRequired); |
|
115 |
|
116 /** |
|
117 * Finds Current Minimum Required memory to start photos image viewer |
|
118 * @param Type of application invokation |
|
119 * @return Required Critical Memory |
|
120 */ |
|
121 TInt RamRequiredInBytesL(TEntryType aType); |
|
122 |
|
123 /** |
|
124 * Reserve critical memory qequired to start photos image viewer |
|
125 * @param Type of application invokation |
|
126 */ |
|
127 void ReserveMemoryL(TEntryType aType); |
|
128 |
|
129 /** |
101 * close photos app. |
130 * close photos app. |
102 */ |
131 */ |
103 void CloseImgVwr(); |
132 void CloseImgVwr(); |
104 |
133 |
105 private: |
134 private: |
111 /** Optional view plugin UID to activate when the collection is opened */ |
140 /** Optional view plugin UID to activate when the collection is opened */ |
112 TUid iStartupViewUid; |
141 TUid iStartupViewUid; |
113 |
142 |
114 ///Ui utility |
143 ///Ui utility |
115 CGlxUiUtility* iUiUtility; |
144 CGlxUiUtility* iUiUtility; |
116 |
|
117 CGlxBackServiceWrapper* iBSWrapper; |
|
118 }; |
145 }; |
119 |
146 |
120 |
147 |
121 #endif // C_GLXIVIEWERAPPUI_H |
148 #endif // C_GLXIVIEWERAPPUI_H |
122 |
149 |