smf/smfsettingsui/PlatfromIndependentSettings.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 "{License}"
       
     6 * which accompanies  this distribution, and is available
       
     7 * at the URL "{LicenseUrl}".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Narasimhulu Kavadapu, Sasken Communication Technologies Ltd - Initial contribution
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 * Platform Independent Settings Class
       
    16 */
       
    17 #include "SettingsConstants.h"
       
    18 
       
    19 #ifndef __FOR_SYMBIAN__
       
    20 
       
    21 #ifndef PLATFROMINDEPENDENTSETTINGS_H_
       
    22 #define PLATFROMINDEPENDENTSETTINGS_H_
       
    23 
       
    24 #include <qsettings.h>
       
    25 #include <qstringlist.h>
       
    26 /*!
       
    27   @class CPFIndSettings
       
    28 
       
    29   @discussion An instance Platform Independent Settings class 
       
    30   to set/get setting values to/from symbian repository.
       
    31   */
       
    32 class CPFIndSettings : public QObject
       
    33     {
       
    34 public:
       
    35 
       
    36 
       
    37 /*!
       
    38   @function ~CPFIndSettings
       
    39 
       
    40   @discussion Destroy the object and release all memory objects
       
    41   */
       
    42      ~CPFIndSettings();
       
    43 
       
    44 	/*!
       
    45 	  @function CPFIndSettings
       
    46 
       
    47 	  @discussion Construct the Settings Object
       
    48 	  */
       
    49 
       
    50 	    CPFIndSettings();
       
    51 	/*
       
    52 	 * Method to set the PluginDetails to QSettings
       
    53 	 * Parm - @aPluginName,Name of the plugin
       
    54 	 * Param - @aPluginStatus,holds the Plgugin Status.
       
    55 	 */
       
    56 	void SetPluginDetails(QString& aPluginName,QString& aPluginStatus);
       
    57 	/*
       
    58 	 * Method to set the Auth Expiry Value to QSettings
       
    59 	 * Param - @aVal,Auth Expiry Value
       
    60 	 */
       
    61 	void SetAuthExpirationValue(QString& aVal);
       
    62 	/*
       
    63 	 * Method to set the Max. Data Transfer Limit to QSettings
       
    64 	 * Param - @aVal,Max. Data Transfer Limit Value
       
    65 	 */
       
    66 	void SetMaxDataTransferLimit(QString& aVal);
       
    67 	/*
       
    68 	 * Method to set the Roaming Status for Data Transfer to QSettings
       
    69 	 * Param - @aStatus,Rpaming Status value for Data Transfer
       
    70 	 */
       
    71 	void SetRoamingStatusforDataTransfer(QString& aStatus);
       
    72 	/*
       
    73 	 * Method to set the Upload File Type to QSettings
       
    74 	 * Param - @aStatus,Upload File Type Value
       
    75 	 */
       
    76 	void SetUploadFileType(QString& aFileType);
       
    77 	/*
       
    78 	 * Method to Get the PluginDetails from QSettings
       
    79 	 */
       
    80 	QStringList GetPluginDetails() const;
       
    81 	/*
       
    82 	 * Method to Get the Auth Expiry Value from QSettings
       
    83 	 */
       
    84 	QString GetAuthExpirationValue() const;
       
    85 	/*
       
    86 	 * Method to Get the Max. Data Transfer Limit from QSettings
       
    87 	 */
       
    88 	QString GetMaxDataTransferLimit() const;
       
    89 	/*
       
    90 	 * Method to Get the Roaming Status for Data Transfer from QSettings
       
    91 	 */
       
    92 	QString GetRoamingStatusforDataTransfer() const;
       
    93 	/*
       
    94 	 * Method to Get the Upload File Type from QSettings
       
    95 	 */
       
    96 	QString GetUploadFileType() const;
       
    97 
       
    98 private:
       
    99     /*!
       
   100      Pointer to the QSettings Object
       
   101       */
       
   102     QSettings*  iSettings;
       
   103 
       
   104     };
       
   105 
       
   106 #endif /* PLATFROMINDEPENDENTSETTINGS_H_ */
       
   107 
       
   108 #endif