commondrm/drmsettingsplugin/inc/drmsettingsusagecheckbox.h
branchRCL_3
changeset 27 1481bf457703
equal deleted inserted replaced
26:1221b68b8a5f 27:1481bf457703
       
     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 class CDRMSettingsPlugin;
       
    31 
       
    32 /**
       
    33  * CDrmSettingUsageCheckBox class
       
    34  */
       
    35 NONSHARABLE_CLASS( CDrmSettingUsageCheckBox ) : public CAknCheckBoxSettingPage
       
    36     {
       
    37 
       
    38     public: // New functions
       
    39 
       
    40         /**
       
    41 		* C++ default constructor.
       
    42 		*/
       
    43 		CDrmSettingUsageCheckBox( TInt aResourceId,
       
    44 		                          CDRMSettingUsageList* aList,
       
    45 		                          CDRMSettingsModel* aModel,
       
    46 		                          CDRMSettingsPlugin* aPlugin );
       
    47 		                          
       
    48 		/**
       
    49 		* Destructor.
       
    50         */
       
    51         virtual ~CDrmSettingUsageCheckBox();	
       
    52 
       
    53 	private: // From CAknSettingPage
       
    54 	
       
    55 	    TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, 
       
    56 	                                 TEventCode aType );
       
    57 	
       
    58 	    void DynamicInitL();
       
    59 	
       
    60 	    TBool OkToExitL(TBool aAccept);
       
    61 	    
       
    62 	    void AcceptSettingL();    
       
    63 	
       
    64 	private: // New functions
       
    65 	
       
    66 	    void ShowInfoPopupL();
       
    67 
       
    68     private: // Data
       
    69 		
       
    70 		// Not owned
       
    71 		CDRMSettingUsageList* iList;
       
    72 		
       
    73 		// Not owned
       
    74         CDRMSettingsModel* iModel;
       
    75         
       
    76         // Owned
       
    77         CAknInfoPopupNoteController* iPopupController;
       
    78         
       
    79         // Pointer to CDrmSettingsPlugin instance
       
    80         CDRMSettingsPlugin* iDrmSettingsPlugin;
       
    81 
       
    82     };
       
    83 
       
    84 #endif // C_DRMSETTINGSUSAGECHECKBOX_H