| 1 | #ifndef DNSSDSERVICE_H |
| 2 | #define DNSSDSERVICE_H |
| 3 | |
| 4 | #include <QObject> |
| 5 | |
| 6 | #include "dnssd.h" |
| 7 | |
| 8 | class DnssdService : public QObject |
| 9 | { |
| 10 | Q_OBJECT |
| 11 | public: |
| 12 | explicit DnssdService(QObject *parent = 0); |
| 13 | ~DnssdService(); |
| 14 | |
| 15 | bool init(); |
| 16 | |
| 17 | void registerRaop(const QString & name, quint16 port, const QByteArray & hwaddr); |
| 18 | void unregisterRaop(); |
| 19 | |
| 20 | void registerAirplay(const QString & name, quint16 port, const QByteArray & hwaddr); |
| 21 | void unregisterAirplay(); |
| 22 | |
| 23 | private: |
| 24 | dnssd_t * m_dnssd; |
| 25 | |
| 26 | signals: |
| 27 | |
| 28 | public slots: |
| 29 | |
| 30 | }; |
| 31 | |
| 32 | #endif // DNSSDSERVICE_H |