|
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: Container for Main Barrings sub-menu in General Settings. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef GSSETTLISTMAINBARRINGCONTAINER_H |
|
20 #define GSSETTLISTMAINBARRINGCONTAINER_H |
|
21 |
|
22 // INCLUDES |
|
23 #include "gsbasecontainer.h" |
|
24 #include "GSPhoneSettingConstants.h" |
|
25 |
|
26 // CLASS DECLARATION |
|
27 class CGSListBoxItemTextArray; |
|
28 |
|
29 /** |
|
30 * CGSSettListMainBarringContainer container class |
|
31 * @since 3.0 |
|
32 */ |
|
33 class CGSSettListMainBarringContainer : public CGSBaseContainer |
|
34 { |
|
35 public: // Constructors and destructor |
|
36 |
|
37 /** |
|
38 * Symbian OS default constructor. |
|
39 * |
|
40 * @param aRect gives the correct TRect for construction. |
|
41 */ |
|
42 void ConstructL( const TRect& aRect ); |
|
43 |
|
44 /* Destructor */ |
|
45 ~CGSSettListMainBarringContainer(); |
|
46 |
|
47 public: //from CGSBaseContainer |
|
48 |
|
49 /* |
|
50 * Creates list box object. |
|
51 * @param aResLbxId resource list id to create list box. |
|
52 */ |
|
53 void ConstructListBoxL( TInt aResLbxId ); |
|
54 /** |
|
55 * Retrieves the feature id for the selected item in the listbox |
|
56 * @return listbox item array's current feature. |
|
57 */ |
|
58 TInt CurrentFeatureId() const; |
|
59 |
|
60 private: //new |
|
61 |
|
62 /* |
|
63 * Creates items for the list box. |
|
64 */ |
|
65 void CreateListBoxItemsL(); |
|
66 |
|
67 /** |
|
68 * Required for help. |
|
69 */ |
|
70 void GetHelpContext(TCoeHelpContext& aContext) const; |
|
71 |
|
72 private: //member variables |
|
73 |
|
74 //Resource texts for setting items |
|
75 CDesCArrayFlat* iItems; |
|
76 |
|
77 //Setting items |
|
78 CDesCArray* iItemArray; |
|
79 CGSListBoxItemTextArray* iListboxItemArray; |
|
80 |
|
81 //BtSapConnectionState |
|
82 TInt iBtSapConnectionState; |
|
83 }; |
|
84 |
|
85 #endif //GSSETTLISTMAINBARRINGCONTAINER_H |
|
86 |
|
87 //End of File |