summaryrefslogtreecommitdiffstats
path: root/bluetooth/bluetoothmessage.cpp
diff options
context:
space:
mode:
authorJan-Simon Moeller <jsmoeller@linuxfoundation.org>2018-11-15 11:30:48 +0000
committerGerrit Code Review <gerrit@automotivelinux.org>2018-11-15 11:30:48 +0000
commit2a37b2bd4aa01ae5567921bd894aae68287a0e99 (patch)
tree07ea86769e6af95b2c5a6c0ca8065eb7723e3ab0 /bluetooth/bluetoothmessage.cpp
parentfcf72b38a4430c56b977ad14aea474de7e6af599 (diff)
parent0e1dae0af026f6a30e82f7129596da83bc4d8426 (diff)
Merge changes I0170eafa,I705df82d,I688cc19c,Iac48c5a1guppy_6.99.1guppy/6.99.16.99.1
* changes: libqtappfw: bluetooth: send out power event libqtappfw: bluetooth: update to rewrite of bluetooth binding libqtappfw: bluetooth: remove avrcp_controls Revert "libqtappfw: bluetooth: add binding version 2.0 verbs"
Diffstat (limited to 'bluetooth/bluetoothmessage.cpp')
-rw-r--r--bluetooth/bluetoothmessage.cpp13
1 files changed, 3 insertions, 10 deletions
diff --git a/bluetooth/bluetoothmessage.cpp b/bluetooth/bluetoothmessage.cpp
index 9eef02f..52ecbed 100644
--- a/bluetooth/bluetoothmessage.cpp
+++ b/bluetooth/bluetoothmessage.cpp
@@ -23,15 +23,8 @@
bool BluetoothMessage::createRequest(QString verb, QJsonObject parameter)
{
- if (m_api_version == "1.0") {
- if (!verbs_v1.contains(verb))
- return false;
- }
+ if (!verbs.contains(verb))
+ return false;
- if (m_api_version == "2.0") {
- if (!verbs_v2.contains(verb))
- return false;
- }
-
- return Message::createRequest("Bluetooth-Manager", verb, parameter);
+ return Message::createRequest("Bluetooth-Manager", verb, parameter);
}