4a177509c2bb4a4bd607ddceaaa390f4772f62c9
[harmattan/cameraplus] / lib / qtcamimagemode.h
1 // -*- c++ -*-
2
3 #ifndef QT_CAM_IMAGE_MODE_H
4 #define QT_CAM_IMAGE_MODE_H
5
6 #include "qtcammode.h"
7 #include <gst/pbutils/encoding-profile.h>
8
9 class QtCamDevicePrivate;
10 class QtCamImageModePrivate;
11 class QtCamImageSettings;
12
13 class QtCamImageMode : public QtCamMode {
14   Q_OBJECT
15
16 public:
17   QtCamImageMode(QtCamDevicePrivate *dev, QObject *parent = 0);
18   ~QtCamImageMode();
19
20   virtual bool canCapture();
21   virtual void applySettings();
22
23   bool capture(const QString& fileName);
24
25   bool setSettings(const QtCamImageSettings& settings);
26
27   void setProfile(GstEncodingProfile *profile);
28
29 protected:
30   virtual void start();
31   virtual void stop();
32
33 private:
34   QtCamImageModePrivate *d;
35 };
36
37 #endif /* QT_CAM_IMAGE_MODE_H */