Introduce a base class for capabilities.
[harmattan/cameraplus] / declarative / zoom.cpp
index 879bbfa..2d05ba6 100644 (file)
 #include "qtcamzoom.h"
 
 Zoom::Zoom(QtCamDevice *dev, QObject *parent) :
-  QObject(parent),
+  Capability(parent),
   m_zoom(new QtCamZoom(dev, this)) {
 
+  setCapability(m_zoom);
+
   QObject::connect(m_zoom, SIGNAL(valueChanged()), this, SIGNAL(valueChanged()));
   QObject::connect(m_zoom, SIGNAL(minimumValueChanged()), this, SIGNAL(minimumChanged()));
   QObject::connect(m_zoom, SIGNAL(maximumValueChanged()), this, SIGNAL(maximunmChanged()));