summaryrefslogtreecommitdiffstats
path: root/bluetooth/bluetooth.h
diff options
context:
space:
mode:
Diffstat (limited to 'bluetooth/bluetooth.h')
-rw-r--r--bluetooth/bluetooth.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/bluetooth/bluetooth.h b/bluetooth/bluetooth.h
index 815e180..3953fe6 100644
--- a/bluetooth/bluetooth.h
+++ b/bluetooth/bluetooth.h
@@ -17,17 +17,16 @@
#ifndef BLUETOOTH_H
#define BLUETOOTH_H
+#include <memory>
#include <QObject>
-#include <QJsonArray>
#include <QJsonObject>
+#include <QJsonArray>
#include <QtQml/QQmlContext>
class BluetoothModel;
class MessageEngine;
class Message;
-enum class MessageType;
-
class Bluetooth : public QObject
{
Q_OBJECT
@@ -80,7 +79,7 @@ class Bluetooth : public QObject
// slots
void onConnected();
void onDisconnected();
- void onMessageReceived(MessageType, Message*);
+ void onMessageReceived(std::shared_ptr<Message>);
QString process_uuid(QString uuid) { if (uuid.length() == 36) return uuid; return uuids.value(uuid); };