|
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 the Display sub-folder |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef GSSIMSECCONTAINER_H |
|
21 #define GSSIMSECCONTAINER_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <secuisecuritysettings.h> |
|
25 #include <e32property.h> |
|
26 |
|
27 #include <gsbasecontainer.h> |
|
28 |
|
29 |
|
30 // FORWARD DECLARATION |
|
31 class CGSListBoxItemTextArray; |
|
32 class CGSSimSecPluginModel; |
|
33 |
|
34 // CLASS DECLARATION |
|
35 |
|
36 /** |
|
37 * CGSSimSecPluginContainer container class |
|
38 * |
|
39 * Container class for SIM security view |
|
40 * @lib GSSimSecPlugin.lib |
|
41 * @since Series 60_3.1 |
|
42 */ |
|
43 class CGSSimSecPluginContainer : public CGSBaseContainer |
|
44 { |
|
45 public: // Constructors and destructor |
|
46 |
|
47 /** |
|
48 * Symbian OS constructor. |
|
49 * @param aRect Listbox's rect. |
|
50 * |
|
51 */ |
|
52 void ConstructL( const TRect& aRect ); |
|
53 |
|
54 /** |
|
55 * Destructor. |
|
56 */ |
|
57 ~CGSSimSecPluginContainer(); |
|
58 |
|
59 /** |
|
60 * Constructor |
|
61 */ |
|
62 CGSSimSecPluginContainer( CGSSimSecPluginModel* aModel ); |
|
63 |
|
64 public: // new |
|
65 /** |
|
66 * Updates the listbox items |
|
67 * @param aFeatureId: selected listbox item ID |
|
68 */ |
|
69 void UpdateListBoxL( TInt aFeatureId ); |
|
70 |
|
71 /** |
|
72 * Retrieves the feature id for the selected item in the listbox |
|
73 * @return listbox item array's current feature. |
|
74 */ |
|
75 TInt CurrentFeatureId() const; |
|
76 |
|
77 void HandleResourceChangeL( TInt aType ); |
|
78 |
|
79 protected: // from CGSBaseContainer |
|
80 /** |
|
81 * Constructs listbox. |
|
82 * @param aResLbxId Resource id for listbox. |
|
83 * |
|
84 */ |
|
85 void ConstructListBoxL( TInt aResLbxId ); |
|
86 |
|
87 private: //new |
|
88 /** |
|
89 * Creates list box items |
|
90 */ |
|
91 void CreateListBoxItemsL(); |
|
92 /** |
|
93 * Creates Code in use item |
|
94 */ |
|
95 void MakeCodeInUseItemL(); |
|
96 /** |
|
97 * Creates upin code request list box item |
|
98 */ |
|
99 void MakeUpinRequestItemL(); |
|
100 /** |
|
101 * Creates pin code request list box item |
|
102 */ |
|
103 void MakePinRequestItemL(); |
|
104 /** |
|
105 * Creates code list box item |
|
106 * |
|
107 * @ param aItemType TInt (code type pin/pin2/security) |
|
108 */ |
|
109 void MakeCodeItemL( const TInt aItemType ); |
|
110 /** |
|
111 * Creates autolock list box item |
|
112 */ |
|
113 void MakeAutolockItemL(); |
|
114 /** |
|
115 * Creates sim change security list box item |
|
116 */ |
|
117 void MakeSimChangeItemL(); |
|
118 /** |
|
119 * Creates closed user group list box item |
|
120 */ |
|
121 void MakeClosedUserGroupItemL(); |
|
122 |
|
123 /** |
|
124 * Creates sat operations list box item |
|
125 */ |
|
126 void MakeSatOperationsItemL(); |
|
127 |
|
128 /** |
|
129 * Creates Trusted provisioning server list box item |
|
130 */ |
|
131 void MakeTPServerItemL(); |
|
132 /** |
|
133 * Recreates different pin code related list box items as needed |
|
134 * after switching PIN codes from PIN to UPIN or vice versa. |
|
135 */ |
|
136 void RecreatePinItemsL(); |
|
137 |
|
138 void MakeRemoteLockItemL(); |
|
139 private: |
|
140 /** |
|
141 * Required for help. |
|
142 * |
|
143 */ |
|
144 void GetHelpContext( TCoeHelpContext& aContext ) const; |
|
145 |
|
146 private: //data |
|
147 //Code in use item's text |
|
148 CDesCArrayFlat* iCodeItems; |
|
149 //UPIN item's text |
|
150 CDesCArrayFlat* iUpinItems; |
|
151 //autolock item's text |
|
152 CDesCArrayFlat* iAutoLockItems; |
|
153 // RemoteLock item's text |
|
154 CDesCArrayFlat* iRemoteLockItems; |
|
155 //PIN item's text |
|
156 CDesCArrayFlat* iPinItems; |
|
157 //security item's text |
|
158 CDesCArrayFlat* iSecurityItems; |
|
159 //SAT item's text |
|
160 CDesCArrayFlat* iSatItems; |
|
161 //items from resource |
|
162 CDesCArray* iItemArray; |
|
163 //for SecUI |
|
164 CSecuritySettings* iSecurity; |
|
165 //check if UPIN code is supported |
|
166 TBool iUpinCodeSupported; |
|
167 //check if UPIN code is active |
|
168 TBool iUpinCodeActive; |
|
169 //check if UPIN code is permanently rejected |
|
170 TBool iUpinCodeRejected; |
|
171 //GS listbox model |
|
172 CGSListBoxItemTextArray* iListboxItemArray; |
|
173 //Model pointer. Does not own it, so do not delete this pointer. |
|
174 CGSSimSecPluginModel* iModel; |
|
175 |
|
176 }; |
|
177 |
|
178 #endif //GSSIMSECCONTAINER_H |
|
179 |
|
180 // End of File |