commondrm/drmsettingsplugin/inc/drmsettingsplugincontainer.h
branchRCL_3
changeset 26 1221b68b8a5f
parent 25 50c53e893c3f
child 27 1481bf457703
equal deleted inserted replaced
25:50c53e893c3f 26:1221b68b8a5f
     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                                      TBool aOmadrmSupported );
       
    50         
       
    51         /**
       
    52         * Destructor.
       
    53         */
       
    54         ~CDRMSettingsPluginContainer();
       
    55 
       
    56     public: // new
       
    57 
       
    58         /**
       
    59         * Updates listbox's item's value.
       
    60         * @param aFeatureId An item which is updated.
       
    61         */
       
    62         void UpdateListBoxL( TInt aFeatureId );
       
    63 
       
    64         /**
       
    65         * Retrieves the currently selected listbox feature id
       
    66         * @return feature id.
       
    67         */
       
    68         TInt CurrentFeatureId() const;
       
    69         
       
    70         /**
       
    71         * @return Model for the plugin.
       
    72         */
       
    73         CDRMSettingsModel* Model();
       
    74         
       
    75     protected: // from CGSBaseContainer
       
    76     
       
    77         /**
       
    78         * See base class.
       
    79         */
       
    80         void ConstructListBoxL( TInt aResLbxId );
       
    81         
       
    82     private: // new
       
    83 
       
    84         void CreateListBoxItemsL();
       
    85         void MakeTransactionTrackingItemL();
       
    86         void MakeAutomaticActivationItemL();
       
    87         void MakeUsageReportingItemL();
       
    88         void MakeWMDRMLicenseDeletionItemL();
       
    89 
       
    90     private:
       
    91     
       
    92         /**
       
    93         * Required for help.
       
    94         */
       
    95         void GetHelpContext( TCoeHelpContext& aContext ) const;
       
    96 
       
    97     private: // data
       
    98 
       
    99         // GS listbox item array
       
   100         CGSListBoxItemTextArray* iListboxItemArray;
       
   101         
       
   102         // Model for DRMSettingsPlugin.
       
   103         CDRMSettingsModel* iModel;
       
   104         
       
   105         TBool iWmdrmSupported;
       
   106         
       
   107         // Oma drm 2 is configured to be supported.
       
   108         TBool iOmadrm2Supported;
       
   109         
       
   110     };
       
   111 
       
   112 #endif //DRMSETTINGSPLUGINCONTAINER_H
       
   113 
       
   114 // End of File