Implemented QtCamEvComp and QtCamVideoTorch
[harmattan/cameraplus] / lib / qtcamvideotorch.h
1 // -*- c++ -*-
2
3 #ifndef QT_CAM_VIDEO_TORCH_H
4 #define QT_CAM_VIDEO_TORCH_H
5
6 #include <QObject>
7
8 class QtCamDevice;
9 class QtCamVideoTorchPrivate;
10
11 class QtCamVideoTorch : public QObject {
12   Q_OBJECT
13
14 public:
15   QtCamVideoTorch(QtCamDevice *dev, QObject *parent = 0);
16   ~QtCamVideoTorch();
17
18   void setOn(bool on);
19   bool isOn() const;
20
21 signals:
22   void stateChanged();
23
24 private:
25   QtCamVideoTorchPrivate *d_ptr;
26 };
27
28 #endif /* QT_CAM_VIDEO_TORCH_H */