| 1 | #ifndef RAOPSERVICE_H |
| 2 | #define RAOPSERVICE_H |
| 3 | |
| 4 | #include <QObject> |
| 5 | |
| 6 | #include "raopcallbacks.h" |
| 7 | |
| 8 | #include "raop.h" |
| 9 | |
| 10 | class RaopService : public QObject |
| 11 | { |
| 12 | Q_OBJECT |
| 13 | public: |
| 14 | explicit RaopService(QObject *parent = 0); |
| 15 | ~RaopService(); |
| 16 | |
| 17 | bool init(int max_clients, RaopCallbacks *callbacks); |
| 18 | bool start(quint16 port, const QByteArray & hwaddr); |
| 19 | bool isRunning(); |
| 20 | void stop(); |
| 21 | |
| 22 | private: |
| 23 | raop_t * m_raop; |
| 24 | |
| 25 | signals: |
| 26 | |
| 27 | public slots: |
| 28 | |
| 29 | }; |
| 30 | |
| 31 | #endif // RAOPSERVICE_H |