File indexing completed on 2024-12-08 12:15:32
0001 /* 0002 * BluezQt - Asynchronous Bluez wrapper library 0003 * 0004 * SPDX-FileCopyrightText: 2014 David Rosca <nowrep@gmail.com> 0005 * 0006 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0007 */ 0008 0009 #include "agent.h" 0010 0011 namespace BluezQt 0012 { 0013 Agent::Agent(QObject *parent) 0014 : QObject(parent) 0015 { 0016 } 0017 0018 Agent::Capability Agent::capability() const 0019 { 0020 return DisplayYesNo; 0021 } 0022 0023 void Agent::requestPinCode(DevicePtr device, const Request<QString> &request) 0024 { 0025 Q_UNUSED(device) 0026 0027 request.cancel(); 0028 } 0029 0030 void Agent::displayPinCode(DevicePtr device, const QString &pinCode) 0031 { 0032 Q_UNUSED(device) 0033 Q_UNUSED(pinCode) 0034 } 0035 0036 void Agent::requestPasskey(DevicePtr device, const Request<quint32> &request) 0037 { 0038 Q_UNUSED(device) 0039 0040 request.cancel(); 0041 } 0042 0043 void Agent::displayPasskey(DevicePtr device, const QString &passkey, const QString &entered) 0044 { 0045 Q_UNUSED(device) 0046 Q_UNUSED(passkey) 0047 Q_UNUSED(entered) 0048 } 0049 0050 void Agent::requestConfirmation(DevicePtr device, const QString &passkey, const Request<> &request) 0051 { 0052 Q_UNUSED(device) 0053 Q_UNUSED(passkey) 0054 0055 request.cancel(); 0056 } 0057 0058 void Agent::requestAuthorization(DevicePtr device, const Request<> &request) 0059 { 0060 Q_UNUSED(device) 0061 0062 request.cancel(); 0063 } 0064 0065 void Agent::authorizeService(DevicePtr device, const QString &uuid, const Request<> &request) 0066 { 0067 Q_UNUSED(device) 0068 Q_UNUSED(uuid) 0069 0070 request.cancel(); 0071 } 0072 0073 void Agent::cancel() 0074 { 0075 } 0076 0077 void Agent::release() 0078 { 0079 } 0080 0081 } // namespace BluezQt 0082 0083 #include "moc_agent.cpp"