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