equal
deleted
inserted
replaced
16 */ |
16 */ |
17 |
17 |
18 #ifndef CXUISETTINGSINFO_H |
18 #ifndef CXUISETTINGSINFO_H |
19 #define CXUISETTINGSINFO_H |
19 #define CXUISETTINGSINFO_H |
20 |
20 |
|
21 /*! |
|
22 * @file |
|
23 * @brief CxUi settings related classes and constants. |
|
24 */ |
|
25 |
21 #include <QObject> |
26 #include <QObject> |
22 #include <QMap> |
27 #include <QMap> |
23 #include <QPair> |
28 #include <QPair> |
24 #include <QList> |
29 #include <QList> |
25 #include <QString> |
30 #include <QString> |
29 |
34 |
30 |
35 |
31 class CxeEngine; |
36 class CxeEngine; |
32 class CxuiSettingXmlReader; |
37 class CxuiSettingXmlReader; |
33 |
38 |
|
39 /*! |
|
40 * @namespace CxUiSettings |
|
41 * @brief Namespace for UI settings related constants and classes. |
|
42 */ |
34 namespace CxUiSettings |
43 namespace CxUiSettings |
35 { |
44 { |
36 // Setting mappings |
45 /*! Image setting definitions. */ |
37 static const char *IMAGE_SETTING_MAPPING_FILE = ":/xml/image_setting.xml"; |
46 static const char *IMAGE_SETTING_MAPPING_FILE = ":/xml/image_setting.xml"; |
|
47 /*! Video setting definitions. */ |
38 static const char *VIDEO_SETTING_MAPPING_FILE = ":/xml/video_setting.xml"; |
48 static const char *VIDEO_SETTING_MAPPING_FILE = ":/xml/video_setting.xml"; |
|
49 |
|
50 /*! |
|
51 * Character used to separate lines within a single string. |
|
52 * E.g. SettingItem::mItem can be split with this character to get multi-line item. |
|
53 */ |
|
54 static const char NEW_LINE_CHAR = '\n'; |
39 |
55 |
40 struct SettingItem |
56 struct SettingItem |
41 { |
57 { |
42 QString mItem; |
58 QString mItem; |
43 QVariant mValue; |
59 QVariant mValue; |
96 private: |
112 private: |
97 void getImageQualitySettings(CxUiSettings::RadioButtonListParams &settings); |
113 void getImageQualitySettings(CxUiSettings::RadioButtonListParams &settings); |
98 void getVideoQualitySettings(CxUiSettings::RadioButtonListParams &settings); |
114 void getVideoQualitySettings(CxUiSettings::RadioButtonListParams &settings); |
99 void handleQualitySettings(const QString &key, CxUiSettings::RadioButtonListParams &settings); |
115 void handleQualitySettings(const QString &key, CxUiSettings::RadioButtonListParams &settings); |
100 |
116 |
101 private slots: |
117 private: |
102 void initForCurrentMode(CxeError::Id status); |
118 void checkMode(); |
103 |
119 |
104 private: // data members |
120 private: // data members |
|
121 int mMode; |
105 CxeEngine *mEngine; |
122 CxeEngine *mEngine; |
106 CxuiSettingXmlReader *mXmlReader; |
123 CxuiSettingXmlReader *mXmlReader; |
107 }; |
124 }; |
108 |
125 |
109 |
126 |