|
1 /* |
|
2 * Copyright (c) 2009 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef ATCONFIGURATIONAPPGUISETTINGITEMLISTVIEW_H |
|
19 #define ATCONFIGURATIONAPPGUISETTINGITEMLISTVIEW_H |
|
20 |
|
21 // INCLUDES |
|
22 #include <aknview.h> |
|
23 #include "atconfigurationappguisettingitemlistsettings.h" |
|
24 |
|
25 // FORWARD DECLARATIONS |
|
26 class CATConfigurationAppGuiSettingItemList; |
|
27 |
|
28 /** |
|
29 * Avkon view class for CATConfigurationAppGuiSettingItemListView. It is register with the view server |
|
30 * by the AppUi. It owns the container control. |
|
31 * @class CATConfigurationAppGuiSettingItemListView |
|
32 */ |
|
33 |
|
34 class CATConfigurationAppGuiSettingItemListView : public CAknView |
|
35 { |
|
36 public: |
|
37 /** |
|
38 * C++ default constructor. |
|
39 */ |
|
40 CATConfigurationAppGuiSettingItemListView(); |
|
41 |
|
42 /** |
|
43 * Two-phased constructor that can leave. |
|
44 * @return A new instance of this class |
|
45 */ |
|
46 static CATConfigurationAppGuiSettingItemListView* NewL(); |
|
47 |
|
48 /** |
|
49 * Two-phased constructor that can leave and leaves a pointer |
|
50 * on the cleanup stack. |
|
51 * @return A new instance of this class |
|
52 */ |
|
53 static CATConfigurationAppGuiSettingItemListView* NewLC(); |
|
54 |
|
55 /** |
|
56 * Symbian 2nd phase constructor. |
|
57 */ |
|
58 void ConstructL(); |
|
59 |
|
60 /** |
|
61 * Destructor. |
|
62 */ |
|
63 virtual ~CATConfigurationAppGuiSettingItemListView(); |
|
64 |
|
65 /** |
|
66 * From CAknView. |
|
67 */ |
|
68 TUid Id() const; |
|
69 |
|
70 /** |
|
71 * From CAknView. |
|
72 */ |
|
73 void HandleCommandL( TInt aCommand ); |
|
74 |
|
75 protected: |
|
76 |
|
77 /** |
|
78 * From CAknView. |
|
79 */ |
|
80 void DoActivateL( |
|
81 const TVwsViewId& aPrevViewId, |
|
82 TUid aCustomMessageId, |
|
83 const TDesC8& aCustomMessage ); |
|
84 |
|
85 /** |
|
86 * From CAknView. |
|
87 */ |
|
88 void DoDeactivate(); |
|
89 |
|
90 /** |
|
91 * Setups status pane according to the screen size. |
|
92 */ |
|
93 void HandleStatusPaneSizeChange(); |
|
94 |
|
95 /** |
|
96 * Handles changing of a selected setting item. |
|
97 * @param aCommand command id |
|
98 * @return TBool ETrue if setting change successful |
|
99 */ |
|
100 TBool HandleChangeSelectedSettingItemL( TInt aCommand ); |
|
101 |
|
102 private: |
|
103 |
|
104 /** |
|
105 * Setups status pane. |
|
106 */ |
|
107 void SetupStatusPaneL(); |
|
108 |
|
109 /** |
|
110 * Clears status pane and frees resources from it. |
|
111 */ |
|
112 void CleanupStatusPane(); |
|
113 |
|
114 // Setting item list |
|
115 CATConfigurationAppGuiSettingItemList* iATConfigUISettingItemList; |
|
116 // Values of the settings |
|
117 CATConfigurationAppGuiSettingItemListSettings* iSettings; |
|
118 // Id of the view which was previously active |
|
119 TUid iLastViewId; |
|
120 |
|
121 }; |
|
122 |
|
123 #endif // ATCONFIGURATIONAPPGUISETTINGITEMLISTVIEW_H |