Adding the C++ application and the Settings class
[harmattan/cameraplus] / src / settings.h
1 // -*- c++ -*-
2
3 #ifndef SETTINGS_H
4 #define SETTINGS_H
5
6 #include <QObject>
7
8 class QSettings;
9
10 class Settings : public QObject {
11   Q_OBJECT
12
13   Q_PROPERTY(int mode READ mode WRITE setMode NOTIFY modeChanged);
14
15 public:
16   Settings(QObject *parent = 0);
17   ~Settings();
18
19   int mode() const;
20   void setMode(int mode);
21
22 signals:
23   void modeChanged();
24
25 private:
26   QSettings *m_settings;
27 };
28
29 #endif /* SETTINGS_H */