940347acd25c9982f4d35748431283354798593c
[harmattan/cameraplus] / lib / qtcamimagesettings.h
1 // -*- c++ -*-
2
3 #ifndef QT_CAM_IMAGE_SETTINGS_H
4 #define QT_CAM_IMAGE_SETTINGS_H
5
6 #include <QSize>
7 #include <QPair>
8 #include <QString>
9
10 class QtCamImageSettingsPrivate;
11
12 class QtCamImageSettings {
13 public:
14   QtCamImageSettings(const QString& id, const QString& name, const QSize& capture,
15                      const QSize& preview, const QSize& viewfinder,
16                      int numerator, int denominator);
17
18   QtCamImageSettings(const QtCamImageSettings& other);
19
20   ~QtCamImageSettings();
21
22   QtCamImageSettings& operator=(const QtCamImageSettings& other);
23
24   QString id() const;
25   QString name() const;
26   QSize captureResolution() const;
27   QSize viewfinderResolution() const;
28   QSize previewResolution() const;
29   QPair<int, int> frameRate() const;
30
31 private:
32   QtCamImageSettingsPrivate *d_ptr;
33 };
34
35 #endif /* QT_CAM_IMAGE_SETTINGS_H */