|
1 /* |
|
2 * Copyright (c) 2007-2008 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: FreestyleEmailUi main UI grid control definition |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef __FREESTYLEEMAILUI_LAUNCHERGRID_H__ |
|
21 #define __FREESTYLEEMAILUI_LAUNCHERGRID_H__ |
|
22 |
|
23 // SYSTEM INCLUDES |
|
24 |
|
25 // INTERNAL INCLUDES |
|
26 #include "FreestyleEmailUiLauncherGridVisualiser.h" |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 class CAlfAnchorLayout; |
|
30 class CAlfEnv; |
|
31 class CFreestyleEmailUiAppUi; |
|
32 |
|
33 |
|
34 class CFSEmailUiLauncherGrid : public CAlfControl |
|
35 { |
|
36 public: |
|
37 static CFSEmailUiLauncherGrid* NewL( CAlfEnv& aEnv, CFreestyleEmailUiAppUi* aAppUi ); |
|
38 static CFSEmailUiLauncherGrid* NewLC( CAlfEnv& aEnv, CFreestyleEmailUiAppUi* aAppUi ); |
|
39 virtual ~CFSEmailUiLauncherGrid(); |
|
40 |
|
41 public: |
|
42 void SetVisualiserL( CFSEmailUiLauncherGridVisualiser* aVisualiser ); |
|
43 virtual TBool OfferEventL( const TAlfEvent& aEvent ); |
|
44 |
|
45 protected: |
|
46 /** |
|
47 * @see CAlfControl::NotifyControlVisibility |
|
48 */ |
|
49 void NotifyControlVisibility( TBool aIsVisible, CAlfDisplay& aDisplay ); |
|
50 |
|
51 private: |
|
52 CFSEmailUiLauncherGrid( CFreestyleEmailUiAppUi* aAppUi ); |
|
53 void ConstructL(CAlfEnv& aEnv); |
|
54 |
|
55 private: |
|
56 CFreestyleEmailUiAppUi* iAppUi; |
|
57 CFSEmailUiLauncherGridVisualiser* iVisualiser; |
|
58 TInt iSelectedIndex; |
|
59 TBool iUpdatingVisualizer; |
|
60 // <cmail> |
|
61 TBool iDraggingSet; |
|
62 // </cmail> |
|
63 }; |
|
64 |
|
65 #endif // __FREESTYLEEMAILUI_LAUNCHERGRID_H__ |
|
66 |