Source /tmp/session_bus_address.user before invoking dbus-send in postinst script
[harmattan/cameraplus] / declarative / aperture.cpp
index 94eb995..ab4ffd6 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 "qtcamaperture.h"
 
 Aperture::Aperture(QtCamDevice *dev, QObject *parent) :
-  QObject(parent),
+  Capability(parent),
   m_aperture(new QtCamAperture(dev, this)) {
 
+  setCapability(m_aperture);
+
   QObject::connect(m_aperture, SIGNAL(valueChanged()), this, SIGNAL(valueChanged()));
   QObject::connect(m_aperture, SIGNAL(minimumValueChanged()), this, SIGNAL(minimumChanged()));
   QObject::connect(m_aperture, SIGNAL(maximumValueChanged()), this, SIGNAL(maximunmChanged()));