fix(lan): 修复控制面板有线网络更多菜单删除不生效问题(issues#I8YTVM)

This commit is contained in:
zhangyuanyuan1 2024-03-12 20:54:46 +08:00
parent bf5ac9a002
commit ca94cde772
3 changed files with 13 additions and 0 deletions

View File

@ -33,6 +33,12 @@ NetworkAdaptor::~NetworkAdaptor()
// destructor // 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) void NetworkAdaptor::activateConnect(int type, const QString &devName, const QString &ssid)
{ {
// handle method call com.kylin.network.activateConnect // handle method call com.kylin.network.activateConnect

View File

@ -215,6 +215,7 @@ public:
public: // PROPERTIES public: // PROPERTIES
public Q_SLOTS: // METHODS public Q_SLOTS: // METHODS
Q_NOREPLY void deleteConnect(int type, QString ssid);
Q_NOREPLY void activateConnect(int type, const QString &devName, const 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); 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); Q_NOREPLY void deActivateConnect(int type, const QString &devName, const QString &ssid);

View File

@ -36,6 +36,12 @@ public:
~ComKylinNetworkInterface(); ~ComKylinNetworkInterface();
public Q_SLOTS: // METHODS public Q_SLOTS: // METHODS
inline Q_NOREPLY void deleteConnect(int type, const QString ssid)
{
QList<QVariant> 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) inline Q_NOREPLY void activateConnect(int type, const QString &devName, const QString &ssid)
{ {
QList<QVariant> argumentList; QList<QVariant> argumentList;