|
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: Internet Barrings sub-menu in General Settings. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __GSSETTLISTINTERNETBARRINGVIEW_H |
|
20 #define __GSSETTLISTINTERNETBARRINGVIEW_H |
|
21 |
|
22 // INCLUDES |
|
23 #include "GSLocalBaseView.h" |
|
24 |
|
25 // FORWARD DECLARATIONS |
|
26 class CGSSettListInternetBarringContainer; |
|
27 class CAknRadioButtonSettingPage; |
|
28 class CAknNoteDialog; |
|
29 class CAknPopupList; |
|
30 class CGSTelPluginModel; |
|
31 |
|
32 // CLASS DECLARATION |
|
33 |
|
34 /** |
|
35 * CGSSettListInternetBarringView view class |
|
36 * @since 3.0 |
|
37 */ |
|
38 |
|
39 class CGSSettListInternetBarringView : public CGSLocalBaseView |
|
40 { |
|
41 public: // Constructors and destructor |
|
42 |
|
43 /* C++ Constructor */ |
|
44 CGSSettListInternetBarringView(); |
|
45 |
|
46 /** |
|
47 * Symbian OS two phased constructor. |
|
48 */ |
|
49 static CGSSettListInternetBarringView* NewL(); |
|
50 |
|
51 /* Symbian OS two phase constructor - puts self into stack. |
|
52 * |
|
53 * @return CGSSettListInternetBarringView object |
|
54 */ |
|
55 static CGSSettListInternetBarringView* NewLC(); |
|
56 |
|
57 /** |
|
58 * Destructor. |
|
59 */ |
|
60 ~CGSSettListInternetBarringView(); |
|
61 |
|
62 public: // Functions from base classes |
|
63 |
|
64 /** |
|
65 * From CAknView, returns the views id. |
|
66 * |
|
67 * @return Returns TUid, which is the id of the view. |
|
68 */ |
|
69 TUid Id() const; |
|
70 |
|
71 /** |
|
72 * From MEikCommandObserver, handles the commands given through menu. |
|
73 * |
|
74 * @param aCommand is the given command. |
|
75 */ |
|
76 void HandleCommandL( TInt aCommand ); |
|
77 |
|
78 private: |
|
79 /** |
|
80 * Symbian OS default constructor. |
|
81 * |
|
82 */ |
|
83 void ConstructL(); |
|
84 |
|
85 /** |
|
86 * From CGSBaseView, handles selection of list box. |
|
87 */ |
|
88 void HandleListBoxSelectionL(); |
|
89 |
|
90 /** |
|
91 * Show Internet barring setting page. |
|
92 */ |
|
93 void ShowSettingPageL(); |
|
94 |
|
95 /** |
|
96 * Adds item to a list |
|
97 * @param aList reference to a list |
|
98 * @param aItem resource ID of the item to be added |
|
99 */ |
|
100 void AppendItemL( CDesCArrayFlat& aList, TInt aItem ); |
|
101 |
|
102 private: // From MEikMenuObserver |
|
103 |
|
104 void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane ); |
|
105 |
|
106 private: // from CGSBaseView |
|
107 |
|
108 void NewContainerL(); |
|
109 |
|
110 |
|
111 private: // from CAknView |
|
112 |
|
113 void DoActivateL( const TVwsViewId& aPrevViewId, |
|
114 TUid aCustomMessageId, |
|
115 const TDesC8& aCustomMessage ); |
|
116 |
|
117 void DoDeactivate(); |
|
118 |
|
119 private: // Member variables |
|
120 |
|
121 //GSTelPluginModel for settings from Central Repository |
|
122 CGSTelPluginModel* iModel; |
|
123 }; |
|
124 |
|
125 #endif // GSINTERNETBARRINGVIEW_H |
|
126 |
|
127 //End of File |