|
1 /* |
|
2 * Copyright (c) 2006 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: Sensors active status view |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef GSSENSENSORSVIEW_H |
|
21 #define GSSENSENSORSVIEW_H |
|
22 |
|
23 // INCLUDES |
|
24 #include "gssensorbaseview.h" |
|
25 #include "gssensensorscontainer.h" |
|
26 #include "gssensorpluginmodel.h" |
|
27 |
|
28 // CLASS DECLARATION |
|
29 |
|
30 /** |
|
31 * CGSSenSensorsView view class |
|
32 * |
|
33 * view class for Sensors activation setting |
|
34 * |
|
35 * @lib gssensorplugin.lib |
|
36 * @since S60 5.0 |
|
37 */ |
|
38 class CGSSenSensorsView : public CGSSensorBaseView |
|
39 { |
|
40 public: |
|
41 |
|
42 /** |
|
43 * Symbian OS two phased constructor. |
|
44 */ |
|
45 static CGSSenSensorsView* NewL( CGSSensorPluginModel* aModel ); |
|
46 static CGSSenSensorsView* NewLC( CGSSensorPluginModel* aModel ); |
|
47 |
|
48 /** |
|
49 * Destructor. |
|
50 */ |
|
51 virtual ~CGSSenSensorsView(); |
|
52 |
|
53 /** |
|
54 * From CAknView. Returns views id |
|
55 * |
|
56 * @return TUid ID of this view defined in gssensorpluginlocalviewids.h |
|
57 */ |
|
58 TUid Id() const; |
|
59 |
|
60 /** |
|
61 * From CAknView. This function processes user commands |
|
62 * |
|
63 * @param aCommand Identifier of the user command |
|
64 */ |
|
65 void HandleCommandL( TInt aCommand ); |
|
66 |
|
67 /** |
|
68 * Updates listbox's item's value. |
|
69 * |
|
70 * @param aItemId An item which is updated. |
|
71 */ |
|
72 void UpdateListBoxL( TInt aItemId ); |
|
73 |
|
74 private: |
|
75 |
|
76 /** |
|
77 * Symbian OS default constructor. |
|
78 */ |
|
79 void ConstructL(); |
|
80 |
|
81 /** |
|
82 * Default constructor |
|
83 */ |
|
84 CGSSenSensorsView( CGSSensorPluginModel* aModel ); |
|
85 |
|
86 /** |
|
87 * Container of this view |
|
88 */ |
|
89 CGSSenSensorsContainer* Container(); |
|
90 |
|
91 /** |
|
92 * From CGSBaseView. Request to create new contrainer |
|
93 */ |
|
94 void NewContainerL(); |
|
95 |
|
96 /** |
|
97 * From CGSBaseView. Handles list box selection made by user |
|
98 */ |
|
99 void HandleListBoxSelectionL(); |
|
100 |
|
101 /** |
|
102 * From CGSBaseView. Change sensors active status setting without |
|
103 * displaying the setting page |
|
104 */ |
|
105 void ChangeSensorActiveSettingL(); |
|
106 |
|
107 private: // data |
|
108 |
|
109 /** |
|
110 * Plugin model, does not own, so do not delete this |
|
111 */ |
|
112 CGSSensorPluginModel* iModel; |
|
113 |
|
114 }; |
|
115 |
|
116 #endif //GSSENSENSORSVIEW_H |
|
117 |
|
118 // End of File |