00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef CONFIG_H
00024 #define CONFIG_H
00025
00026 #include <QObject>
00027 #include <QHash>
00028 #include <QVariant>
00029
00030 class Config : public QObject
00031 {
00032 Q_OBJECT
00033 public:
00034 QVariant get_property(const QString& type, const QString& property, QVariant defaultValue);
00035 void set_property(const QString& type, const QString& property, QVariant newValue);
00036
00037 void check_and_load_configuration();
00038 void reset_settings( );
00039
00040 void init_input_engine();
00041
00042 void save();
00043
00044 signals:
00045 void configChanged();
00046
00047 private:
00048 Config() {}
00049 ~Config();
00050
00051 Config(const Config&);
00052
00053
00054 friend Config& config();
00055
00056 void load_configuration();
00057 void set_audiodevice_driver_properties();
00058
00059 QHash<QString, QVariant> m_configs;
00060
00061 };
00062
00063
00064
00065 Config& config();
00066
00067
00068 #endif