|
1 /* |
|
2 * Copyright (c) 2005-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: Freestyle Email header file |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef GLOBALSETTINGSSETTINGITEMLISTVIEW_H |
|
20 #define GLOBALSETTINGSSETTINGITEMLISTVIEW_H |
|
21 |
|
22 // SYSTEM INCLUDES |
|
23 //<cmail> |
|
24 #include "CFSMailCommon.h" // for email constants |
|
25 //</cmail> |
|
26 |
|
27 // LOCAL INCLUDES |
|
28 #include "FreestyleEmailUiViewBase.h" |
|
29 #include "FreestyleEmailUiConstants.h" |
|
30 |
|
31 // FORWARD DECLARATIONS |
|
32 class CFsEmailUiGlobalSettingsList; |
|
33 class CFsEmailUiGlobalSettingsData; |
|
34 class CFreestyleEmailUiAppUi; |
|
35 |
|
36 // CLASS DECLARATION |
|
37 class CFsEmailUiGlobalSettingsListView : public CFsEmailUiViewBase |
|
38 { |
|
39 public: |
|
40 // constructors and destructor |
|
41 static CFsEmailUiGlobalSettingsListView* NewL( CFreestyleEmailUiAppUi* aAppUi, CAlfControlGroup& aControlGroup ); |
|
42 static CFsEmailUiGlobalSettingsListView* NewLC( CFreestyleEmailUiAppUi* aAppUi, CAlfControlGroup& aControlGroup ); |
|
43 |
|
44 virtual ~CFsEmailUiGlobalSettingsListView(); |
|
45 |
|
46 public: // from base class CAknView |
|
47 TUid Id() const; |
|
48 void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane ); |
|
49 void HandleCommandL( TInt aCommand ); |
|
50 |
|
51 public: // new methods |
|
52 void SetMskL(); |
|
53 |
|
54 protected: // from base class CAknView |
|
55 // <cmail> Toolbar |
|
56 /*void DoActivateL( |
|
57 const TVwsViewId& aPrevViewId, |
|
58 TUid aCustomMessageId, |
|
59 const TDesC8& aCustomMessage );*/ |
|
60 // </cmail> Toolbar |
|
61 void ChildDoDeactivate(); |
|
62 void HandleStatusPaneSizeChange(); |
|
63 |
|
64 // <cmail> Toolbar |
|
65 private: // from |
|
66 |
|
67 /** |
|
68 * @see CFsEmailUiViewBase::ChildDoActivateL |
|
69 */ |
|
70 void ChildDoActivateL( const TVwsViewId& aPrevViewId, |
|
71 TUid aCustomMessageId, |
|
72 const TDesC8& aCustomMessage ); |
|
73 |
|
74 // </cmail> Toolbar |
|
75 |
|
76 private: // new methods |
|
77 void ConstructL(); |
|
78 CFsEmailUiGlobalSettingsListView( CFreestyleEmailUiAppUi* aAppUi, CAlfControlGroup& aControlGroup ); |
|
79 void SetupStatusPaneL(); |
|
80 void CleanupStatusPaneL(); |
|
81 TBool HandleChangeSelectedSettingItemL( TInt aCommand ); |
|
82 |
|
83 private: |
|
84 CFsEmailUiGlobalSettingsList* iGlobalSettingsSettingItemList; |
|
85 CFsEmailUiGlobalSettingsData* iSettings; |
|
86 }; |
|
87 |
|
88 #endif // GLOBALSETTINGSSETTINGITEMLISTVIEW_H |