You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
1.0 KiB
C++
25 lines
1.0 KiB
C++
#pragma once
|
|
|
|
#include <QDBusObjectPath>
|
|
#include <QMap>
|
|
#include <QVariantMap>
|
|
|
|
using BluetoothInterfaces = QMap<QString, QVariantMap>;
|
|
using BluetoothObjects = QMap<QDBusObjectPath, BluetoothInterfaces>;
|
|
Q_DECLARE_METATYPE(BluetoothInterfaces)
|
|
Q_DECLARE_METATYPE(BluetoothObjects)
|
|
|
|
void registerBluetoothDBusTypes();
|
|
|
|
namespace BluetoothDBus {
|
|
inline const QString adapterInterface = QStringLiteral("org.bluez.Adapter1");
|
|
inline const QString deviceInterface = QStringLiteral("org.bluez.Device1");
|
|
inline const QString propertiesInterface = QStringLiteral("org.freedesktop.DBus.Properties");
|
|
inline const QString objectManagerInterface = QStringLiteral("org.freedesktop.DBus.ObjectManager");
|
|
inline const QString gattCharacteristicInterface = QStringLiteral("org.bluez.GattCharacteristic1");
|
|
inline const QString agentPath = QStringLiteral("/org/cutefish/BluetoothAgent");
|
|
inline const QString agentManagerPath = QStringLiteral("/org/bluez");
|
|
inline const QString agentManagerInterface = QStringLiteral("org.bluez.AgentManager1");
|
|
|
|
} // namespace BluetoothDBus
|