summaryrefslogtreecommitdiffstats
path: root/bluetooth/bluetoothmessage.h
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2018-10-29 09:59:31 -0700
committerMatt Ranostay <matt.ranostay@konsulko.com>2018-11-05 16:05:15 -0800
commitc8304d3ec2f83aed4f6b87a31f79dac72bb432de (patch)
tree0f9706251aba05c374aaa0720a3b4cd6bfc2a6da /bluetooth/bluetoothmessage.h
parent4508f46e8b3b42f2d062566ecbc741daf5cf1338 (diff)
Revert "libqtappfw: bluetooth: add binding version 2.0 verbs"
This reverts commit 4508f46e8b3b42f2d062566ecbc741daf5cf1338. Revert "libqtappfw: bluetooth: add initial API versioning to BluetoothMessage" This reverts commit daadd6ca0e572fe55d307ff034d8cd3342c1c7c1. Bug-AGL: SPEC-1630 Change-Id: Iac48c5a1b3bd2d1147c208cebe6b86bbdfa6d2ac Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'bluetooth/bluetoothmessage.h')
-rw-r--r--bluetooth/bluetoothmessage.h19
1 files changed, 1 insertions, 18 deletions
diff --git a/bluetooth/bluetoothmessage.h b/bluetooth/bluetoothmessage.h
index 0a26322..89aef1a 100644
--- a/bluetooth/bluetoothmessage.h
+++ b/bluetooth/bluetoothmessage.h
@@ -23,23 +23,15 @@ class BluetoothMessage : public Message
{
Q_OBJECT
public:
- explicit BluetoothMessage(QString api_version = "1.0", QObject *parent = 0) { m_api_version = api_version; };
-
- // Bluetooth API Schema 1.0
bool isConnectionEvent() { return (this->eventName() == "connection"); };
bool isRequestConfirmationEvent() { return (this->eventName() == "request_confirmation"); };
bool isDeviceAddedEvent() { return (this->eventName() == "device_added"); };
bool isDeviceRemovedEvent() { return (this->eventName() == "device_removed"); };
bool isDeviceUpdatedEvent() { return (this->eventName() == "device_updated"); };
-
- // Bluetooth API Schema 2.0
- bool isDeviceChangesEvent() { return (this->eventName() == "device_changes"); };
- bool isAgentEvent() { return (this->eventName() == "agent"); };
-
bool createRequest(QString verb, QJsonObject parameter);
private:
- QStringList verbs_v1 {
+ QStringList verbs {
"start_discovery" , "stop_discovery", "power",
"remove_device", "pair", "cancel_pair",
"connect", "disconnect", "device_priorities",
@@ -47,15 +39,6 @@ class BluetoothMessage : public Message
"set_avrcp_controls", "send_confirmation", "version",
"subscribe", "unsubscribe",
};
-
- QStringList verbs_v2 {
- "connect", "disconnect", "managed_objects",
- "adapter_state", "pair", "cancel_pairing",
- "confirm_pairing", "remove_device", "version",
- "subscribe", "unsubscribe",
- };
-
- QString m_api_version;
};
#endif // BLUETOOTH_MESSAGE_H