Added iso capability
[harmattan/cameraplus] / lib / qtcamiso.cpp
1 #include "qtcamiso.h"
2 #include "qtcamcapability_p.h"
3
4 #define ISO_MIN 0
5 #define ISO_MAX 6400
6
7 QtCamIso::QtCamIso(QtCamDevice *dev, QObject *parent) :
8   QtCamCapability(new QtCamCapabilityPrivate(dev, QtCamCapability::IsoSpeed, "iso-speed"),
9                   parent) {
10   // TODO: QML
11 }
12
13 QtCamIso::~QtCamIso() {
14
15 }
16
17 unsigned int QtCamIso::value() {
18   unsigned int val = 0;
19
20   if (!d_ptr->uintValue(&val)) {
21     return 0;
22   }
23
24   return val;
25 }
26
27 bool QtCamIso::setValue(unsigned int val) {
28   return d_ptr->setUintValue(val);
29 }
30
31 unsigned int QtCamIso::minimumValue() {
32   return ISO_MIN;
33 }
34
35 unsigned int QtCamIso::maximumValue() {
36   return ISO_MAX;
37 }