|
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 turn control view |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef GSSENTURNCTRLVIEW_H |
|
21 #define GSSENTURNCTRLVIEW_H |
|
22 |
|
23 // INCLUDES |
|
24 #include "gssensorbaseview.h" |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class CGSSensorPluginModel; |
|
28 class CGSSenTurnCtrlContainer; |
|
29 |
|
30 // CLASS DECLARATION |
|
31 |
|
32 /** |
|
33 * CGSSenTurnCtrlView view class |
|
34 * |
|
35 * view class for turn control options settings |
|
36 * |
|
37 * @lib gssensorplugin.lib |
|
38 * @since S60 5.0 |
|
39 */ |
|
40 class CGSSenTurnCtrlView : public CGSSensorBaseView |
|
41 { |
|
42 public: |
|
43 |
|
44 /** |
|
45 * Symbian OS two phased constructor. |
|
46 */ |
|
47 static CGSSenTurnCtrlView* NewL( CGSSensorPluginModel* aModel ); |
|
48 static CGSSenTurnCtrlView* NewLC( CGSSensorPluginModel* aModel ); |
|
49 |
|
50 /** |
|
51 * Destructor. |
|
52 */ |
|
53 virtual ~CGSSenTurnCtrlView(); |
|
54 |
|
55 /** |
|
56 * From CAknView. Returns views id |
|
57 * |
|
58 * @return TUid ID of this view defined in gssensorpluginlocalviewids.h |
|
59 */ |
|
60 TUid Id() const; |
|
61 |
|
62 /** |
|
63 * From CAknView. This function processes user commands |
|
64 * |
|
65 * @param aCommand Identifier of the user command |
|
66 */ |
|
67 void HandleCommandL( TInt aCommand ); |
|
68 |
|
69 /** |
|
70 * From MGSSensorMskObserver. |
|
71 * Checks currently activated item in list and updates MSK label if needed |
|
72 */ |
|
73 void CheckMiddleSoftkeyLabelL(); |
|
74 |
|
75 private: |
|
76 |
|
77 /** |
|
78 * Symbian OS default constructor. |
|
79 */ |
|
80 void ConstructL(); |
|
81 |
|
82 /** |
|
83 * Default constructor |
|
84 */ |
|
85 CGSSenTurnCtrlView( CGSSensorPluginModel* aModel ); |
|
86 |
|
87 /** |
|
88 * Container of this view |
|
89 */ |
|
90 CGSSenTurnCtrlContainer* Container(); |
|
91 |
|
92 /** |
|
93 * From CGSBaseView. Request to create new contrainer |
|
94 */ |
|
95 void NewContainerL(); |
|
96 |
|
97 /** |
|
98 * From CGSBaseView. Handles list box selection made by user |
|
99 */ |
|
100 void HandleListBoxSelectionL(); |
|
101 |
|
102 private: // data |
|
103 |
|
104 /** |
|
105 * Plugin model, does not own, so do not delete this |
|
106 */ |
|
107 CGSSensorPluginModel* iModel; |
|
108 |
|
109 }; |
|
110 |
|
111 #endif //GSSENTURNCTRLVIEW_H |
|
112 |
|
113 // End of File |