coreapplicationuis/powersaveutilities/cppsmplugin/src/cppsmview.h
branchRCL_3
changeset 62 924385140d98
equal deleted inserted replaced
58:0818dd463d41 62:924385140d98
       
     1 /*
       
     2  * Copyright (c) 2010 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:  
       
    15  *
       
    16  */
       
    17 #ifndef	CPPSMVIEW_H
       
    18 #define	CPPSMVIEW_H
       
    19 
       
    20 #include <cpbasesettingview.h>
       
    21 #include <psmclient.h>
       
    22 #include <psmsettings.h>
       
    23 #include <hwrmpowerstatesdkpskeys.h>
       
    24 #include <psmclientobserver.h> // CPsmClient
       
    25 #include <hbtranslator.h>
       
    26 
       
    27 class HbDataFormModel;
       
    28 class HbDataFormModelItem;
       
    29 class CpSettingFormItemData;
       
    30 class CPsmClient;
       
    31 
       
    32 
       
    33 class CpPsmView : public CpBaseSettingView,public MPsmClientObserver
       
    34 {
       
    35     Q_OBJECT
       
    36 public:
       
    37     explicit CpPsmView(QGraphicsItem *parent = 0);
       
    38     virtual ~CpPsmView();
       
    39     
       
    40     void PowerSaveModeChanged( const TPsmsrvMode aMode );
       
    41         
       
    42         /**
       
    43          * @see MPsmClientObserver
       
    44          */
       
    45     void PowerSaveModeChangeError( const TInt aError );
       
    46            
       
    47 private slots:
       
    48     //need handling your member's value change
       
    49     void checkBoxStateChanged(int state);
       
    50     void toggleChange();
       
    51 private:
       
    52     HbDataForm *iForm;
       
    53     HbDataFormModel *iModel ;
       
    54     HbDataFormModelItem  *iCheckBoxItem;
       
    55     CPsmClient* iPsmClient;
       
    56     HbDataFormModelItem *iPowerSaveMode;
       
    57     HbTranslator *iTrans;
       
    58    
       
    59 };
       
    60 #endif//	CPPSMVIEW_H