diff -r 8bda91a87a00 -r 8ee96d21d9bf gssettingsuis/Gs/GSPowerSavingQueryPlugin/Inc/GSPowerSavingQueryPluginModel.h --- a/gssettingsuis/Gs/GSPowerSavingQueryPlugin/Inc/GSPowerSavingQueryPluginModel.h Thu Aug 19 10:12:30 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,92 +0,0 @@ -/* -* Copyright (c) 2009 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: Model for Power saving query plugin. -* -*/ - - -#ifndef GSPOWERSAVINGQUERYPLUGINMODEL_H -#define GSPOWERSAVINGQUERYPLUGINMODEL_H - -// INCLUDES -#include - -// MACROS - -// DATA TYPES - -// FUNCTION PROTOTYPES - -// FORWARD DECLARATIONS -class CRepository; -// CLASS DEFINITION -/** -* CGSPowerSavingQueryPluginModel is the model class of Power saving query plugin. -* It provides functions to get and set setting values. -* @lib GSPowerSavingQueryPlugin.lib -* @since Series 60_5.1 - -*/ - -class CGSPowerSavingQueryPluginModel : public CBase - { - public: // Constructor and destructor - /** - * Two-phased constructor - */ - static CGSPowerSavingQueryPluginModel* NewL(); - - /** - * Destructor - */ - ~CGSPowerSavingQueryPluginModel(); - - public: - /** - * Returns the power saving query value (0 or 1) - * - * @return TInt - */ - TInt PowerSavingQueryEnabled(); - - /** - * Sets the the power saving query value. - * @param aQuery TInt (0 or 1) - * - * @return ETrue: no errors - * EFalse: an error has occurred - */ - TBool EnablePowerSavingQuery( TInt aQueryValue ); - - private: // Private constructors - /** - * Default C++ contructor - */ - CGSPowerSavingQueryPluginModel(); - - /** - * Symbian OS default constructor - * @return void - */ - void ConstructL(); - - private: // data - CRepository* iDeviceManagementRepository; - - }; - - -#endif //GSPOWERSAVINGQUERYPLUGINMODEL_H - -// End of File