Introduce a base class for capabilities.
[harmattan/cameraplus] / declarative / zoom.cpp
index da87ef0..2d05ba6 100644 (file)
@@ -1,7 +1,7 @@
 /*!
  * This file is part of CameraPlus.
  *
- * Copyright (C) 2012 Mohammed Sameer <msameer@foolab.org>
+ * Copyright (C) 2012-2013 Mohammed Sameer <msameer@foolab.org>
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
 #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()));