| 1 | #ifndef RAOPSERVICE_H |
| 2 | #define RAOPSERVICE_H |
| 3 | |
| 4 | #include <QObject> |
| 5 | #include <QThread> |
| 6 | |
| 7 | #include "raopcallbackhandler.h" |
| 8 | |
| 9 | #include "dnssd.h" |
| 10 | #include "raop.h" |
| 11 | |
| 12 | class RaopService : public QObject |
| 13 | { |
| 14 | Q_OBJECT |
| 15 | public: |
| 16 | explicit RaopService(QObject *parent = 0); |
| 17 | ~RaopService(); |
| 18 | |
| 19 | bool init(); |
| 20 | bool start(const QString & name=QString("AirTV"), quint16 port=5000); |
| 21 | void stop(); |
| 22 | |
| 23 | private: |
| 24 | dnssd_t * m_dnssd; |
| 25 | raop_t * m_raop; |
| 26 | |
| 27 | QThread m_thread; |
| 28 | RaopCallbackHandler m_handler; |
| 29 | |
| 30 | signals: |
| 31 | |
| 32 | public slots: |
| 33 | |
| 34 | }; |
| 35 | |
| 36 | #endif // RAOPSERVICE_H |