smf/smfservermodule/smfserver/server/smfsettingshandler.h
changeset 14 a469c0e6e7fb
child 18 013a02bf2bb0
equal deleted inserted replaced
13:b5d63d5fc252 14:a469c0e6e7fb
       
     1 /**
       
     2  * Copyright (c) 2010 Sasken Communication Technologies Ltd.
       
     3  * All rights reserved.
       
     4  * This component and the accompanying materials are made available
       
     5  * under the terms of the "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  * Chandradeep Gandhi, Sasken Communication Technologies Ltd - Initial contribution
       
    11  *
       
    12  * Contributors:
       
    13  * Manasij Roy, Nalina Hariharan
       
    14  *
       
    15  * Description:
       
    16  * Reads/Writes settings key in a platform independent way
       
    17  */
       
    18 #ifndef SMFSETTINGSHANDLER_H
       
    19 #define SMFSETTINGSHANDLER_H
       
    20 
       
    21 #include <QObject>
       
    22 #include <QStringList>
       
    23 #include <QMap>
       
    24 #ifdef Q_OS_SYMBIAN
       
    25 class CSettingsRepository;
       
    26 #else
       
    27 //TODO:- Implement
       
    28 class SettingsRepositoryQt;
       
    29 #endif
       
    30 class SmfSettingsHandler : public QObject
       
    31 	{
       
    32 	Q_OBJECT
       
    33 public:
       
    34 	SmfSettingsHandler(QObject* parent=0);
       
    35 	~SmfSettingsHandler();
       
    36 
       
    37 public slots:
       
    38 	/*
       
    39 	 * Method to set the PluginDetails to Smf repository
       
    40 	 * Parm - @aPluginName,Name of the plugin
       
    41 	 * Param - @aPluginStatus,holds the Plgugin Status.
       
    42 	 */
       
    43 	void SetPluginDetails(QString& aPluginName,QString& aPluginStatus);
       
    44 	/*
       
    45 	 * Method to set the Auth Expiry Value to Repository
       
    46 	 * Param - @aVal,Auth Expiry Value
       
    47 	 */
       
    48 	void SetAuthExpirationValue(QString& aVal);
       
    49 	/*
       
    50 	 * Method to set the Max. Data Transfer Limit to Repository
       
    51 	 * Param - @aVal,Max. Data Transfer Limit Value
       
    52 	 */
       
    53 	void SetMaxDataTransferLimit(QString& aVal);
       
    54 	/*
       
    55 	 * Method to set the Roaming Status for Data Transfer to Repository
       
    56 	 * Param - @aStatus,Rpaming Status value for Data Transfer
       
    57 	 */
       
    58 	void SetRoamingStatusforDataTransfer(QString& aStatus);
       
    59 	/*
       
    60 	 * Method to set the Upload File Type to Repository
       
    61 	 * Param - @aStatus,Upload File Type Value
       
    62 	 */
       
    63 	void SetUploadFileType(QString& aFileType);
       
    64 	/*
       
    65 	 * Method to Get the PluginDetails from Repository
       
    66 	 */
       
    67 	void GetPluginDetails(QMap<QString,QString>& aDetails ) const;
       
    68 	/*
       
    69 	 * Method to Get the Auth Expiry Value from Repository
       
    70 	 */
       
    71 	QString GetAuthExpirationValue() const;
       
    72 	/*
       
    73 	 * Method to Get the Max. Data Transfer Limit from Repository
       
    74 	 */
       
    75 	QString GetMaxDataTransferLimit() const;
       
    76 	/*
       
    77 	 * Method to Get the Roaming Status for Data Transfer from Repository
       
    78 	 */
       
    79 	QString GetRoamingStatusforDataTransfer() const;
       
    80 	/*
       
    81 	 * Method to Get the Upload File Type from Repository
       
    82 	 */
       
    83 	QString GetUploadFileType() const;
       
    84 private:
       
    85 	#ifdef Q_OS_SYMBIAN
       
    86 	CSettingsRepository* m_repository;
       
    87 	#else
       
    88 	SettingsRepositoryQt* m_repository;
       
    89 	#endif
       
    90 	};
       
    91 #endif