libupnpp  0.16.0
A C++ wrapper for the Portable UPnP reference library
mediaserver.hxx
1 /* Copyright (C) 2006-2016 J.F.Dockes
2  *
3  * This library is free software; you can redistribute it and/or
4  * modify it under the terms of the GNU Lesser General Public
5  * License as published by the Free Software Foundation; either
6  * version 2.1 of the License, or (at your option) any later version.
7  *
8  * This library is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  * Lesser General Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public
14  * License along with this library; if not, write to the Free Software
15  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
16  * 02110-1301 USA
17  */
18 #ifndef _MEDIASERVER_HXX_INCLUDED_
19 #define _MEDIASERVER_HXX_INCLUDED_
20 
21 #include <memory>
22 #include <string>
23 #include <vector>
24 
25 #include "libupnpp/control/cdirectory.hxx"
26 #include "libupnpp/control/device.hxx"
27 
28 namespace UPnPClient {
29 
30 class MediaServer;
31 class UPnPDeviceDesc;
32 
33 typedef std::shared_ptr<MediaServer> MSRH;
34 
35 class UPNPP_API MediaServer : public Device {
36 public:
37  MediaServer(const UPnPDeviceDesc& desc);
38 
39  CDSH cds() {
40  return m_cds;
41  }
42 
43  static bool getDeviceDescs(std::vector<UPnPDeviceDesc>& devices,
44  const std::string& friendlyName = "");
45  static bool isMSDevice(const std::string& devicetype);
46 
47 protected:
48  CDSH m_cds;
49 
50  static const std::string DType;
51 };
52 
53 }
54 
55 #endif /* _MEDIASERVER_HXX_INCLUDED_ */
For now, the Device class is just a holder for the description object.
Definition: device.hxx:42
Definition: mediaserver.hxx:35
Data holder for a UPnP device, parsed from the XML description obtained during discovery.
Definition: description.hxx:142
UPnP Description phase: interpreting the device description which we downloaded from the URL obtained...
Definition: avlastchg.cxx:27