I can't seem to work this one out, no matter what I try. Specifically pertaining to using http://www.herqq.org/html/hupnp_v1/c...ff25deb39e240d
Code:#include <QtCore/QObject> #include <HUpnpCore/HDiscoveryType> #include <HUpnpCore/HControlPointConfiguration> class zoneSearch : public QObject { Q_OBJECT private: Herqq::Upnp::HControlPoint* m_controlPoint; Herqq::Upnp::HControlPointConfiguration* m_controlPointConfiguration; QTimer* m_timer; private slots: public: zoneSearch(QObject* parent = 0); Herqq::Upnp::HDiscoveryType m_deviceType; public Q_SLOTS: Q_INVOKABLE void startSearch(); };I cannot for the life of me work out how to initialise the HControlPoint class with the configuration set from the HControlPointConfiguration class. Not even sure where to start going about this!Code:#include "zoneSearch.hpp" #include <HUpnpCore/HControlPoint> #include <QTimer> zoneSearch::zoneSearch(QObject* parent) : QObject(parent), m_controlPoint(NULL) , m_controlPointConfiguration(new Herqq::Upnp::HControlPointConfiguration) , m_timer(new QTimer(this)) { } void zoneSearch::startSearch() { m_controlPointConfiguration->setAutoDiscovery(false); m_controlPoint = new Herqq::Upnp::HControlPoint(m_controlPointConfiguration, QObject::parent());
Any help would be great!
Error is:Code:error: no matching function for call to 'Herqq::Upnp::HControlPoint::HControlPoint(Herqq::Upnp::HControlPointConfiguration*&, QObject*)'


Reply With Quote
Bookmarks