Pass metadata and coverart to the RTP thread
[deb_shairplay.git] / AirTV-Qt / raopservice.h
... / ...
CommitLineData
1/**
2 * Copyright (C) 2011-2012 Juho Vähä-Herttua
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 */
14
15#ifndef RAOPSERVICE_H
16#define RAOPSERVICE_H
17
18#include <QObject>
19#include <QThread>
20
21#include "raopcallbackhandler.h"
22
23#include "dnssd.h"
24#include "raop.h"
25
26class RaopService : public QObject
27{
28 Q_OBJECT
29public:
30 explicit RaopService(QObject *parent = 0);
31 ~RaopService();
32
33 bool init();
34 bool start(const QString & name=QString("AirTV"), quint16 port=5000);
35 void stop();
36
37private:
38 dnssd_t * m_dnssd;
39 raop_t * m_raop;
40
41 QThread m_thread;
42 RaopCallbackHandler m_handler;
43
44signals:
45
46public slots:
47
48};
49
50#endif // RAOPSERVICE_H