diff --git a/src/backend/dbus_adaptor.cpp b/src/backend/dbus_adaptor.cpp index 56e99012..b483672d 100644 --- a/src/backend/dbus_adaptor.cpp +++ b/src/backend/dbus_adaptor.cpp @@ -33,6 +33,12 @@ NetworkAdaptor::~NetworkAdaptor() // destructor } +void NetworkAdaptor::deleteConnect(int type, QString ssid) +{ + // handle method call com.kylin.network.deleteConnect + QMetaObject::invokeMethod(parent(), "deleteConnect", Q_ARG(int, type), Q_ARG(QString, ssid)); +} + void NetworkAdaptor::activateConnect(int type, const QString &devName, const QString &ssid) { // handle method call com.kylin.network.activateConnect diff --git a/src/backend/dbus_adaptor.h b/src/backend/dbus_adaptor.h index e562a2d3..f457b85e 100644 --- a/src/backend/dbus_adaptor.h +++ b/src/backend/dbus_adaptor.h @@ -215,6 +215,7 @@ public: public: // PROPERTIES public Q_SLOTS: // METHODS + Q_NOREPLY void deleteConnect(int type, QString ssid); Q_NOREPLY void activateConnect(int type, const QString &devName, const QString &ssid); void activeWirelessAp(const QString &apName, const QString &apPassword, const QString &band, const QString &apDevice); Q_NOREPLY void deActivateConnect(int type, const QString &devName, const QString &ssid); diff --git a/src/backend/dbus_interface.h b/src/backend/dbus_interface.h index f8a73c64..ce2da866 100644 --- a/src/backend/dbus_interface.h +++ b/src/backend/dbus_interface.h @@ -36,6 +36,12 @@ public: ~ComKylinNetworkInterface(); public Q_SLOTS: // METHODS + inline Q_NOREPLY void deleteConnect(int type, const QString ssid) + { + QList argumentList; + argumentList << QVariant::fromValue(type) << QVariant::fromValue(ssid); + callWithArgumentList(QDBus::NoBlock, QStringLiteral("deleteConnect"), argumentList); + } inline Q_NOREPLY void activateConnect(int type, const QString &devName, const QString &ssid) { QList argumentList;