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