|
1 /* |
|
2 * smfsettingshandler_qt.h |
|
3 * |
|
4 * Created on: Jul 8, 2010 |
|
5 * Author: satishkk |
|
6 */ |
|
7 |
|
8 #ifndef SMFSETTINGSHANDLER_QT_H_ |
|
9 #define SMFSETTINGSHANDLER_QT_H_ |
|
10 |
|
11 #include <qsettings.h> |
|
12 #include <qstringlist.h> |
|
13 |
|
14 /*! |
|
15 @class SmfSettingsRepositoryQt |
|
16 |
|
17 @discussion An instance Platform Independent Settings class |
|
18 to set/get setting values to/from symbian repository. |
|
19 */ |
|
20 class SmfSettingsRepositoryQt : public QObject |
|
21 { |
|
22 public: |
|
23 |
|
24 |
|
25 /*! |
|
26 @function ~SmfSettingsRepositoryQt |
|
27 |
|
28 @discussion Destroy the object and release all memory objects |
|
29 */ |
|
30 ~SmfSettingsRepositoryQt(); |
|
31 |
|
32 /*! |
|
33 @function SmfSettingsRepositoryQt |
|
34 |
|
35 @discussion Construct the Settings Object |
|
36 */ |
|
37 |
|
38 SmfSettingsRepositoryQt(QObject *parent = 0); |
|
39 /* |
|
40 * Method to set the PluginDetails to QSettings |
|
41 * Parm - @aPluginName,Name of the plugin |
|
42 * Param - @aPluginStatus,holds the Plgugin Status. |
|
43 */ |
|
44 void SetPluginDetails(QString& aPluginName,QString& aPluginStatus); |
|
45 /* |
|
46 * Method to set the Auth Expiry Value to QSettings |
|
47 * Param - @aVal,Auth Expiry Value |
|
48 */ |
|
49 void SetAuthExpirationValue(QString& aVal); |
|
50 /* |
|
51 * Method to set the Max. Data Transfer Limit to QSettings |
|
52 * Param - @aVal,Max. Data Transfer Limit Value |
|
53 */ |
|
54 void SetMaxDataTransferLimit(QString& aVal); |
|
55 /* |
|
56 * Method to set the Roaming Status for Data Transfer to QSettings |
|
57 * Param - @aStatus,Rpaming Status value for Data Transfer |
|
58 */ |
|
59 void SetRoamingStatusforDataTransfer(QString& aStatus); |
|
60 /* |
|
61 * Method to set the Upload File Type to QSettings |
|
62 * Param - @aStatus,Upload File Type Value |
|
63 */ |
|
64 void SetUploadFileType(QString& aFileType); |
|
65 /* |
|
66 * Method to Get the PluginDetails from QSettings |
|
67 */ |
|
68 void GetPluginDetails(QMap<QString,QString>& aDetails) const; |
|
69 /* |
|
70 * Method to Get the Auth Expiry Value from QSettings |
|
71 */ |
|
72 QString GetAuthExpirationValue() const; |
|
73 /* |
|
74 * Method to Get the Max. Data Transfer Limit from QSettings |
|
75 */ |
|
76 QString GetMaxDataTransferLimit() const; |
|
77 /* |
|
78 * Method to Get the Roaming Status for Data Transfer from QSettings |
|
79 */ |
|
80 QString GetRoamingStatusforDataTransfer() const; |
|
81 /* |
|
82 * Method to Get the Upload File Type from QSettings |
|
83 */ |
|
84 QString GetUploadFileType() const; |
|
85 |
|
86 private: |
|
87 /*! |
|
88 Pointer to the QSettings Object |
|
89 */ |
|
90 QSettings* iSettings; |
|
91 |
|
92 }; |
|
93 |
|
94 #endif /* SMFSETTINGSHANDLER_QT_H_ */ |