Initial commit to the repository
[deb_shairplay.git] / AirTV-Qt / raopservice.h
CommitLineData
2340bcd3
JVH
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
12class RaopService : public QObject
13{
14 Q_OBJECT
15public:
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
23private:
24 dnssd_t * m_dnssd;
25 raop_t * m_raop;
26
27 QThread m_thread;
28 RaopCallbackHandler m_handler;
29
30signals:
31
32public slots:
33
34};
35
36#endif // RAOPSERVICE_H