|
1 /* |
|
2 * Copyright (c) 2006-2007 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 DRMSettinsPlugin view. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef DRMSETTINGSPLUGINCONTAINER_H |
|
20 #define DRMSETTINGSPLUGINCONTAINER_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <gsbasecontainer.h> |
|
24 |
|
25 // FORWARD DECLARATIONS |
|
26 class CGSListBoxItemTextArray; |
|
27 class CDRMSettingsModel; |
|
28 |
|
29 // CLASS DECLARATION |
|
30 |
|
31 /** |
|
32 * CDRMSettingsPluginContainer container class |
|
33 * @since Series 60_3.1 |
|
34 * |
|
35 * Container class for DRM Settings view |
|
36 */ |
|
37 class CDRMSettingsPluginContainer : public CGSBaseContainer |
|
38 { |
|
39 |
|
40 public: // Constructors and destructor |
|
41 |
|
42 /** |
|
43 * Symbian OS constructor. |
|
44 * @param aRect Listbox's rect. |
|
45 */ |
|
46 void ConstructL( const TRect& aRect ); |
|
47 |
|
48 CDRMSettingsPluginContainer( TBool aWmdrmSupported ); |
|
49 |
|
50 /** |
|
51 * Destructor. |
|
52 */ |
|
53 ~CDRMSettingsPluginContainer(); |
|
54 |
|
55 public: // new |
|
56 |
|
57 /** |
|
58 * Updates listbox's item's value. |
|
59 * @param aFeatureId An item which is updated. |
|
60 */ |
|
61 void UpdateListBoxL( TInt aFeatureId ); |
|
62 |
|
63 /** |
|
64 * Retrieves the currently selected listbox feature id |
|
65 * @return feature id. |
|
66 */ |
|
67 TInt CurrentFeatureId() const; |
|
68 |
|
69 /** |
|
70 * @return Model for the plugin. |
|
71 */ |
|
72 CDRMSettingsModel* Model(); |
|
73 |
|
74 protected: // from CGSBaseContainer |
|
75 |
|
76 /** |
|
77 * See base class. |
|
78 */ |
|
79 void ConstructListBoxL( TInt aResLbxId ); |
|
80 |
|
81 private: // new |
|
82 |
|
83 void CreateListBoxItemsL(); |
|
84 void MakeTransactionTrackingItemL(); |
|
85 void MakeAutomaticActivationItemL(); |
|
86 void MakeUsageReportingItemL(); |
|
87 void MakeWMDRMLicenseDeletionItemL(); |
|
88 |
|
89 private: |
|
90 |
|
91 /** |
|
92 * Required for help. |
|
93 */ |
|
94 void GetHelpContext( TCoeHelpContext& aContext ) const; |
|
95 |
|
96 private: // data |
|
97 |
|
98 // GS listbox item array |
|
99 CGSListBoxItemTextArray* iListboxItemArray; |
|
100 |
|
101 // Model for DRMSettingsPlugin. |
|
102 CDRMSettingsModel* iModel; |
|
103 TBool iWmdrmSupported; |
|
104 }; |
|
105 |
|
106 #endif //DRMSETTINGSPLUGINCONTAINER_H |
|
107 |
|
108 // End of File |