|
1 /* |
|
2 * Copyright (c) 2005-2009 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: AppMngr2 GS (General Settings) Settings plug-in Container |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_APPMNGR2GSSETTINGSCONTAINER_H |
|
20 #define C_APPMNGR2GSSETTINGSCONTAINER_H |
|
21 |
|
22 #include <coecntrl.h> // CCoeControl |
|
23 #include <badesca.h> // CDesCArray |
|
24 #include "appmngr2.hrh" // KAppMngr2AppUidValue |
|
25 |
|
26 class CEikTextListBox; |
|
27 class CAknSettingStyleListBox; |
|
28 |
|
29 const TUid KAppMngr2AppUid = { KAppMngr2AppUidValue }; |
|
30 |
|
31 // Items in R_APPMNGR2_SETTING_ARRAY resource array |
|
32 enum KAppMngr2SettingArrayItems |
|
33 { |
|
34 EAppMngr2SettingSwInstall = 0, |
|
35 EAppMngr2SettingOcsp = 1, |
|
36 EAppMngr2SettingOcspUrl = 2 |
|
37 }; |
|
38 |
|
39 // Items in R_APPMNGR2_OCSP_CHECK_VALUE_ARRAY resource array |
|
40 enum KAppMngr2OcspCheckValueArrayItems |
|
41 { |
|
42 EAppMngr2OcspCheckValueArrayMustPass = 0, |
|
43 EAppMngr2OcspCheckValueArrayOn = 1, |
|
44 EAppMngr2OcspCheckValueArrayOff = 2 |
|
45 }; |
|
46 |
|
47 |
|
48 class CAppMngr2GSSettingsContainer : public CCoeControl |
|
49 { |
|
50 public: // constructors and destructor |
|
51 static CAppMngr2GSSettingsContainer* NewL( const TRect& aRect ); |
|
52 ~CAppMngr2GSSettingsContainer(); |
|
53 |
|
54 public: // new functions |
|
55 CAknSettingStyleListBox* ListBox() const; |
|
56 void UpdateListBoxContentL(); |
|
57 |
|
58 public: // from CCoeControl |
|
59 TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType ); |
|
60 |
|
61 private: // new functions |
|
62 CAppMngr2GSSettingsContainer(); |
|
63 void ConstructL( const TRect& aRect ); |
|
64 void LoadIconsL(); |
|
65 |
|
66 private: // from CCoeControl |
|
67 void SizeChanged(); |
|
68 void FocusChanged( TDrawNow aDrawNow ); |
|
69 TInt CountComponentControls() const; |
|
70 CCoeControl* ComponentControl( TInt aIndex ) const; |
|
71 void GetHelpContext( TCoeHelpContext& aContext ) const; |
|
72 void HandleResourceChange( TInt aType ); |
|
73 |
|
74 private: // data |
|
75 CDesCArray* iItems; |
|
76 CDesCArray* iOcspCheckValueArray; |
|
77 CDesCArray* iAllowUntrustedValueArray; |
|
78 CAknSettingStyleListBox* iListbox; |
|
79 }; |
|
80 |
|
81 |
|
82 #endif // C_APPMNGR2GSSETTINGSCONTAINER_H |
|
83 |