|
a/src/mediaserver/mediaserver.cxx |
|
b/src/mediaserver/mediaserver.cxx |
|
... |
|
... |
20 |
#include "conman.hxx"
|
20 |
#include "conman.hxx"
|
21 |
#include "contentdirectory.hxx"
|
21 |
#include "contentdirectory.hxx"
|
22 |
|
22 |
|
23 |
using namespace std;
|
23 |
using namespace std;
|
24 |
|
24 |
|
25 |
MediaServer::MediaServer(const string& deviceid, const string& friendlyname,
|
25 |
MediaServer::MediaServer(
|
|
|
26 |
const string& deviceid, const string& friendlyname, bool enabled,
|
26 |
const std::unordered_map<std::string, VDirContent>& files)
|
27 |
const std::unordered_map<std::string, VDirContent>& files)
|
27 |
: UpnpDevice(deviceid, files), m_UDN(deviceid), m_fname(friendlyname)
|
28 |
: UpnpDevice(deviceid, files), m_UDN(deviceid), m_fname(friendlyname)
|
28 |
{
|
29 |
{
|
29 |
m_cd = new ContentDirectory(this);
|
30 |
m_cd = new ContentDirectory(this, enabled);
|
30 |
m_cm = new UpMpdConMan(this);
|
31 |
m_cm = new UpMpdConMan(this);
|
31 |
}
|
32 |
}
|
32 |
|
33 |
|
33 |
|
34 |
|
34 |
MediaServer::~MediaServer()
|
35 |
MediaServer::~MediaServer()
|