|
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 GSAUTOKEYGUARDCONTAINER_H |
|
21 #define GSAUTOKEYGUARDCONTAINER_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <bldvariant.hrh> |
|
25 #include <e32property.h> |
|
26 |
|
27 #include <gsbasecontainer.h> |
|
28 |
|
29 |
|
30 // FORWARD DECLARATION |
|
31 class CGSListBoxItemTextArray; |
|
32 class CGSAutoKeyguardPluginModel; |
|
33 |
|
34 // CLASS DECLARATION |
|
35 |
|
36 /** |
|
37 * CGSAutoKeyguardPluginContainer container class |
|
38 * |
|
39 * Container class for SIM security view |
|
40 * @lib GSAutoKeyguardPlugin.lib |
|
41 * @since Series 60_3.1 |
|
42 */ |
|
43 class CGSAutoKeyguardPluginContainer : 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 ~CGSAutoKeyguardPluginContainer(); |
|
58 |
|
59 /** |
|
60 * Constructor |
|
61 */ |
|
62 CGSAutoKeyguardPluginContainer( CGSAutoKeyguardPluginModel* 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 autokeyguard list box item |
|
94 */ |
|
95 void MakeAutoKeyguardItemL(); |
|
96 private: |
|
97 /** |
|
98 * Required for help. |
|
99 * |
|
100 */ |
|
101 void GetHelpContext( TCoeHelpContext& aContext ) const; |
|
102 |
|
103 private: //data |
|
104 //items from resource |
|
105 CDesCArray* iItemArray; |
|
106 //GS listbox model |
|
107 CGSListBoxItemTextArray* iListboxItemArray; |
|
108 //Model pointer. Does not own it, so do not delete this pointer. |
|
109 CGSAutoKeyguardPluginModel* iModel; |
|
110 //Automatic Keyguard item's text |
|
111 CDesCArrayFlat* iAutoKeyguardItems; |
|
112 |
|
113 }; |
|
114 |
|
115 #endif //GSAUTOKEYGUARDCONTAINER_H |
|
116 |
|
117 // End of File |