Skip to content

Commit 7090633

Browse files
committed
fix: annotate RequestScan a{sv} for qdbusxml2cpp
1 parent 560232c commit 7090633

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/network/nm_adapters.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ void NMWirelessAdapter::onAccessPointRemoved(const QDBusObjectPath& path) {
104104
auto iter = this->mAPHash.find(path.path());
105105
if (iter == this->mAPHash.end()) {
106106
qCWarning(logNetworkManager) << "NMWirelessAdapter sent removal signal for" << path.path()
107-
<< "which is not registered.";
107+
<< "which is not registered.";
108108
} else {
109109
auto* ap = iter.value();
110110
this->mAPHash.erase(iter);
@@ -167,6 +167,7 @@ void NMWirelessAdapter::registerAccessPoint(const QString& path) {
167167
}
168168

169169
void NMWirelessAdapter::scan() { this->proxy->RequestScan({}); }
170+
170171
bool NMWirelessAdapter::isValid() const { return this->proxy && this->proxy->isValid(); }
171172
QString NMWirelessAdapter::address() const {
172173
return this->proxy ? this->proxy->service() : QString();

src/network/org.freedesktop.NetworkManager.Device.Wireless.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
<method name="GetAllAccessPoints" type="ao"/>
99

1010
<method name="RequestScan">
11-
<arg name="options" type="as" direction="in"/>
11+
<arg name="options" type="a{sv}" direction="in"/>
12+
<annotation name="org.qtproject.QtDBus.QtTypeName.In0" value="QVariantMap"/>
1213
</method>
1314

1415
<signal name="AccessPointAdded">

0 commit comments

Comments
 (0)