commondrm/drmsettingsplugin/inc/drmsettingsplugin.h
changeset 23 493788a4a8a4
parent 0 95b198f216e5
child 32 457cd4423b8c
equal deleted inserted replaced
5:79d62d1d7957 23:493788a4a8a4
    19 #ifndef DRMSETTINGSPLUGIN_H
    19 #ifndef DRMSETTINGSPLUGIN_H
    20 #define DRMSETTINGSPLUGIN_H
    20 #define DRMSETTINGSPLUGIN_H
    21 
    21 
    22 // INCLUDES
    22 // INCLUDES
    23 #include <aknsettingpage.h>
    23 #include <aknsettingpage.h>
    24 #include <coneresloader.h>
    24 #include <ConeResLoader.h>
    25 #include <gsplugininterface.h>
    25 #include <gsplugininterface.h>
    26 #include <gsfwviewuids.h>
    26 #include <gsfwviewuids.h>
    27 #include <gsbaseview.h>
    27 #include <gsbaseview.h>
    28 #include <eikmenup.h>
    28 #include <eikmenup.h>
    29 
    29 
    52 *
    52 *
    53 *  View class for DRM Settings plugin
    53 *  View class for DRM Settings plugin
    54 */
    54 */
    55 class CDRMSettingsPlugin : public CGSBaseView
    55 class CDRMSettingsPlugin : public CGSBaseView
    56     {
    56     {
    57     
    57 
    58     public: // Constructors and destructor
    58     public: // Constructors and destructor
    59 
    59 
    60         /**
    60         /**
    61         * Symbian OS two-phased constructor
    61         * Symbian OS two-phased constructor
    62         * @return connection view.
    62         * @return connection view.
    69         ~CDRMSettingsPlugin();
    69         ~CDRMSettingsPlugin();
    70 
    70 
    71     private:
    71     private:
    72         /**
    72         /**
    73         * Symbian OS default constructor.
    73         * Symbian OS default constructor.
    74         * 
    74         *
    75         */
    75         */
    76         void ConstructL();
    76         void ConstructL();
    77 
    77 
    78         /**
    78         /**
    79         * C++ default constructor.
    79         * C++ default constructor.
    80         */
    80         */
    81         CDRMSettingsPlugin();
    81         CDRMSettingsPlugin();
    82 
    82 
    83     public: // from CAknView
    83     public: // from CAknView
    84         
    84 
    85         /**
    85         /**
    86         * Returns view id.
    86         * Returns view id.
    87         * @return An unsigned integer (view id).
    87         * @return An unsigned integer (view id).
    88         */
    88         */
    89         TUid Id() const;
    89         TUid Id() const;
    90 
    90 
    91     public: // from MEikCommandObserver 
    91     public: // from MEikCommandObserver
    92 
    92 
    93         /**
    93         /**
    94         * Handles commands.
    94         * Handles commands.
    95         * @param aCommand Command to be handled.
    95         * @param aCommand Command to be handled.
    96         * 
    96         *
    97         */
    97         */
    98         void HandleCommandL( TInt aCommand );
    98         void HandleCommandL( TInt aCommand );
    99 
    99 
   100     public: //new
   100     public: //new
   101 
   101 
   102         /**
   102         /**
   103         * Updates listbox's item's value.
   103         * Updates listbox's item's value.
   104         * @param aItemId An item which is updated.
   104         * @param aItemId An item which is updated.
   105         * 
   105         *
   106         */
   106         */
   107         void UpdateListBoxL( TInt aItemId );
   107         void UpdateListBoxL( TInt aItemId );
   108 
   108 
   109     public: // From CGSPluginInterface
   109     public: // From CGSPluginInterface
   110 
   110 
   111         /**
   111         /**
   112         * @see CGSPluginInterface header file.
   112         * @see CGSPluginInterface header file.
   113         */
   113         */
   114         void GetCaptionL( TDes& aCaption ) const;
   114         void GetCaptionL( TDes& aCaption ) const;
   115         
   115 
   116         /**
   116         /**
   117         * @see CGSPluginInterface header file.
   117         * @see CGSPluginInterface header file.
   118         */
   118         */
   119         TInt PluginProviderCategory() const;
   119         TInt PluginProviderCategory() const;
   120 
   120 
   128         void NewContainerL();
   128         void NewContainerL();
   129         //
   129         //
   130         void HandleListBoxSelectionL();
   130         void HandleListBoxSelectionL();
   131 
   131 
   132     private: // new
   132     private: // new
   133         
   133 
   134         /**
   134         /**
   135         * Update transaction tracking setting
   135         * Update transaction tracking setting
   136         */
   136         */
   137         void UpdateTransactionTrackingSettingL( TBool aShowSettingPage );
   137         void UpdateTransactionTrackingSettingL( TBool aShowSettingPage );
   138 
   138 
   173         CDRMSettingsPluginContainer* Container();
   173         CDRMSettingsPluginContainer* Container();
   174 
   174 
   175     protected: // From MEikMenuObserver
   175     protected: // From MEikMenuObserver
   176 
   176 
   177         void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane );
   177         void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane );
   178         
   178 
   179     private: // data
   179     private: // data
   180         //resource loader
   180         //resource loader
   181         RConeResourceLoader iResourceLoader;
   181         RConeResourceLoader iResourceLoader;
   182         
   182 
   183         TBool iWmdrmSupported;
   183         TBool iWmdrmSupported;
   184     };
   184     };
   185 
   185 
   186 #endif //DRMSETTINGSPLUGIN_H
   186 #endif //DRMSETTINGSPLUGIN_H
   187 
   187