This repository has been archived on 2026-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
2018-06-26 04:14:19 +02:00

36 lines
795 B
C++

#ifndef NYMEADISCOVERY_H
#define NYMEADISCOVERY_H
#include <QObject>
class DiscoveryModel;
class UpnpDiscovery;
class ZeroconfDiscovery;
class NymeaDiscovery : public QObject
{
Q_OBJECT
Q_PROPERTY(bool discovering READ discovering WRITE setDiscovering NOTIFY discoveringChanged)
Q_PROPERTY(DiscoveryModel *discoveryModel READ discoveryModel CONSTANT)
public:
explicit NymeaDiscovery(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 // NYMEADISCOVERY_H