|
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 Repository class of SMF |
|
16 */ |
|
17 |
|
18 #include "SettingsConstants.h" |
|
19 |
|
20 #ifdef __FOR_SYMBIAN__ |
|
21 |
|
22 #ifndef SETTINGSREPOSITORY_H_ |
|
23 #define SETTINGSREPOSITORY_H_ |
|
24 |
|
25 const TInt KMaxSettingValue = 50; |
|
26 |
|
27 #include <centralrepository.h> |
|
28 //#include <BADESCA.H> |
|
29 /*! |
|
30 @class CSettingsRepository |
|
31 |
|
32 @discussion An instance Settings Repository class |
|
33 to set/get setting values to/from symbian repository. |
|
34 */ |
|
35 class CSettingsRepository : public CBase |
|
36 { |
|
37 public: |
|
38 |
|
39 /*! |
|
40 @function NewL |
|
41 |
|
42 @discussion Create a CSettingsRepository object |
|
43 @result a pointer to the created instance of CSettingsRepository |
|
44 */ |
|
45 static CSettingsRepository* NewL(); |
|
46 |
|
47 /*! |
|
48 @function NewLC |
|
49 |
|
50 @discussion Create a CSettingsRepository object |
|
51 @result a pointer to the created instance of CSettingsRepository |
|
52 */ |
|
53 static CSettingsRepository* NewLC(); |
|
54 |
|
55 |
|
56 /*! |
|
57 @function ~CSettingsRepository |
|
58 |
|
59 @discussion Destroy the object and release all memory objects |
|
60 */ |
|
61 ~CSettingsRepository(); |
|
62 |
|
63 |
|
64 public: |
|
65 |
|
66 |
|
67 /*! |
|
68 @function CSettingsRepository |
|
69 |
|
70 @discussion Perform the first phase of two phase construction |
|
71 */ |
|
72 |
|
73 CSettingsRepository(); |
|
74 /* |
|
75 * Method to set the PluginDetails to Symbian Repository |
|
76 * Parm - @aPluginName,Name of the plugin |
|
77 * Param - @aPluginStatus,holds the Plgugin Status. |
|
78 */ |
|
79 void SetPluginDetails(TDesC& aPluginName,TDesC& aPluginStatus); |
|
80 /* |
|
81 * Method to set the Auth Expiry Value to Repository |
|
82 * Param - @aVal,Auth Expiry Value |
|
83 */ |
|
84 void SetAuthExpirationValue(TDesC& aVal); |
|
85 /* |
|
86 * Method to set the Max. Data Transfer Limit to Repository |
|
87 * Param - @aVal,Max. Data Transfer Limit Value |
|
88 */ |
|
89 void SetMaxDataTransferLimit(TDesC& aVal); |
|
90 /* |
|
91 * Method to set the Roaming Status for Data Transfer to Repository |
|
92 * Param - @aStatus,Rpaming Status value for Data Transfer |
|
93 */ |
|
94 void SetRoamingStatusforDataTransfer(TDesC& aStatus); |
|
95 /* |
|
96 * Method to set the Upload File Type to Repository |
|
97 * Param - @aStatus,Upload File Type Value |
|
98 */ |
|
99 void SetUploadFileType(TDesC& aFileType); |
|
100 /* |
|
101 * Method to Get the PluginDetails from Repository |
|
102 */ |
|
103 RArray<TBuf<KMaxSettingValue> >& GetPluginDetails() const; |
|
104 /* |
|
105 * Method to Get the Auth Expiry Value from Repository |
|
106 */ |
|
107 TDesC& GetAuthExpirationValue() const; |
|
108 /* |
|
109 * Method to Get the Max. Data Transfer Limit from Repository |
|
110 */ |
|
111 TDesC& GetMaxDataTransferLimit() const; |
|
112 /* |
|
113 * Method to Get the Roaming Status for Data Transfer from Repository |
|
114 */ |
|
115 TDesC& GetRoamingStatusforDataTransfer() const; |
|
116 /* |
|
117 * Method to Get the Upload File Type from Repository |
|
118 */ |
|
119 TDesC& GetUploadFileType() const; |
|
120 |
|
121 private: |
|
122 |
|
123 /*! |
|
124 @function ConstructL |
|
125 |
|
126 @discussion Perform the second phase construction of a CSettingsRepository object |
|
127 */ |
|
128 void ConstructL(); |
|
129 |
|
130 /*! |
|
131 Pointer to the Centra Repository class object. |
|
132 */ |
|
133 CRepository* iRepository; |
|
134 |
|
135 }; |
|
136 |
|
137 |
|
138 #endif /* SETTINGSREPOSITORY_H_ */ |
|
139 |
|
140 #endif |