|
a/upmpd/upmpd.hxx |
|
b/upmpd/upmpd.hxx |
|
... |
|
... |
32 |
enum Options {
|
32 |
enum Options {
|
33 |
upmpdNone,
|
33 |
upmpdNone,
|
34 |
// If set, the MPD queue belongs to us, we shall clear
|
34 |
// If set, the MPD queue belongs to us, we shall clear
|
35 |
// it as we like.
|
35 |
// it as we like.
|
36 |
upmpdOwnQueue,
|
36 |
upmpdOwnQueue,
|
37 |
|
37 |
// Export OpenHome services
|
|
|
38 |
upmpdDoOH,
|
38 |
};
|
39 |
};
|
39 |
UpMpd(const string& deviceid,
|
40 |
UpMpd(const string& deviceid,
|
40 |
const unordered_map<string, string>& xmlfiles,
|
41 |
const unordered_map<string, string>& xmlfiles,
|
41 |
MPDCli *mpdcli, Options opts = upmpdNone);
|
42 |
MPDCli *mpdcli, unsigned int opts = upmpdNone);
|
42 |
~UpMpd();
|
43 |
~UpMpd();
|
43 |
|
44 |
|
44 |
const MpdStatus &getMpdStatus();
|
45 |
const MpdStatus &getMpdStatus();
|
45 |
|
46 |
|
46 |
private:
|
47 |
private:
|
47 |
MPDCli *m_mpdcli;
|
48 |
MPDCli *m_mpdcli;
|
48 |
const MpdStatus *m_mpds;
|
49 |
const MpdStatus *m_mpds;
|
49 |
|
50 |
|
50 |
int m_options;
|
51 |
unsigned int m_options;
|
51 |
vector<UpnpService*> m_services;
|
52 |
vector<UpnpService*> m_services;
|
52 |
};
|
53 |
};
|
53 |
|
54 |
|
54 |
|
55 |
|
55 |
// "http-get:*:audio/mpeg:DLNA.ORG_PN=MP3,"
|
56 |
// "http-get:*:audio/mpeg:DLNA.ORG_PN=MP3,"
|