Introduce a base class for capabilities.
[harmattan/cameraplus] / declarative / whitebalance.cpp
index bc6ed5a..3957274 100644 (file)
 #include "whitebalance.h"
 
 WhiteBalance::WhiteBalance(QtCamDevice *dev, QObject *parent) :
-  QObject(parent),
+  Capability(parent),
   m_wb(new QtCamWhiteBalance(dev, this)) {
 
+  setCapability(m_wb);
+
   QObject::connect(m_wb, SIGNAL(valueChanged()), this, SIGNAL(valueChanged()));
 }