Buteo Synchronization Framework: BtCommon.h Source File

Buteo Synchronization Framework

BtCommon.h
1 /*
2 * This file is part of buteo-syncfw package
3 *
4 * Copyright (C) 2020 as part of an update to use bluez5 by deloptes@gmail.com
5 *
6 */
7
8 #ifndef BTCOMMON_H_
9 #define BTCOMMON_H_
10
11 #include <QtDBus>
12 #include <QMap>
13
14 #if HAVE_BLUEZ_5
15 namespace Buteo {
16
17 namespace BT {
18 static const QString BLUEZ_DEST = "org.bluez";
19 static const QString BLUEZ_MANAGER_INTERFACE = "org.freedesktop.DBus.ObjectManager";
20 static const QString BLUEZ_ADAPTER_INTERFACE = "org.bluez.Adapter1";
21 static const QString BLUEZ_DEVICE_INTERFACE = "org.bluez.Device1";
22 static const QString BLUEZ_PROPERTIES_INTERFACE = "org.freedesktop.DBus.Properties";
23 static const QString GETMANAGEDOBJECTS = "GetManagedObjects";
24 static const QString GETPROPERTIES = "GetAll";
25 static const QString PROPERTIESCHANGED = "PropertiesChanged";
26 static const QString INTERFACESADDED = "InterfacesAdded";
27 static const QString INTERFACESREMOVED = "InterfacesRemoved";
28
29 } // namespace BT
30
31 typedef QMap<QString,QVariantMap> InterfacesMap;
32 typedef QMap<QDBusObjectPath,InterfacesMap> ObjectsMap;
33
34 } // namespace Buteo
35
36 Q_DECLARE_METATYPE(Buteo::InterfacesMap)
37 Q_DECLARE_METATYPE(Buteo::ObjectsMap)
38
39 #endif /* HAVE_BLUEZ_5 */
40
41 #endif /* BTCOMMON_H_ */
QMap
Definition: SyncBackupAdaptor.h:41