smf/smfsettingsui/SMFSettings.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 * Settings UI class of SMF 
       
    16 */
       
    17 
       
    18 #ifndef SMFSETTINGS_H
       
    19 #define SMFSETTINGS_H
       
    20 
       
    21 //#include <QtGui/QWidget>
       
    22 #include <qmainwindow.h>
       
    23 #include "ui_SMFSettings.h"	//for SMFSettingsClass
       
    24 #include "SettingsRepository.h"
       
    25 #include "PlatfromIndependentSettings.h"
       
    26 #include "qlist.h"		//for QList
       
    27 #include "qstring.h"	//for QString
       
    28 #include "SettingsConstants.h"
       
    29 
       
    30 /* 
       
    31  * SMFSettings UI Class
       
    32  */
       
    33 class SMFSettings : public /*QWidget*/	QMainWindow
       
    34 {
       
    35     Q_OBJECT
       
    36 
       
    37 public:
       
    38 	/*
       
    39 	 * Constructor
       
    40 	 */
       
    41 	SMFSettings(/*QWidget *parent = 0*/);
       
    42 	/*
       
    43 	 * Destructor
       
    44 	 */
       
    45     ~SMFSettings();
       
    46     
       
    47 public slots:
       
    48 	/*
       
    49 	 * slot written to set/Save the User input/settings to xml.
       
    50 	 */
       
    51     void SaveSettings();
       
    52 	/*
       
    53 	 * slot written to Reset the UI settings.
       
    54 	 */
       
    55 	void ClearData();
       
    56 private:
       
    57 	/*
       
    58 	 * Method to get the default/initial settings from xml.
       
    59 	 */
       
    60 	void GetDefaultSettings();
       
    61 	
       
    62 	//void createActions();
       
    63 	void createMenuActions();
       
    64 	
       
    65 //Set & Get Methods
       
    66 public:
       
    67 	/*
       
    68 	 * Method to set the PluginDetails to UI
       
    69 	 * Param - @aPluginStatus,holds the Plgugin Status.
       
    70 	 */
       
    71 	void SetPluginDetails(QString aPluginName,QString aPluginStatus);
       
    72 	/*
       
    73 	 * Method to set the Auth Expiry Value to UI
       
    74 	 * Param - @aVal,Auth Expiry Value
       
    75 	 */
       
    76 	void SetAuthExpirationValue(QString aVal);
       
    77 	/*
       
    78 	 * Method to set the Max. Data Transfer Limit to UI
       
    79 	 * Param - @aVal,Max. Data Transfer Limit Value
       
    80 	 */
       
    81 	void SetMaxDataTransferLimit(QString aVal);
       
    82 	/*
       
    83 	 * Method to set the Roaming Status for Data Transfer to UI
       
    84 	 * Param - @aStatus,Rpaming Status value for Data Transfer
       
    85 	 */
       
    86 	void SetRoamingStatusforDataTransfer(QString aStatus);
       
    87 	/*
       
    88 	 * Method to set the Upload File Type to UI
       
    89 	 * Param - @aStatus,Upload File Type Value
       
    90 	 */
       
    91 	void SetUploadFileType(QString aFileType);
       
    92 	/*
       
    93 	 * Method to Get the PluginDetails from UI
       
    94 	 */
       
    95 	QStringList GetPluginDetails() const;
       
    96 	/*
       
    97 	 * Method to Get the Auth Expiry Value from UI
       
    98 	 */
       
    99 	QString GetAuthExpirationValue() const;
       
   100 	/*
       
   101 	 * Method to Get the Max. Data Transfer Limit from UI
       
   102 	 */
       
   103 	QString GetMaxDataTransferLimit() const;
       
   104 	/*
       
   105 	 * Method to Get the Roaming Status for Data Transfer from UI
       
   106 	 */
       
   107 	QString GetRoamingStatusforDataTransfer() const;
       
   108 	/*
       
   109 	 * Method to Get the Upload File Type from UI
       
   110 	 */
       
   111 	QString GetUploadFileType() const;
       
   112 	
       
   113 private:
       
   114 	/*
       
   115 	 * pointer to Settings UI class.
       
   116 	 */
       
   117     Ui::SMFSettingsClass *ui;
       
   118     
       
   119 	#ifdef __FOR_SYMBIAN__
       
   120 		CSettingsRepository* iSettingsRepository;
       
   121 	#else
       
   122 		CPFIndSettings* iSettingsRepository;
       
   123 	#endif
       
   124  
       
   125 
       
   126 };
       
   127 
       
   128 #endif // SMFSETTINGS_H