summaryrefslogtreecommitdiffstats
path: root/bluetooth/bluetoothmessage.h
diff options
context:
space:
mode:
Diffstat (limited to 'bluetooth/bluetoothmessage.h')
-rw-r--r--bluetooth/bluetoothmessage.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/bluetooth/bluetoothmessage.h b/bluetooth/bluetoothmessage.h
index 6284c4e..0a26322 100644
--- a/bluetooth/bluetoothmessage.h
+++ b/bluetooth/bluetoothmessage.h
@@ -31,6 +31,11 @@ class BluetoothMessage : public Message
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:
@@ -43,6 +48,13 @@ class BluetoothMessage : public Message
"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;
};