summaryrefslogtreecommitdiffstats
path: root/bluetooth/bluetoothmessage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'bluetooth/bluetoothmessage.cpp')
-rw-r--r--bluetooth/bluetoothmessage.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/bluetooth/bluetoothmessage.cpp b/bluetooth/bluetoothmessage.cpp
index 52ecbed..d31705c 100644
--- a/bluetooth/bluetoothmessage.cpp
+++ b/bluetooth/bluetoothmessage.cpp
@@ -23,8 +23,11 @@
bool BluetoothMessage::createRequest(QString verb, QJsonObject parameter)
{
- if (!verbs.contains(verb))
- return false;
+ if (m_api_version != "1.0")
+ return false;
- return Message::createRequest("Bluetooth-Manager", verb, parameter);
+ if (!verbs_v1.contains(verb))
+ return false;
+
+ return Message::createRequest("Bluetooth-Manager", verb, parameter);
}