1/*
2 * BluezQt - Asynchronous Bluez wrapper library
3 *
4 * SPDX-FileCopyrightText: 2014 David Rosca <nowrep@gmail.com>
5 *
6 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
7 */
8
9#include "agent.h"
10
11namespace BluezQt
12{
13Agent::Agent(QObject *parent)
14 : QObject(parent)
15{
16}
17
18Agent::Capability Agent::capability() const
19{
20 return DisplayYesNo;
21}
22
23void Agent::requestPinCode(DevicePtr device, const Request<QString> &request)
24{
25 Q_UNUSED(device)
26
27 request.cancel();
28}
29
30void Agent::displayPinCode(DevicePtr device, const QString &pinCode)
31{
32 Q_UNUSED(device)
33 Q_UNUSED(pinCode)
34}
35
36void Agent::requestPasskey(DevicePtr device, const Request<quint32> &request)
37{
38 Q_UNUSED(device)
39
40 request.cancel();
41}
42
43void Agent::displayPasskey(DevicePtr device, const QString &passkey, const QString &entered)
44{
45 Q_UNUSED(device)
46 Q_UNUSED(passkey)
47 Q_UNUSED(entered)
48}
49
50void Agent::requestConfirmation(DevicePtr device, const QString &passkey, const Request<> &request)
51{
52 Q_UNUSED(device)
53 Q_UNUSED(passkey)
54
55 request.cancel();
56}
57
58void Agent::requestAuthorization(DevicePtr device, const Request<> &request)
59{
60 Q_UNUSED(device)
61
62 request.cancel();
63}
64
65void Agent::authorizeService(DevicePtr device, const QString &uuid, const Request<> &request)
66{
67 Q_UNUSED(device)
68 Q_UNUSED(uuid)
69
70 request.cancel();
71}
72
73void Agent::cancel()
74{
75}
76
77void Agent::release()
78{
79}
80
81} // namespace BluezQt
82
83#include "moc_agent.cpp"
84

source code of bluez-qt/src/agent.cpp