|
a/upmpd/upmpd.hxx |
|
b/upmpd/upmpd.hxx |
|
... |
|
... |
17 |
|
17 |
|
18 |
#ifndef _UPMPD_H_X_INCLUDED_
|
18 |
#ifndef _UPMPD_H_X_INCLUDED_
|
19 |
#define _UPMPD_H_X_INCLUDED_
|
19 |
#define _UPMPD_H_X_INCLUDED_
|
20 |
|
20 |
|
21 |
class MPDCli;
|
21 |
class MPDCli;
|
|
|
22 |
class MpdStatus;
|
22 |
|
23 |
|
23 |
// The UPnP MPD frontend device with its 3 services
|
24 |
// The UPnP MPD frontend device with its 3 services
|
24 |
class UpMpd : public UpnpDevice {
|
25 |
class UpMpd : public UpnpDevice {
|
25 |
public:
|
26 |
public:
|
26 |
friend class UpMpdRenderCtl;
|
27 |
friend class UpMpdRenderCtl;
|
27 |
friend class UpMpdAVTransport;
|
28 |
friend class UpMpdAVTransport;
|
28 |
friend class UpMpdConMan;
|
29 |
friend class OHInfo;
|
29 |
|
30 |
|
30 |
enum Options {
|
31 |
enum Options {
|
31 |
upmpdNone,
|
32 |
upmpdNone,
|
32 |
// If set, the MPD queue belongs to us, we shall clear
|
33 |
// If set, the MPD queue belongs to us, we shall clear
|
33 |
// it as we like.
|
34 |
// it as we like.
|
|
... |
|
... |
37 |
UpMpd(const string& deviceid,
|
38 |
UpMpd(const string& deviceid,
|
38 |
const unordered_map<string, string>& xmlfiles,
|
39 |
const unordered_map<string, string>& xmlfiles,
|
39 |
MPDCli *mpdcli, Options opts = upmpdNone);
|
40 |
MPDCli *mpdcli, Options opts = upmpdNone);
|
40 |
~UpMpd();
|
41 |
~UpMpd();
|
41 |
|
42 |
|
|
|
43 |
const MpdStatus &getMpdStatus();
|
|
|
44 |
|
42 |
private:
|
45 |
private:
|
43 |
MPDCli *m_mpdcli;
|
46 |
MPDCli *m_mpdcli;
|
|
|
47 |
const MpdStatus *m_mpds;
|
44 |
|
48 |
|
45 |
int m_options;
|
49 |
int m_options;
|
46 |
vector<UpnpService*> m_services;
|
50 |
vector<UpnpService*> m_services;
|
47 |
};
|
51 |
};
|
48 |
|
52 |
|