diff -r b5d63d5fc252 -r a469c0e6e7fb smf/smfservermodule/smfserver/server/smfsettingshandler_symbian.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/smf/smfservermodule/smfserver/server/smfsettingshandler_symbian.h Wed Jun 23 19:51:49 2010 +0530 @@ -0,0 +1,185 @@ +/** + * Copyright (c) 2010 Sasken Communication Technologies Ltd. + * All rights reserved. + * This component and the accompanying materials are made available + * under the terms of the "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: + * Chandradeep Gandhi, Sasken Communication Technologies Ltd - Initial contribution + * + * Contributors: + * + * Description: + * Settings Repository class of SMF + */ + +#ifndef SETTINGSREPOSITORY_H_ +#define SETTINGSREPOSITORY_H_ + +const TInt KMaxSettingValue = 50; + +#include +#include +#include +//#include +/*! + @class CSettingsRepository + + @discussion An instance Settings Repository class + to set/get setting values to/from symbian repository. + */ +class CSettingsRepository : public CBase + { +public: + +/*! + @function NewL + + @discussion Create a CSettingsRepository object + @result a pointer to the created instance of CSettingsRepository + */ + static CSettingsRepository* NewL(); + +/*! + @function NewLC + + @discussion Create a CSettingsRepository object + @result a pointer to the created instance of CSettingsRepository + */ + static CSettingsRepository* NewLC(); + + +/*! + @function ~CSettingsRepository + + @discussion Destroy the object and release all memory objects + */ + ~CSettingsRepository(); + + +public: + + + /*! + @function CSettingsRepository + + @discussion Perform the first phase of two phase construction + */ + + CSettingsRepository(); + /* + * Method to set the PluginDetails to Smf repository + * Parm - @aPluginName,Name of the plugin + * Param - @aPluginStatus,holds the Plgugin Status. + */ + void SetPluginDetails(QString& aPluginName,QString& aPluginStatus); + /* + * Method to set the Auth Expiry Value to Repository + * Param - @aVal,Auth Expiry Value + */ + void SetAuthExpirationValue(QString& aVal); + /* + * Method to set the Max. Data Transfer Limit to Repository + * Param - @aVal,Max. Data Transfer Limit Value + */ + void SetMaxDataTransferLimit(QString& aVal); + /* + * Method to set the Roaming Status for Data Transfer to Repository + * Param - @aStatus,Rpaming Status value for Data Transfer + */ + void SetRoamingStatusforDataTransfer(QString& aStatus); + /* + * Method to set the Upload File Type to Repository + * Param - @aStatus,Upload File Type Value + */ + void SetUploadFileType(QString& aFileType); + /* + * Method to Get the PluginDetails from Repository + * Key-Plugin name + * Value-Plugin status + */ + void GetPluginDetails(QMap& aDetails); + /* + * Method to Get the Auth Expiry Value from Repository + */ + QString GetAuthExpirationValue() const; + /* + * Method to Get the Max. Data Transfer Limit from Repository + */ + QString GetMaxDataTransferLimit()const; + /* + * Method to Get the Roaming Status for Data Transfer from Repository + */ + QString GetRoamingStatusforDataTransfer() const; + /* + * Method to Get the Upload File Type from Repository + */ + QString GetUploadFileType() const; +private: + /* + * Method to set the PluginDetails to Symbian Repository + * Parm - @aPluginName,Name of the plugin + * Param - @aPluginStatus,holds the Plgugin Status. + */ + void SetPluginDetails(TDesC& aPluginName,TDesC& aPluginStatus); + /* + * Method to set the Auth Expiry Value to Repository + * Param - @aVal,Auth Expiry Value + */ + void SetAuthExpirationValue(TDesC& aVal); + /* + * Method to set the Max. Data Transfer Limit to Repository + * Param - @aVal,Max. Data Transfer Limit Value + */ + void SetMaxDataTransferLimit(TDesC& aVal); + /* + * Method to set the Roaming Status for Data Transfer to Repository + * Param - @aStatus,Rpaming Status value for Data Transfer + */ + void SetRoamingStatusforDataTransfer(TDesC& aStatus); + /* + * Method to set the Upload File Type to Repository + * Param - @aStatus,Upload File Type Value + */ + void SetUploadFileType(TDesC& aFileType); + /* + * Method to Get the PluginDetails from Repository + */ + void GetPluginDetailsInternal(TDes& aName , TDes& aDetails) const; + /* + * Method to Get the Auth Expiry Value from Repository + */ + void GetAuthExpirationValueInternal(TDes& aExp) const; + /* + * Method to Get the Max. Data Transfer Limit from Repository + */ + void GetMaxDataTransferLimitInternal(TDes& aMax) const; + /* + * Method to Get the Roaming Status for Data Transfer from Repository + */ + void GetRoamingStatusforDataTransferInternal(TDes& aRoam) const; + /* + * Method to Get the Upload File Type from Repository + */ + void GetUploadFileTypeInternal(TDes& aFtype) const; + +private: + +/*! + @function ConstructL + + @discussion Perform the second phase construction of a CSettingsRepository object + */ + void ConstructL(); + + /*! + Pointer to the Centra Repository class object. + */ + CRepository* iRepository; + + }; + + +#endif /* SETTINGSREPOSITORY_H_ */