Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feat/bluez5v2' into 'master'
Updated to use bluez5 See merge request mer-core/buteo-syncfw!39
- Loading branch information
Showing
7 changed files
with
298 additions
and
224 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
* This file is part of buteo-syncfw package | ||
* | ||
* Copyright (C) 2020 as part of an update to use bluez5 by deloptes@gmail.com | ||
* | ||
*/ | ||
|
||
#ifndef BTCOMMON_H_ | ||
#define BTCOMMON_H_ | ||
|
||
#include <QtDBus> | ||
#include <QMap> | ||
|
||
#if HAVE_BLUEZ_5 | ||
namespace Buteo { | ||
|
||
namespace BT { | ||
static const QString BLUEZ_DEST = "org.bluez"; | ||
static const QString BLUEZ_MANAGER_INTERFACE = "org.freedesktop.DBus.ObjectManager"; | ||
static const QString BLUEZ_ADAPTER_INTERFACE = "org.bluez.Adapter1"; | ||
static const QString BLUEZ_DEVICE_INTERFACE = "org.bluez.Device1"; | ||
static const QString BLUEZ_PROPERTIES_INTERFACE = "org.freedesktop.DBus.Properties"; | ||
static const QString GETMANAGEDOBJECTS = "GetManagedObjects"; | ||
static const QString GETPROPERTIES = "GetAll"; | ||
static const QString PROPERTIESCHANGED = "PropertiesChanged"; | ||
static const QString INTERFACESADDED = "InterfacesAdded"; | ||
static const QString INTERFACESREMOVED = "InterfacesRemoved"; | ||
|
||
} // namespace BT | ||
|
||
typedef QMap<QString,QVariantMap> InterfacesMap; | ||
typedef QMap<QDBusObjectPath,InterfacesMap> ObjectsMap; | ||
|
||
} // namespace Buteo | ||
|
||
Q_DECLARE_METATYPE(Buteo::InterfacesMap) | ||
Q_DECLARE_METATYPE(Buteo::ObjectsMap) | ||
|
||
#endif /* HAVE_BLUEZ_5 */ | ||
|
||
#endif /* BTCOMMON_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.