|
a/libupnpp/control/mediarenderer.hxx |
|
b/libupnpp/control/mediarenderer.hxx |
|
... |
|
... |
15 |
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
15 |
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
16 |
*/
|
16 |
*/
|
17 |
#ifndef _MEDIARENDERER_HXX_INCLUDED_
|
17 |
#ifndef _MEDIARENDERER_HXX_INCLUDED_
|
18 |
#define _MEDIARENDERER_HXX_INCLUDED_
|
18 |
#define _MEDIARENDERER_HXX_INCLUDED_
|
19 |
|
19 |
|
|
|
20 |
#include <memory>
|
|
|
21 |
#include <string>
|
|
|
22 |
|
20 |
#include "libupnpp/description.hxx"
|
23 |
#include "libupnpp/description.hxx"
|
|
|
24 |
#include "libupnpp/control/renderingcontrol.hxx"
|
|
|
25 |
#include "libupnpp/control/avtransport.hxx"
|
|
|
26 |
|
21 |
|
27 |
|
22 |
namespace UPnPClient {
|
28 |
namespace UPnPClient {
|
23 |
|
29 |
|
24 |
class Device {
|
30 |
class Device {
|
25 |
public:
|
31 |
public:
|
26 |
/* Something may get there one day... */
|
32 |
/* Something may get there one day... */
|
27 |
};
|
33 |
};
|
28 |
|
34 |
|
|
|
35 |
class MediaRenderer;
|
|
|
36 |
typedef std::shared_ptr<MediaRenderer> MRDH;
|
|
|
37 |
|
29 |
class MediaRenderer : public Device {
|
38 |
class MediaRenderer : public Device {
|
30 |
public:
|
39 |
public:
|
|
|
40 |
MediaRenderer(const UPnPDeviceDesc& desc);
|
|
|
41 |
|
|
|
42 |
RDCH rdc() {return m_rdc;}
|
|
|
43 |
AVTH avt() {return m_avt;}
|
|
|
44 |
|
31 |
static bool getDeviceDescs(std::vector<UPnPDeviceDesc>& devices,
|
45 |
static bool getDeviceDescs(std::vector<UPnPDeviceDesc>& devices,
|
32 |
const string& friendlyName = "");
|
46 |
const std::string& friendlyName = "");
|
33 |
static bool hasOpenHome(const UPnPDeviceDesc& device);
|
47 |
static bool hasOpenHome(const UPnPDeviceDesc& device);
|
34 |
static bool isMRDevice(const string& devicetype);
|
48 |
static bool isMRDevice(const std::string& devicetype);
|
35 |
|
49 |
|
36 |
protected:
|
50 |
protected:
|
|
|
51 |
RDCH m_rdc;
|
|
|
52 |
AVTH m_avt;
|
|
|
53 |
|
37 |
static const std::string DType;
|
54 |
static const std::string DType;
|
38 |
};
|
55 |
};
|
39 |
|
56 |
|
40 |
}
|
57 |
}
|
41 |
|
58 |
|