Introduce a base class for capabilities.
[harmattan/cameraplus] / declarative / focus.cpp
index 7a93fd4..31c88f3 100644 (file)
 #include "focus.h"
 
 Focus::Focus(QtCamDevice *dev, QObject *parent) :
-  QObject(parent),
+  Capability(parent),
   m_f(new QtCamFocus(dev, this)) {
 
+  setCapability(m_f);
+
   QObject::connect(m_f, SIGNAL(valueChanged()), this, SIGNAL(valueChanged()));
 }