|
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 #include "smfsettingshandler.h" |
|
19 #ifdef Q_OS_SYMBIAN |
|
20 #include "smfsettingshandler_symbian.h" |
|
21 #else |
|
22 #include "smfsettingshandler_qt.h" |
|
23 #endif |
|
24 SmfSettingsHandler::SmfSettingsHandler(QObject *parent) |
|
25 { |
|
26 #ifdef Q_OS_SYMBIAN |
|
27 m_repository = CSettingsRepository::NewL(); |
|
28 #else |
|
29 m_repository = new SettingsRepositoryQt(this); |
|
30 #endif |
|
31 } |
|
32 SmfSettingsHandler::~SmfSettingsHandler() |
|
33 { |
|
34 if(m_repository) |
|
35 { |
|
36 delete m_repository; |
|
37 m_repository = NULL; |
|
38 } |
|
39 } |
|
40 void SmfSettingsHandler::SetAuthExpirationValue(QString & aVal) |
|
41 { |
|
42 |
|
43 m_repository->SetAuthExpirationValue(aVal); |
|
44 } |
|
45 |
|
46 void SmfSettingsHandler::SetRoamingStatusforDataTransfer(QString & aStatus) |
|
47 { |
|
48 m_repository->SetAuthExpirationValue(aStatus); |
|
49 } |
|
50 |
|
51 QString SmfSettingsHandler::GetMaxDataTransferLimit() const |
|
52 { |
|
53 return m_repository->GetMaxDataTransferLimit(); |
|
54 } |
|
55 |
|
56 void SmfSettingsHandler::SetUploadFileType(QString & aFileType) |
|
57 { |
|
58 m_repository->SetUploadFileType(aFileType); |
|
59 } |
|
60 |
|
61 QString SmfSettingsHandler::GetUploadFileType() const |
|
62 { |
|
63 return m_repository->GetUploadFileType(); |
|
64 } |
|
65 |
|
66 void SmfSettingsHandler::SetMaxDataTransferLimit(QString & aVal) |
|
67 { |
|
68 m_repository->SetMaxDataTransferLimit(aVal); |
|
69 } |
|
70 |
|
71 void SmfSettingsHandler::GetPluginDetails(QMap<QString,QString>& aDetails) const |
|
72 { |
|
73 m_repository->GetPluginDetails(aDetails); |
|
74 } |
|
75 |
|
76 QString SmfSettingsHandler::GetAuthExpirationValue() const |
|
77 { |
|
78 return m_repository->GetAuthExpirationValue(); |
|
79 } |
|
80 |
|
81 void SmfSettingsHandler::SetPluginDetails(QString & aPluginName, QString & aPluginStatus) |
|
82 { |
|
83 m_repository->SetPluginDetails(aPluginName,aPluginStatus); |
|
84 } |
|
85 |
|
86 QString SmfSettingsHandler::GetRoamingStatusforDataTransfer() const |
|
87 { |
|
88 return m_repository->GetRoamingStatusforDataTransfer(); |
|
89 } |