Added QtCamCapability (base class for capabilities) and implemented flash, zoom and...
[harmattan/cameraplus] / lib / qtcamflash.h
1 // -*- c++ -*-
2
3 #ifndef QT_CAM_FLASH_H
4 #define QT_CAM_FLASH_H
5
6 #include "qtcamcapability.h"
7
8 class QtCamFlash : public QtCamCapability {
9   Q_OBJECT
10
11 public:
12   typedef enum {
13     Auto = 0,
14     Off = 1,
15     On = 2,
16     FillIn = 3,
17     RedEye = 4
18   } FlashMode;
19
20   QtCamFlash(QtCamDevice *dev, QObject *parent = 0);
21   ~QtCamFlash();
22
23   FlashMode value();
24   bool setValue(const FlashMode& mode);
25 };
26
27 #endif /* QT_CAM_FLASH_H */