1 /* |
|
2 * Copyright (c) 2005-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: Shortcut settings plug-in main class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CAISCUTSETTINGS_H |
|
20 #define CAISCUTSETTINGS_H |
|
21 |
|
22 #include <gsbaseview.h> |
|
23 |
|
24 class CAiScutSettingsContainer; |
|
25 class CAiScutSettingsModel; |
|
26 |
|
27 /** |
|
28 * Shortcut settings plug-in main class |
|
29 * |
|
30 * @lib aiscutsettings.lib |
|
31 * @since S60 v3.2 |
|
32 */ |
|
33 class CAiScutSettings : public CGSBaseView |
|
34 { |
|
35 |
|
36 public: |
|
37 |
|
38 static CAiScutSettings* NewL(TAny* aInitParams); |
|
39 |
|
40 virtual ~CAiScutSettings(); |
|
41 |
|
42 // from base class CAknView |
|
43 |
|
44 /** |
|
45 * From CAknView |
|
46 * Returns view id. |
|
47 * |
|
48 * @since S60 3.2 |
|
49 * @return TUid |
|
50 */ |
|
51 TUid Id() const; |
|
52 |
|
53 /** |
|
54 * From CAknView |
|
55 * Handles commands. |
|
56 * |
|
57 * @since S60 3.2 |
|
58 * @param aCommand Command to be handled. |
|
59 */ |
|
60 void HandleCommandL(TInt aCommand); |
|
61 |
|
62 /** |
|
63 * See base class in AknView.h |
|
64 */ |
|
65 void DoActivateL(const TVwsViewId& aPrevViewId, TUid aCustomMessageId, const TDesC8& aCustomMessage); |
|
66 |
|
67 /** |
|
68 * See base class. |
|
69 */ |
|
70 void DoDeactivate(); |
|
71 |
|
72 // from base class CGSPluginInterface |
|
73 |
|
74 /** |
|
75 * From CGSPluginInterface |
|
76 * |
|
77 * @since S60 3.2 |
|
78 * @see CGSPluginInterface header file. |
|
79 */ |
|
80 void GetCaptionL(TDes& aCaption) const; |
|
81 |
|
82 /** |
|
83 * From CGSPluginInterface |
|
84 * |
|
85 * @since S60 3.2 |
|
86 * @see CGSPluginInterface header file. |
|
87 */ |
|
88 TInt PluginProviderCategory() const; |
|
89 |
|
90 /** |
|
91 * From CGSPluginInterface |
|
92 * |
|
93 * @since S60 3.2 |
|
94 * @see CGSPluginInterface header file. |
|
95 */ |
|
96 TBool Visible() const; |
|
97 |
|
98 // from base class CGSBaseView |
|
99 |
|
100 /** |
|
101 * From CGSBaseView |
|
102 * |
|
103 * @since S60 3.2 |
|
104 * Returns the container this view has. |
|
105 * @return pointer to container, does not transfer ownership. |
|
106 */ |
|
107 CAiScutSettingsContainer* Container(); |
|
108 |
|
109 /** |
|
110 * See base class |
|
111 */ |
|
112 void HandleForegroundEventL(TBool aForeground); |
|
113 |
|
114 /** |
|
115 * Check if view is activate |
|
116 * @since S60 5.1 |
|
117 * @return ETrue if activated, EFalse otherwise |
|
118 */ |
|
119 TBool Activated() const; |
|
120 |
|
121 protected: |
|
122 |
|
123 private: // From MEikMenuObserver |
|
124 |
|
125 /** |
|
126 * Changes MenuPane dynamically |
|
127 */ |
|
128 void DynInitMenuPaneL(TInt aResourceId, CEikMenuPane* aMenuPane); |
|
129 |
|
130 private: |
|
131 |
|
132 CAiScutSettings(); |
|
133 |
|
134 void ConstructL(); |
|
135 |
|
136 |
|
137 // from base class CGSBaseView |
|
138 |
|
139 /** |
|
140 * From CGSBaseView |
|
141 * Functionality for creating a container. Called by DoActivateL(). |
|
142 */ |
|
143 void NewContainerL(); |
|
144 |
|
145 /** |
|
146 * From CGSBaseView |
|
147 * Handles listbox selection. Called by HandleListBoxEventL. |
|
148 * Implement by sub-class. |
|
149 */ |
|
150 void HandleListBoxSelectionL(); |
|
151 |
|
152 static TInt DoHandleListBoxSelectionL( TAny* aAny ); |
|
153 |
|
154 |
|
155 private: // data |
|
156 |
|
157 /** |
|
158 * Settings plug-in model. |
|
159 * Own. |
|
160 */ |
|
161 CAiScutSettingsModel* iModel; |
|
162 |
|
163 /** |
|
164 * Resource loader for common text resources. |
|
165 */ |
|
166 RConeResourceLoader iResourceLoaderTexts; |
|
167 |
|
168 /*** |
|
169 * Idle timer to delay event handling |
|
170 * Own. |
|
171 */ |
|
172 CIdle* iListBoxTimer; |
|
173 |
|
174 }; |
|
175 |
|
176 #endif // CAISCUTSETTINGS_H |
|
177 |
|
178 // End of File. |
|