36 lines
785 B
C++
36 lines
785 B
C++
#ifndef GUHDISCOVERY_H
|
|
#define GUHDISCOVERY_H
|
|
|
|
#include <QObject>
|
|
|
|
class DiscoveryModel;
|
|
class UpnpDiscovery;
|
|
class ZeroconfDiscovery;
|
|
|
|
class GuhDiscovery : public QObject
|
|
{
|
|
Q_OBJECT
|
|
Q_PROPERTY(bool discovering READ discovering WRITE setDiscovering NOTIFY discoveringChanged)
|
|
Q_PROPERTY(DiscoveryModel *discoveryModel READ discoveryModel CONSTANT)
|
|
|
|
public:
|
|
explicit GuhDiscovery(QObject *parent = nullptr);
|
|
|
|
bool discovering() const;
|
|
void setDiscovering(bool discovering);
|
|
|
|
DiscoveryModel *discoveryModel() const;
|
|
|
|
signals:
|
|
void discoveringChanged();
|
|
|
|
private:
|
|
bool m_discovering = false;
|
|
DiscoveryModel *m_discoveryModel = nullptr;
|
|
|
|
UpnpDiscovery *m_upnp = nullptr;
|
|
ZeroconfDiscovery *m_zeroConf = nullptr;
|
|
};
|
|
|
|
#endif // GUHDISCOVERY_H
|