/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Copyright 2013 - 2020, nymea GmbH * Contact: contact@nymea.io * * This file is part of nymea. * This project including source code and documentation is protected by * copyright law, and remains the property of nymea GmbH. All rights, including * reproduction, publication, editing and translation, are reserved. The use of * this project is subject to the terms of a license agreement to be concluded * with nymea GmbH in accordance with the terms of use of nymea GmbH, available * under https://nymea.io/license * * GNU Lesser General Public License Usage * Alternatively, this project may be redistributed and/or modified under the * terms of the GNU Lesser General Public License as published by the Free * Software Foundation; version 3. This project is distributed in the hope that * it will be useful, but WITHOUT ANY WARRANTY; without even the implied * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this project. If not, see . * * For any further details and any questions please contact us under * contact@nymea.io or see our FAQ/Licensing Information on * https://nymea.io/license/faq * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /*! \class BluetoothDiscoveryReply \brief The BluetoothDiscoveryReply class contains the result and interaction of a discovery request done with the BluetoothLowEnergyManager. \ingroup hardware \inmodule libnymea \sa BluetoothLowEnergyManager */ /*! \fn BluetoothDiscoveryReply::~BluetoothDiscoveryReply(); The virtual destructor of the BluetoothDiscoveryReply. */ /*! \enum BluetoothDiscoveryReply::BluetoothDiscoveryReplyError This enum represents the possible errors of a BluetoothDiscoveryReply. \value BluetoothDiscoveryReplyErrorNoError No error occurred. Everything is fine. \value BluetoothDiscoveryReplyErrorNotAvailable The discovery could not be performed because there is no Bluetooth hardware available. \value BluetoothDiscoveryReplyErrorNotEnabled The discovery could not be performed because there is no Bluetooth hardware resource in nymea is disabled. \value BluetoothDiscoveryReplyErrorBusy The resource is currently busy. */ /*! \fn bool BluetoothDiscoveryReply::isFinished() const; Returns true if this discovery replay is finished. \sa finished, discoveredDevices */ /*! \fn bool BluetoothDiscoveryReply::finished(); This signal will be emitted whenever the discovery for this BluetoothDiscoveryReply is finished. You can get the result of the discovery from discoveredDevices(); \sa isFinished, discoveredDevices */ /*! \fn void BluetoothDiscoveryReply::errorOccurred(const BluetoothDiscoveryReplyError &error); This signal will be emitted whenever an \a error occurred. \sa error, BluetoothDiscoveryReplyError */ /*! \fn QList BluetoothDiscoveryReply::discoveredDevices() const; Returns the list of discovered \l{https://doc.qt.io/qt-5/qbluetoothdeviceinfo.html}{QBluetoothDeviceInfo}. \sa isFinished, discoveredDevices */ /*! \fn BluetoothDiscoveryReplyError BluetoothDiscoveryReply::error() const; Returns the current error of this BluetoothDiscoveryReply. \sa BluetoothDiscoveryReplyError */ #include "bluetoothdiscoveryreply.h" /*! Constructs a new BluetoothDiscoveryReply with the given \a parent. */ BluetoothDiscoveryReply::BluetoothDiscoveryReply(QObject *parent) : QObject(parent) { }