gssettingsuis/Gs/GSPowerSavingQueryPlugin/Inc/GSPowerSavingQueryPlugin.h
branchRCL_3
changeset 24 8ee96d21d9bf
parent 23 8bda91a87a00
child 25 7e0eff37aedb
equal deleted inserted replaced
23:8bda91a87a00 24:8ee96d21d9bf
     1 /*
       
     2 * Copyright (c) 2009 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:  View for Data call settings.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef GSPOWERSAVINGQUERYPLUGIN_H
       
    20 #define GSPOWERSAVINGQUERYPLUGIN_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <gsbaseview.h>
       
    24 #include <ConeResLoader.h>
       
    25 
       
    26 //CONSTANTS
       
    27 const TUid KGSPowerSavingQueryPluginUid = { 0x2002120C };
       
    28 _LIT( KGSPowerSavingQueryPluginIconDirAndName, "z:GSPowerSavingQueryPlugin.mbm"); // Use KDC_BITMAP_DIR
       
    29 
       
    30 // MACROS
       
    31 
       
    32 // DATA TYPES
       
    33 
       
    34 // FUNCTION PROTOTYPES
       
    35 
       
    36 // FORWARD DECLARATIONS
       
    37 class CGSPowerSavingQueryPluginContainer;
       
    38 
       
    39 // CLASS DEFINITION
       
    40 /**
       
    41 *  CGSPowerSavingQueryPlugin view class for power saving query settings
       
    42 *  @since Series 60_5.1
       
    43 *
       
    44 */
       
    45 class CGSPowerSavingQueryPlugin : public CGSBaseView
       
    46     {
       
    47     public: // Constructors and destructor
       
    48 
       
    49         /**
       
    50         * Symbian OS two-phased constructor
       
    51         * @return GS connection view.
       
    52         */
       
    53         static CGSPowerSavingQueryPlugin* NewL( TAny* aInitParams );
       
    54 
       
    55         /**
       
    56         * Destructor
       
    57         */
       
    58         ~CGSPowerSavingQueryPlugin();
       
    59 
       
    60     public: // From CGSPluginInterface
       
    61 
       
    62         /**
       
    63         * @see CGSPluginInterface header file.
       
    64         */
       
    65         void GetCaptionL( TDes& aCaption ) const;
       
    66 
       
    67         /**
       
    68         * See base class.
       
    69         */
       
    70         CGulIcon* CreateIconL( const TUid aIconType );
       
    71 
       
    72         /**
       
    73         * @see CGSPluginInterface header file.
       
    74         */
       
    75         TInt PluginProviderCategory() const;
       
    76 
       
    77         /**
       
    78         * @see CGSPluginInterface header file.
       
    79         */
       
    80         TBool Visible() const;
       
    81 
       
    82     public: // from base classes
       
    83 
       
    84         /**
       
    85         * Returns view id.
       
    86         * @return TUid
       
    87         */
       
    88         TUid Id() const;
       
    89 
       
    90         /**
       
    91         * Handles commands.
       
    92         * @param aCommand Command to be handled.
       
    93         *
       
    94         */
       
    95         void HandleCommandL( TInt aCommand );
       
    96     public: // From CAknView
       
    97 
       
    98         /**
       
    99         * See base class.
       
   100         */
       
   101         void DoActivateL( const TVwsViewId& aPrevViewId,
       
   102                           TUid /*aCustomMessageId*/,
       
   103                           const TDesC8& /*aCustomMessage*/ );
       
   104 
       
   105         /**
       
   106         * See base class.
       
   107         */
       
   108         void DoDeactivate();
       
   109 
       
   110     public: // new
       
   111 
       
   112         /**
       
   113         * Updates listbox's item's value.
       
   114         * @param aItemId An item which is updated.
       
   115         *
       
   116         */
       
   117         void UpdateListBoxL( TInt aItemId );
       
   118 
       
   119         /**
       
   120         * Get CGSPowerSavingQueryPlugin's ccontainer.
       
   121         */
       
   122         CGSPowerSavingQueryPluginContainer* Container();
       
   123 
       
   124     protected:
       
   125 
       
   126         /**
       
   127         * C++ default constructor.
       
   128         */
       
   129         CGSPowerSavingQueryPlugin();
       
   130 
       
   131         /**
       
   132         * Symbian OS default constructor.
       
   133         *
       
   134         */
       
   135         void ConstructL();
       
   136 
       
   137     private: // from CGSBaseView
       
   138 
       
   139         void NewContainerL();
       
   140         void HandleListBoxSelectionL();
       
   141 
       
   142     private: // new methods
       
   143 
       
   144         /**
       
   145         * Display power saving query setting page.
       
   146         */
       
   147         void ShowSettingPageL();
       
   148         
       
   149         /**
       
   150          * SwitchOnOffValue
       
   151          */
       
   152         void SwitchOnOffValue(TInt &aValue);
       
   153     private:
       
   154         // resource loader
       
   155         RConeResourceLoader iResourceLoader;
       
   156 
       
   157     };
       
   158 
       
   159 #endif //GSPOWERSAVINGQUERYPLUGIN_H
       
   160 
       
   161 // End of File