|
1 /* |
|
2 * Copyright (c) 2005 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: View for Data call settings. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef GSDATACALLPLUGIN_H |
|
20 #define GSDATACALLPLUGIN_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <aknsettingpage.h> |
|
24 #include <gsbaseview.h> |
|
25 #include <ConeResLoader.h> |
|
26 #include <gsplugininterface.h> |
|
27 |
|
28 |
|
29 //CONSTANTS |
|
30 const TUid KGSDataCallPluginUid = { 0x10207436 }; |
|
31 _LIT( KGSDataCallPluginIconDirAndName, "z:GSDataCallPlugin.mbm"); // Use KDC_BITMAP_DIR |
|
32 |
|
33 // MACROS |
|
34 |
|
35 // DATA TYPES |
|
36 |
|
37 // FUNCTION PROTOTYPES |
|
38 |
|
39 // FORWARD DECLARATIONS |
|
40 class CAknViewAppUi; |
|
41 class CGSDataCallPluginContainer; |
|
42 class CGSDataCallPluginModel; |
|
43 |
|
44 // CLASS DEFINITION |
|
45 /** |
|
46 * CGSDataCallPlugin view class for data call settings |
|
47 * @since Series 60_3.1 |
|
48 * |
|
49 */ |
|
50 class CGSDataCallPlugin : public CGSBaseView, |
|
51 public MAknSettingPageObserver |
|
52 { |
|
53 public: |
|
54 enum TGSSettingIds |
|
55 { |
|
56 KGSAutodisconSettingId |
|
57 }; |
|
58 |
|
59 public: // Constructors and destructor |
|
60 |
|
61 /** |
|
62 * Symbian OS two-phased constructor |
|
63 * @return GS connection view. |
|
64 */ |
|
65 static CGSDataCallPlugin* NewL( TAny* aInitParams ); |
|
66 |
|
67 /** |
|
68 * Destructor |
|
69 */ |
|
70 ~CGSDataCallPlugin(); |
|
71 |
|
72 public: // From CGSPluginInterface |
|
73 |
|
74 /** |
|
75 * @see CGSPluginInterface header file. |
|
76 */ |
|
77 void GetCaptionL( TDes& aCaption ) const; |
|
78 |
|
79 /** |
|
80 * See base class. |
|
81 */ |
|
82 CGulIcon* CreateIconL( const TUid aIconType ); |
|
83 |
|
84 /** |
|
85 * @see CGSPluginInterface header file. |
|
86 */ |
|
87 TInt PluginProviderCategory() const; |
|
88 |
|
89 /** |
|
90 * @see CGSPluginInterface header file. |
|
91 */ |
|
92 TBool Visible() const; |
|
93 |
|
94 public: // from MAknSettingPageObserver |
|
95 |
|
96 /** |
|
97 * Handle setting page events |
|
98 */ |
|
99 virtual void HandleSettingPageEventL( CAknSettingPage* aSettingPage, |
|
100 TAknSettingPageEvent aEventType ); |
|
101 |
|
102 public: // from base classes |
|
103 |
|
104 /** |
|
105 * Returns view id. |
|
106 * @return TUid |
|
107 */ |
|
108 TUid Id() const; |
|
109 |
|
110 /** |
|
111 * Handles commands. |
|
112 * @param aCommand Command to be handled. |
|
113 * |
|
114 */ |
|
115 void HandleCommandL( TInt aCommand ); |
|
116 |
|
117 public: // new |
|
118 |
|
119 /** |
|
120 * Updates listbox's item's value. |
|
121 * @param aItemId An item which is updated. |
|
122 * |
|
123 */ |
|
124 void UpdateListBoxL( TInt aItemId ); |
|
125 |
|
126 /** |
|
127 * Get CGSDataCallPlugin's ccontainer. |
|
128 */ |
|
129 CGSDataCallPluginContainer* Container(); |
|
130 |
|
131 protected: // From CAknView |
|
132 void DoActivateL( const TVwsViewId& aPrevViewId, |
|
133 TUid aCustomMessageId, |
|
134 const TDesC8& aCustomMessage ); |
|
135 void DoDeactivate(); |
|
136 |
|
137 protected: // From MEikMenuObserver |
|
138 |
|
139 void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane ); |
|
140 |
|
141 protected: |
|
142 |
|
143 /** |
|
144 * C++ default constructor. |
|
145 */ |
|
146 CGSDataCallPlugin(); |
|
147 |
|
148 /** |
|
149 * Symbian OS default constructor. |
|
150 * |
|
151 */ |
|
152 void ConstructL(); |
|
153 |
|
154 void HandleClientRectChange(); |
|
155 |
|
156 private: // from CGSBaseView |
|
157 |
|
158 void NewContainerL(); |
|
159 void HandleListBoxSelectionL(); |
|
160 |
|
161 private: // new methods |
|
162 |
|
163 /** |
|
164 * Display dialup auto disconnect setting page. |
|
165 */ |
|
166 void ShowDialupAutodisconSettingPageL(); |
|
167 |
|
168 /** |
|
169 * Display auto disconnect time query dialog. |
|
170 */ |
|
171 void ShowAutodisconTimeQueryL(); |
|
172 |
|
173 private: |
|
174 // plugin model |
|
175 CGSDataCallPluginModel *iModel; |
|
176 // resource loader |
|
177 RConeResourceLoader iResourceLoader; |
|
178 |
|
179 }; |
|
180 |
|
181 #endif //GSDATACALLPLUGIN_H |
|
182 |
|
183 // End of File |