equal
deleted
inserted
replaced
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "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 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: QT C++ based Class. |
|
15 */ |
|
16 |
|
17 #ifndef UISETTING_H_ |
|
18 #define UISETTING_H_ |
|
19 #include <QHash> |
|
20 |
|
21 const QString KShowOutput = "showoutput"; |
|
22 const QString KStyleSheet = "StyleSheet"; |
|
23 const QString KFilter = "filter"; |
|
24 const QString KFilterCaseSens = "filtercasesens"; |
|
25 |
|
26 class UiSetting |
|
27 { |
|
28 public: |
|
29 UiSetting(); |
|
30 ~UiSetting(); |
|
31 |
|
32 public: |
|
33 QString ReadSetting(const QString& item); |
|
34 void SetSetting(const QString& item,const QString& value); |
|
35 |
|
36 private: |
|
37 bool load(); |
|
38 bool save(); |
|
39 void loadDefault(); |
|
40 QString getDefaultValue(const QString& item); |
|
41 |
|
42 private: |
|
43 QHash<QString, QString> settingList; |
|
44 }; |
|
45 |
|
46 #endif /* UISETTING_H_ */ |
|
47 |
|
48 // End of File |
|