!70 fix(lan): 修复控制面板有线网络更多菜单删除不生效问题(issues#I8YTVM)
Merge pull request !70 from zy-yuan1/nile0312-ui
This commit is contained in:
commit
f3b37cb06e
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -36,6 +36,12 @@ public:
|
|||
~ComKylinNetworkInterface();
|
||||
|
||||
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)
|
||||
{
|
||||
QList<QVariant> argumentList;
|
||||
|
|
Loading…
Reference in New Issue