From 8a1ed7ce5962065dcdaa6c91c4333aee7ffd4c4b Mon Sep 17 00:00:00 2001 From: Lorn Potter Date: Thu, 11 Apr 2013 13:37:33 +1000 Subject: [PATCH] fix proper signalling --- connectionagentplugin/connectionagentplugin.cpp | 10 ++-------- connectionagentplugin/connectionagentplugin.h | 1 - connectionagentplugin/connectionamanagerinterface.h | 2 +- 3 files changed, 3 insertions(+), 10 deletions(-) diff --git a/connectionagentplugin/connectionagentplugin.cpp b/connectionagentplugin/connectionagentplugin.cpp index 78db2ba..a443080 100644 --- a/connectionagentplugin/connectionagentplugin.cpp +++ b/connectionagentplugin/connectionagentplugin.cpp @@ -69,8 +69,8 @@ void ConnectionAgentPlugin::connectToConnectiond(QString) } connect(connManagerInterface,SIGNAL(connectionRequest()), this,SLOT(onConnectionRequested())); - connect(connManagerInterface,SIGNAL(wlanConfigurationNeeded()), - this,SIGNAL(wlanConfigurationNeeded())); + connect(connManagerInterface,SIGNAL(configurationNeeded(QString)), + this,SIGNAL(configurationNeeded(QString))); connect(connManagerInterface,SIGNAL(userInputCanceled()), this,SIGNAL(userInputCanceled())); @@ -147,12 +147,6 @@ void ConnectionAgentPlugin::connectiondUnregistered(QString) } } -void ConnectionAgentPlugin::onConfigurationNeeded(const QString &type) -{ - qDebug() << Q_FUNC_INFO; - Q_EMIT configurationNeeded(type); -} - void ConnectionAgentPlugin::onConnectionState(const QString &state, const QString &type) { qDebug() << Q_FUNC_INFO << state << type; diff --git a/connectionagentplugin/connectionagentplugin.h b/connectionagentplugin/connectionagentplugin.h index 1117696..e6b9bbc 100644 --- a/connectionagentplugin/connectionagentplugin.h +++ b/connectionagentplugin/connectionagentplugin.h @@ -53,7 +53,6 @@ private slots: void onRequestBrowser(const QString &url); void onUserInputRequested(const QString &service, const QVariantMap &fields); void onConnectionRequested(); - void onConfigurationNeeded(const QString &type); void onConnectionState(const QString &state, const QString &type); void connectToConnectiond(const QString = QString()); diff --git a/connectionagentplugin/connectionamanagerinterface.h b/connectionagentplugin/connectionamanagerinterface.h index a198cc3..2250425 100644 --- a/connectionagentplugin/connectionamanagerinterface.h +++ b/connectionagentplugin/connectionamanagerinterface.h @@ -59,7 +59,7 @@ public Q_SLOTS: // METHODS void requestBrowser(const QString &url); void userInputCanceled(); void userInputRequested(const QString &service, const QVariantMap &fields); - void wlanConfigurationNeeded(); + void configurationNeeded(const QString &type); }; namespace com {