|
1 /* |
|
2 * Copyright (c) 2007 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 attachments list visualiser definition |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef __FREESTYLEEMAILUI_SENDATTACHMENTSLISTVISUALISER_H__ |
|
21 #define __FREESTYLEEMAILUI_SENDATTACHMENTSLISTVISUALISER_H__ |
|
22 |
|
23 // SYSTEM INCLUDES |
|
24 #include <e32base.h> |
|
25 //<cmail> |
|
26 #include "fscontrolbarobserver.h" |
|
27 #include "fstreelistconstants.h" |
|
28 //</cmail> |
|
29 |
|
30 // INTERNAL INCLUDES |
|
31 #include "FreestyleEmailUiViewBase.h" |
|
32 #include "FreestyleEmailUiScrollbarClet.h" |
|
33 #include "FreestyleEmailUiListVisualiser.h" |
|
34 #include "FreestyleEmailUiAppui.h" |
|
35 |
|
36 // FORWARD DECLARATIONS |
|
37 class CAlfDeckLayout; |
|
38 class CAlfAnchorLayout; |
|
39 class CFreestyleEmailUiTextureManager; |
|
40 class CFsTreeList; |
|
41 class CFsTreeVisualizerBase; |
|
42 class MFsTreeItemData; |
|
43 class MFsTreeItemVisualizer; |
|
44 class CFreestyleEmailUiTextureManager; |
|
45 class CFreestyleEmailUiAppUi; |
|
46 class CFsTreePlainOneLineNodeVisualizer; |
|
47 class CFreestyleEmailUiSendAttachmentsListControl; |
|
48 class TVwsViewId; |
|
49 |
|
50 |
|
51 // CLASS DECLARATION |
|
52 class CFSEmailUiSendAttachmentsListVisualiser : public CFsEmailUiViewBase |
|
53 { |
|
54 public: |
|
55 static CFSEmailUiSendAttachmentsListVisualiser* NewL( |
|
56 CAlfEnv& aEnv, |
|
57 CFreestyleEmailUiAppUi* aAppUi, |
|
58 CAlfControlGroup& aMailListControlGroup ); |
|
59 |
|
60 static CFSEmailUiSendAttachmentsListVisualiser* NewLC( |
|
61 CAlfEnv& aEnv, |
|
62 CFreestyleEmailUiAppUi* aAppUi, |
|
63 CAlfControlGroup& aMailListControlGroup ); |
|
64 |
|
65 virtual ~CFSEmailUiSendAttachmentsListVisualiser(); |
|
66 |
|
67 public: |
|
68 // From aknview |
|
69 // <cmail> Toolbar |
|
70 /*void DoActivateL( |
|
71 const TVwsViewId& aPrevViewId, |
|
72 TUid aCustomMessageId, |
|
73 const TDesC8& aCustomMessage );*/ |
|
74 // </cmail> Toolbar |
|
75 |
|
76 TUid Id() const; |
|
77 void ChildDoDeactivate(); |
|
78 void HandleDynamicVariantSwitchL( CFsEmailUiViewBase::TDynamicSwitchType aType ); |
|
79 |
|
80 void DynInitMenuPaneL( |
|
81 TInt aResourceId, |
|
82 CEikMenuPane* aMenuPane ); |
|
83 |
|
84 void GetParentLayoutsL( RPointerArray<CAlfVisual>& aLayoutArray ) const; |
|
85 |
|
86 public: |
|
87 // Refresh |
|
88 void RefreshL(); |
|
89 |
|
90 // Sets softkeys |
|
91 void SetViewSoftkeysL( TInt aResourceId ); |
|
92 void SetMskL(); |
|
93 // Highlighted index |
|
94 void ReScaleUiL(); |
|
95 |
|
96 // Event handling forwarded from control |
|
97 TBool OfferEventL( const TAlfEvent& aEvent ); |
|
98 void HandleCommandL( TInt aCommand ); |
|
99 |
|
100 CAlfControl* ViewerControl(); |
|
101 |
|
102 TEditorLaunchParams EditorParams(); |
|
103 |
|
104 // <cmail> Toolbar |
|
105 private: // from |
|
106 |
|
107 /** |
|
108 * @see CFsEmailUiViewBase::ChildDoActivateL |
|
109 */ |
|
110 void ChildDoActivateL( const TVwsViewId& aPrevViewId, |
|
111 TUid aCustomMessageId, |
|
112 const TDesC8& aCustomMessage ); |
|
113 |
|
114 // </cmail> Toolbar |
|
115 |
|
116 private: |
|
117 CFSEmailUiSendAttachmentsListVisualiser( CFreestyleEmailUiAppUi* aAppUi, CAlfEnv& aEnv, CAlfControlGroup& aAttachmentsListControlGroup ); |
|
118 void ConstructL(); |
|
119 |
|
120 private: |
|
121 /** |
|
122 * Pointer to Alf environment |
|
123 * not owned |
|
124 */ |
|
125 CAlfEnv* iEnv; |
|
126 |
|
127 /** |
|
128 * ALF screen control rect |
|
129 * not owned (control passed to control group) |
|
130 */ |
|
131 CFreestyleEmailUiSendAttachmentsListControl* iScreenControl; |
|
132 |
|
133 /** |
|
134 * Stores compose view params so that edited |
|
135 * message can be opened from drafts when |
|
136 * returning from this view |
|
137 */ |
|
138 TEditorLaunchParams iEditorParams; |
|
139 |
|
140 /** |
|
141 * |
|
142 * |
|
143 */ |
|
144 TVwsViewId iPrevViewId; |
|
145 }; |
|
146 |
|
147 #endif // __FREESTYLEEMAILUI_SENDATTACHMENTSLISTVISUALISER_H__ |