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.
Michael Zanetti 22dd3fe27d intermediate commit.
Working pretty well now. No cleanup done. some broken menu entries related to
connect.

TBC
2019-02-06 03:00:43 +01:00

37 lines
719 B
C++

#ifndef ZEROCONFDISCOVERY_H
#define ZEROCONFDISCOVERY_H
#ifdef WITH_ZEROCONF
#include "qzeroconf.h"
#endif
#include "../nymeahosts.h"
#include <QObject>
class ZeroconfDiscovery : public QObject
{
Q_OBJECT
public:
explicit ZeroconfDiscovery(NymeaHosts *nymeaHosts, QObject *parent = nullptr);
~ZeroconfDiscovery();
bool available() const;
bool discovering() const;
private:
NymeaHosts *m_nymeaHosts;
#ifdef WITH_ZEROCONF
QZeroConf *m_zeroconfJsonRPC = nullptr;
QZeroConf *m_zeroconfWebSocket = nullptr;
private slots:
void serviceEntryAdded(const QZeroConfService &entry);
void serviceEntryRemoved(const QZeroConfService &entry);
#endif
};
#endif // ZEROCONFDISCOVERY_H