diff -r fc7b30ed2058 -r 05bc53fe583b cmmanager/gsconnsettingsplugin/inc/gsconnsettingspluginmodel.h --- a/cmmanager/gsconnsettingsplugin/inc/gsconnsettingspluginmodel.h Thu Aug 19 10:18:49 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,141 +0,0 @@ -/* -* Copyright (c) 2005 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: Display Settings model. -* -*/ - -#ifndef GSCONNSETTINGSPLUGINMODEL_H -#define GSCONNSETTINGSPLUGINMODEL_H - -#include -#include - -class CGSConnSettingsPluginContainer; - -// CONSTANTS - -// MACROS - -// DATA TYPES - -// FUNCTION PROTOTYPES - -// FORWARD DECLARATIONS - -// CLASS DEFINITION -/** -* CGSConnSettingsPluginModel is the model class of Connectivity Settings plugin. -* It provides functions to get and set setting values. -* @lib gsconnsettingsplugin.lib -* @since Series 60_3.1 - -*/ -NONSHARABLE_CLASS( CGSConnSettingsPluginModel ): public CBase - { - public: // Constructor and destructor - /** - * Two-phased constructor - */ - static CGSConnSettingsPluginModel* NewL(); - - /** - * Destructor - */ - ~CGSConnSettingsPluginModel(); - - public: - /** - * Loads settings by using CMManager's general connection settings API - */ - void LoadSettingsL(); - - /** - * Saves settings by using CMManager's general connection settings API - */ - void SaveSettingsL(); - - /** - * Gets and maps value from general connection settings API to match index in UI - * @return TInt - */ - TInt UsageOfWlan(); - - /** - * Gets and maps value from general connection settings API to match index in UI - * @return TInt - */ - TInt DataUsageAbroad(); - - /** - * Gets and maps value from general connection settings API to match index in UI - * @return TInt - */ - TInt DataUsageInHomeNw(); - - /** - * Maps UI index to according general connection setting API value - * @param aValue index to be mapped to API value - */ - void SetUsageOfWlan( TInt aValue ); - - /** - * Maps UI index to according general connection setting API value - * @param aValue index to be mapped to API value - */ - void SetDataUsageAbroad( TInt aValue ); - - /** - * Maps UI index to according general connection setting API value - * @param aValue index to be mapped to API value - */ - void SetDataUsageInHomeNw( TInt aValue ); - - /** - * @param - */ - void SetOwner( CGSConnSettingsPluginContainer* aPlugin); - - private: // Private constructors - - /** - * Default C++ contructor - */ - CGSConnSettingsPluginModel(); - - /** - * Symbian OS default constructor - * @return void - */ - void ConstructL(); - - private: - /** - * Pointer to container class - */ - CGSConnSettingsPluginContainer* iContainer; - - /** - * Struct to hold current settings - */ - TCmGenConnSettings iSettings; - - /** - * Flag is set when wlan is supported - */ - TBool iIsWlanSupported; - - }; - -#endif //GSCONNSETTINGSPLUGINMODEL_H -