equal
deleted
inserted
replaced
57 * Two-phased constructor. |
57 * Two-phased constructor. |
58 * |
58 * |
59 * @since 3.0 |
59 * @since 3.0 |
60 * @return Pointer to newly created object. |
60 * @return Pointer to newly created object. |
61 */ |
61 */ |
62 static CGlxGridViewContainer *NewL(MGlxMediaList *aMediaList,CGlxUiUtility* aUiUtility,MGlxGridEventObserver& aObserver ); |
62 static CGlxGridViewContainer *NewL(MGlxMediaList *aMediaList,CGlxUiUtility* aUiUtility,MGlxGridEventObserver& aObserver,CAknToolbar* aToolbar ); |
63 |
63 |
64 /** |
64 /** |
65 * Two-phased constructor. |
65 * Two-phased constructor. |
66 * |
66 * |
67 * @since 3.0 |
67 * @since 3.0 |
68 * @return Pointer to newly created object. |
68 * @return Pointer to newly created object. |
69 */ |
69 */ |
70 static CGlxGridViewContainer *NewLC(MGlxMediaList *aMediaList,CGlxUiUtility* aUiUtility,MGlxGridEventObserver& aObserver); |
70 static CGlxGridViewContainer *NewLC(MGlxMediaList *aMediaList,CGlxUiUtility* aUiUtility,MGlxGridEventObserver& aObserver,CAknToolbar* aToolbar); |
71 |
71 |
72 //destructor |
72 //destructor |
73 ~CGlxGridViewContainer(); |
73 ~CGlxGridViewContainer(); |
74 |
74 |
75 |
75 |
95 void HandleResourceChange(TInt aType); |
95 void HandleResourceChange(TInt aType); |
96 private: |
96 private: |
97 /** |
97 /** |
98 * C++ default constructor. |
98 * C++ default constructor. |
99 */ |
99 */ |
100 CGlxGridViewContainer(MGlxMediaList *aMediaList,CGlxUiUtility* aUiUtility,MGlxGridEventObserver& aObserver); |
100 CGlxGridViewContainer(MGlxMediaList *aMediaList,CGlxUiUtility* aUiUtility,MGlxGridEventObserver& aObserver,CAknToolbar* aToolbar); |
101 /** |
101 /** |
102 * By default Symbian 2nd phase constructor is private. |
102 * By default Symbian 2nd phase constructor is private. |
103 */ |
103 */ |
104 void ConstructL(); |
104 void ConstructL(); |
105 |
105 |
140 * @param aIndex Media index to check the thumbnail attribute |
140 * @param aIndex Media index to check the thumbnail attribute |
141 * @return ETrue if relevant thumbnail available |
141 * @return ETrue if relevant thumbnail available |
142 * EFalse if relevant thumbnail not available |
142 * EFalse if relevant thumbnail not available |
143 */ |
143 */ |
144 TBool HasRelevantThumbnail(TInt aIndex); |
144 TBool HasRelevantThumbnail(TInt aIndex); |
|
145 /** |
|
146 * Calculate and return the client rect for HGgrid |
|
147 * Required as the tool bar is dynamically created. |
|
148 */ |
|
149 TRect GetHgGridRect(); |
145 |
150 |
146 private: |
151 private: |
147 //medialist |
152 //medialist |
148 MGlxMediaList* iMediaList; // MGlxMedialist , to Create MediaList |
153 MGlxMediaList* iMediaList; // MGlxMedialist , to Create MediaList |
149 |
154 |
198 //flag to prevent call to HandleOpen( ) on multiple tap for video |
203 //flag to prevent call to HandleOpen( ) on multiple tap for video |
199 TBool iIsFSVideoViewActivating; |
204 TBool iIsFSVideoViewActivating; |
200 |
205 |
201 //observer |
206 //observer |
202 MGlxGridEventObserver& iGlxGridViewObserver; |
207 MGlxGridEventObserver& iGlxGridViewObserver; |
|
208 //toolbar - created dynamically. |
|
209 CAknToolbar* iToolbar; |
203 }; |
210 }; |
204 |
211 |
205 #endif // CGLXGRIDVIEWCONTROL_H |
212 #endif // CGLXGRIDVIEWCONTROL_H |
206 |
213 |