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 | |
11 | namespace BluezQt |
12 | { |
13 | Agent::Agent(QObject *parent) |
14 | : QObject(parent) |
15 | { |
16 | } |
17 | |
18 | Agent::Capability Agent::capability() const |
19 | { |
20 | return DisplayYesNo; |
21 | } |
22 | |
23 | void Agent::requestPinCode(DevicePtr device, const Request<QString> &request) |
24 | { |
25 | Q_UNUSED(device) |
26 | |
27 | request.cancel(); |
28 | } |
29 | |
30 | void Agent::displayPinCode(DevicePtr device, const QString &pinCode) |
31 | { |
32 | Q_UNUSED(device) |
33 | Q_UNUSED(pinCode) |
34 | } |
35 | |
36 | void Agent::requestPasskey(DevicePtr device, const Request<quint32> &request) |
37 | { |
38 | Q_UNUSED(device) |
39 | |
40 | request.cancel(); |
41 | } |
42 | |
43 | void 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 | |
50 | void 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 | |
58 | void Agent::requestAuthorization(DevicePtr device, const Request<> &request) |
59 | { |
60 | Q_UNUSED(device) |
61 | |
62 | request.cancel(); |
63 | } |
64 | |
65 | void 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 | |
73 | void Agent::cancel() |
74 | { |
75 | } |
76 | |
77 | void Agent::release() |
78 | { |
79 | } |
80 | |
81 | } // namespace BluezQt |
82 | |
83 | #include "moc_agent.cpp" |
84 | |