|
1 /* |
|
2 * Copyright (c) 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: CheckBox class for Usage Reporting settings |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_DRMSETTINGSUSAGECHECKBOX_H |
|
20 #define C_DRMSETTINGSUSAGECHECKBOX_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <akncheckboxsettingpage.h> |
|
24 #include <aknsettingpage.h> |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class CDRMSettingUsageList; |
|
28 class CDRMSettingsModel; |
|
29 class CAknInfoPopupNoteController; |
|
30 |
|
31 /** |
|
32 * CDrmSettingUsageCheckBox class |
|
33 */ |
|
34 NONSHARABLE_CLASS( CDrmSettingUsageCheckBox ) : public CAknCheckBoxSettingPage |
|
35 { |
|
36 |
|
37 public: // New functions |
|
38 |
|
39 /** |
|
40 * C++ default constructor. |
|
41 */ |
|
42 CDrmSettingUsageCheckBox( TInt aResourceId, |
|
43 CDRMSettingUsageList* aList, |
|
44 CDRMSettingsModel* aModel ); |
|
45 |
|
46 /** |
|
47 * Destructor. |
|
48 */ |
|
49 virtual ~CDrmSettingUsageCheckBox(); |
|
50 |
|
51 private: // From CAknSettingPage |
|
52 |
|
53 TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, |
|
54 TEventCode aType ); |
|
55 |
|
56 void DynamicInitL(); |
|
57 |
|
58 TBool OkToExitL(TBool aAccept); |
|
59 |
|
60 void AcceptSettingL(); |
|
61 |
|
62 private: // New functions |
|
63 |
|
64 void ShowInfoPopupL(); |
|
65 |
|
66 private: // Data |
|
67 |
|
68 // Not owned |
|
69 CDRMSettingUsageList* iList; |
|
70 |
|
71 // Not owned |
|
72 CDRMSettingsModel* iModel; |
|
73 |
|
74 // Owned |
|
75 CAknInfoPopupNoteController* iPopupController; |
|
76 |
|
77 }; |
|
78 |
|
79 #endif // C_DRMSETTINGSUSAGECHECKBOX_H |