mirror of
https://github.com/arcan1s/netctl-gui.git
synced 2025-07-09 20:05:53 +00:00
* edit WiFi and ProfileList calls
* optimization of WifiMenu * small refactoring
This commit is contained in:
@ -259,7 +259,9 @@ QStringList ControlAdaptor::WiFi()
|
||||
QStringList point;
|
||||
point.append(wifiPoints[i].name);
|
||||
point.append(wifiPoints[i].security);
|
||||
point.append(wifiPoints[i].signal);
|
||||
point.append(wifiPoints[i].frequencies.join(QChar(',')));
|
||||
point.append(wifiPoints[i].macs.join(QChar(',')));
|
||||
point.append(QString::number(wifiPoints[i].signal));
|
||||
point.append(QString::number(wifiPoints[i].active));
|
||||
point.append(QString::number(wifiPoints[i].exists));
|
||||
info.append(point.join(QChar('|')));
|
||||
|
@ -118,6 +118,7 @@ QStringList NetctlAdaptor::ProfileList()
|
||||
QStringList profileInfo;
|
||||
profileInfo.append(profilesInfo[i].name);
|
||||
profileInfo.append(profilesInfo[i].description);
|
||||
profileInfo.append(profilesInfo[i].essid);
|
||||
profileInfo.append(QString::number(profilesInfo[i].active));
|
||||
profileInfo.append(QString::number(profilesInfo[i].enabled));
|
||||
info.append(profileInfo.join(QChar('|')));
|
||||
@ -146,6 +147,12 @@ QString NetctlAdaptor::ProfileValue(const QString profile, const QString key)
|
||||
}
|
||||
|
||||
|
||||
QStringList NetctlAdaptor::ProfileValues(const QString profile, const QStringList keys)
|
||||
{
|
||||
return netctlProfile->getValuesFromProfile(profile, keys);
|
||||
}
|
||||
|
||||
|
||||
// wpaCommand
|
||||
QString NetctlAdaptor::ProfileByEssid(const QString essid)
|
||||
{
|
||||
|
@ -50,6 +50,7 @@ public slots:
|
||||
// netctlProfile
|
||||
QStringList Profile(const QString profile);
|
||||
QString ProfileValue(const QString profile, const QString key);
|
||||
QStringList ProfileValues(const QString profile, const QStringList keys);
|
||||
// wpaCommand
|
||||
QString ProfileByEssid(const QString essid);
|
||||
QStringList WirelessInterfaces();
|
||||
|
Reference in New Issue
Block a user