summaryrefslogtreecommitdiff
path: root/src/bluetooth/android/androidutils_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/bluetooth/android/androidutils_p.h')
-rw-r--r--src/bluetooth/android/androidutils_p.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/bluetooth/android/androidutils_p.h b/src/bluetooth/android/androidutils_p.h
index 9912ad38..5c83fc61 100644
--- a/src/bluetooth/android/androidutils_p.h
+++ b/src/bluetooth/android/androidutils_p.h
@@ -17,19 +17,12 @@
#include <qglobal.h>
#include <QtCore/QJniObject>
-#include <QtCore/QString>
+#include <QtCore/QPermission>
QT_BEGIN_NAMESPACE
-enum class BluetoothPermission {
- Scan,
- Advertise,
- Connect
-};
-
-// Checks if a permssion is already authorized and requests if not.
-// Returns true if permission is successfully authorized
-bool ensureAndroidPermission(BluetoothPermission permission);
+// Checks if a permssion is already authorized or not
+bool ensureAndroidPermission(QBluetoothPermission::CommunicationModes modes);
// Returns the default bluetooth adapter, or an invalid object if not available
QJniObject getDefaultBluetoothAdapter();