| 1 | // Copyright (C) 2018 The Qt Company Ltd. | 
|---|---|
| 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only | 
| 3 | |
| 4 | #include "profile1context_p.h" | 
| 5 | |
| 6 | #include <QtCore/qloggingcategory.h> | 
| 7 | |
| 8 | QT_BEGIN_NAMESPACE | 
| 9 | |
| 10 | Q_DECLARE_LOGGING_CATEGORY(QT_BT_BLUEZ) | 
| 11 | |
| 12 | OrgBluezProfile1ContextInterface::OrgBluezProfile1ContextInterface(QObject *parent) : QObject(parent) | 
| 13 | { | 
| 14 | } | 
| 15 | |
| 16 | void OrgBluezProfile1ContextInterface::NewConnection(const QDBusObjectPath &/*remotePath*/, | 
| 17 | const QDBusUnixFileDescriptor &descriptor, | 
| 18 | const QVariantMap &/*properties*/) | 
| 19 | { | 
| 20 |     qCDebug(QT_BT_BLUEZ) << "Profile Context: New Connection";  | 
| 21 | emit newConnection(fd: descriptor); | 
| 22 | setDelayedReply(false); | 
| 23 | } | 
| 24 | |
| 25 | void OrgBluezProfile1ContextInterface::RequestDisconnection(const QDBusObjectPath &/*remotePath*/) | 
| 26 | { | 
| 27 |     qCDebug(QT_BT_BLUEZ) << "Profile Context: Request Disconnection";  | 
| 28 | setDelayedReply(false); | 
| 29 | } | 
| 30 | |
| 31 | void OrgBluezProfile1ContextInterface::Release() | 
| 32 | { | 
| 33 |     qCDebug(QT_BT_BLUEZ) << "Profile Context: Release";  | 
| 34 | } | 
| 35 | |
| 36 | QT_END_NAMESPACE | 
| 37 | |
| 38 | #include "moc_profile1context_p.cpp" | 
| 39 | 
