diff options
author | Matt Ranostay <matt.ranostay@konsulko.com> | 2018-10-30 09:49:21 -0700 |
---|---|---|
committer | Matt Ranostay <matt.ranostay@konsulko.com> | 2018-11-21 13:36:34 -0800 |
commit | 4b397bae8a69c814c80c64b2d9c2d01e3877582e (patch) | |
tree | 046ecaf7e8345975d41fd9555e03a3ec2dc0b3be /bluetooth/bluetoothmessage.h | |
parent | 5d24f154a70c4bf2ce9aea28a60bc5e55eb1f925 (diff) |
libqtappfw: bluetooth: update to rewrite of bluetooth binding
Bug-AGL: SPEC-1630
Change-Id: I705df82deefa371afa1f1d6ee57bb5457479408d
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'bluetooth/bluetoothmessage.h')
-rw-r--r-- | bluetooth/bluetoothmessage.h | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/bluetooth/bluetoothmessage.h b/bluetooth/bluetoothmessage.h index 6ce2f3e..4fc9124 100644 --- a/bluetooth/bluetoothmessage.h +++ b/bluetooth/bluetoothmessage.h @@ -23,20 +23,15 @@ class BluetoothMessage : public Message { Q_OBJECT public: - 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"); }; + bool isDeviceChangesEvent() { return (this->eventName() == "device_changes"); }; + bool isAgentEvent() { return (this->eventName() == "agent"); }; bool createRequest(QString verb, QJsonObject parameter); private: QStringList verbs { - "start_discovery" , "stop_discovery", "power", - "remove_device", "pair", "cancel_pair", - "connect", "disconnect", "device_priorites", - "set_device_property", "set_property", "discovery_result", - "set_avrcp_controls", "send_confirmation", + "connect", "disconnect", "managed_objects", + "adapter_state", "pair", "cancel_pairing", + "confirm_pairing", "remove_device", "version", "subscribe", "unsubscribe", }; }; |