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

Merge pull request !70 from zy-yuan1/nile0312-ui
This commit is contained in:
赵世旭 2024-04-01 09:22:02 +00:00 committed by Gitee
commit f3b37cb06e
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
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;