diff -r 76883296a0d5 -r 11a052f4b02e coreapplicationuis/powersaveutilities/cppsmplugin/src/cppsmview.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/powersaveutilities/cppsmplugin/src/cppsmview.h Wed Aug 18 09:58:19 2010 +0300 @@ -0,0 +1,60 @@ +/* + * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). + * All rights reserved. + * This component and the accompanying materials are made available + * under the terms of "Eclipse Public License v1.0"" + * which accompanies this distribution, and is available + * at the URL "http://www.eclipse.org/legal/epl-v10.html". + * + * Initial Contributors: + * Nokia Corporation - initial contribution. + * + * Contributors: + * + * Description: + * + */ +#ifndef CPPSMVIEW_H +#define CPPSMVIEW_H + +#include +#include +#include +#include +#include // CPsmClient +#include + +class HbDataFormModel; +class HbDataFormModelItem; +class CpSettingFormItemData; +class CPsmClient; + + +class CpPsmView : public CpBaseSettingView,public MPsmClientObserver +{ + Q_OBJECT +public: + explicit CpPsmView(QGraphicsItem *parent = 0); + virtual ~CpPsmView(); + + void PowerSaveModeChanged( const TPsmsrvMode aMode ); + + /** + * @see MPsmClientObserver + */ + void PowerSaveModeChangeError( const TInt aError ); + +private slots: + //need handling your member's value change + void checkBoxStateChanged(int state); + void toggleChange(); +private: + HbDataForm *iForm; + HbDataFormModel *iModel ; + HbDataFormModelItem *iCheckBoxItem; + CPsmClient* iPsmClient; + HbDataFormModelItem *iPowerSaveMode; + HbTranslator *iTrans; + +}; +#endif// CPPSMVIEW_H