equal
deleted
inserted
replaced
39 #include "FreestyleEmailUiAppui.h" |
39 #include "FreestyleEmailUiAppui.h" |
40 |
40 |
41 #include "FSEmailLauncherItem.h" |
41 #include "FSEmailLauncherItem.h" |
42 #include "freestyleemailuimailboxdeleter.h" |
42 #include "freestyleemailuimailboxdeleter.h" |
43 |
43 |
44 // FORWARD DECLARATIONS |
44 // FORWARD DECLARATIONS |
45 // <cmail> |
|
46 class CBrushAnimation; |
45 class CBrushAnimation; |
47 // </cmail> |
|
48 class CFsAlfScrollbarLayout; |
46 class CFsAlfScrollbarLayout; |
|
47 class CAknStylusPopUpMenu; |
|
48 |
49 |
49 |
50 class TFSLauncherGridMailboxStatus |
50 class TFSLauncherGridMailboxStatus |
51 { |
51 { |
52 public: |
52 public: |
53 TInt iMailboxCount; |
53 TInt iMailboxCount; |
197 private: // from MFSEmailUiMailboxDeleteObserver |
197 private: // from MFSEmailUiMailboxDeleteObserver |
198 |
198 |
199 void MailboxDeletionComplete(); |
199 void MailboxDeletionComplete(); |
200 |
200 |
201 |
201 |
202 private: // methods |
202 private: // New methods. |
|
203 |
203 CFSEmailUiLauncherGridVisualiser(CAlfEnv& aEnv, |
204 CFSEmailUiLauncherGridVisualiser(CAlfEnv& aEnv, |
204 CFSEmailUiLauncherGrid* aControl, |
205 CFSEmailUiLauncherGrid* aControl, |
205 CFreestyleEmailUiAppUi* aAppUi, |
206 CFreestyleEmailUiAppUi* aAppUi, |
206 CAlfControlGroup& aControlGroup); |
207 CAlfControlGroup& aControlGroup); |
207 void ConstructL(TInt aColumns, TInt aRows); |
208 void ConstructL(TInt aColumns, TInt aRows); |
232 |
233 |
233 /** |
234 /** |
234 * Reduces item's icon size. |
235 * Reduces item's icon size. |
235 */ |
236 */ |
236 void ResizeItemIcon( TBool aReduce ); |
237 void ResizeItemIcon( TBool aReduce ); |
237 |
238 |
238 /** |
239 /** |
239 * Handles the focus removal of CFSEmailUiLauncherGridVisualiser |
240 * Handles the focus state changes of CFSEmailUiLauncherGridVisualiser |
240 * @param aShow Indicates if focus should become visible or removed |
241 * @param aVisible Indicates if focus should become visible or removed |
241 */ |
242 */ |
242 void HandleTimerFocusStateChange( TBool aShow ); |
243 void FocusVisibilityChange( TBool aVisible ); |
|
244 |
|
245 /** |
|
246 * Launches and displays the pop-up menu invoked by a long tap event. |
|
247 * @param aItemId The ID of the item for which to open the menu. |
|
248 */ |
|
249 void LaunchStylusPopupMenu( const TInt aItemId ); |
|
250 |
243 |
251 |
244 private: // data types |
252 private: // data types |
245 |
253 |
246 struct TItemVisualData |
254 struct TItemVisualData |
247 { |
255 { |
382 // Boolean value - true is user has launched any operation from UI. |
390 // Boolean value - true is user has launched any operation from UI. |
383 TBool iUiOperationLaunched; |
391 TBool iUiOperationLaunched; |
384 |
392 |
385 // Mailbox deleter - handles deletion of one or more mailboxes. |
393 // Mailbox deleter - handles deletion of one or more mailboxes. |
386 CFSEmailUiMailboxDeleter* iMailboxDeleter; |
394 CFSEmailUiMailboxDeleter* iMailboxDeleter; |
|
395 |
|
396 // A pop-up menu that is invoked by long tap events. Used for e.g. |
|
397 // deleting mail boxes. |
|
398 CAknStylusPopUpMenu* iStylusPopUpMenu; |
|
399 TBool iStylusPopUpMenuLaunched; |
|
400 |
|
401 // Contains the ID of a selected mailbox. Used for deleting mailboxes |
|
402 // with long tap pop-up menu. |
|
403 TFSMailMsgId iMailboxToDelete; |
387 }; |
404 }; |
388 |
405 |
389 #endif // __FREESTYLEEMAILUI_MAINGRIDUIVISUALISER_H__ |
406 #endif // __FREESTYLEEMAILUI_MAINGRIDUIVISUALISER_H__ |