kodi
PltXbox360.h
1 /*****************************************************************
2 |
3 | Platinum - XBox 360
4 |
5 | Copyright (c) 2004-2010, Plutinosoft, LLC.
6 | All rights reserved.
7 | http://www.plutinosoft.com
8 |
9 | This program is free software; you can redistribute it and/or
10 | modify it under the terms of the GNU General Public License
11 | as published by the Free Software Foundation; either version 2
12 | of the License, or (at your option) any later version.
13 |
14 | OEMs, ISVs, VARs and other distributors that combine and
15 | distribute commercially licensed software with Platinum software
16 | and do not wish to distribute the source code for the commercially
17 | licensed software under version 2, or (at your option) any later
18 | version, of the GNU General Public License (the "GPL") must enter
19 | into a commercial license agreement with Plutinosoft, LLC.
20 | licensing@plutinosoft.com
21 |
22 | This program is distributed in the hope that it will be useful,
23 | but WITHOUT ANY WARRANTY; without even the implied warranty of
24 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 | GNU General Public License for more details.
26 |
27 | You should have received a copy of the GNU General Public License
28 | along with this program; see the file LICENSE.txt. If not, write to
29 | the Free Software Foundation, Inc.,
30 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
31 | http://www.gnu.org/licenses/gpl-2.0.html
32 |
33 ****************************************************************/
34 
35 #ifndef _PLT_XBOX360_H_
36 #define _PLT_XBOX360_H_
37 
38 /*----------------------------------------------------------------------
39 | includes
40 +---------------------------------------------------------------------*/
41 #include "PltMediaRenderer.h"
42 
44 {
45 public:
46  PLT_Xbox360(const char* uuid = NULL,
47  unsigned int port = 0,
48  bool port_rebind = false);
49 
50 protected:
51  // PLT_DeviceHost methods
52  NPT_Result SetupServices() override;
53  NPT_Result SetupIcons() override;
54  virtual NPT_Result InitServiceURLs(PLT_Service* service, const char* service_name);
55 
56  virtual NPT_Result Announce(PLT_DeviceData* device,
57  NPT_HttpRequest& request,
59  PLT_SsdpAnnounceType type);
60 
61  // PLT_DeviceData methods
62  NPT_Result GetDescription(NPT_String& desc) override { return PLT_MediaRenderer::GetDescription(desc); }
63  NPT_Result GetDescription(NPT_XmlElementNode* parent,
64  NPT_XmlElementNode** device = NULL) override;
65 
66 protected:
67  ~PLT_Xbox360() override;
68 
69  virtual NPT_Result AnnouncePresence(NPT_UdpSocket& socket,
70  const char* serial_number);
71 };
72 
73 #endif /* _PLT_XBOX360_H_ */
NPT_Result SetupServices() override
Required method for setting up UPnP services of device host (and any embedded).
Definition: PltXbox360.cpp:70
Definition: NptXml.h:172
Definition: PltXbox360.h:43
Definition: NptHttp.h:282
UPnP Service.
Definition: PltService.h:67
The PLT_DeviceData class holds information about a device being advertised or found by a control poin...
Definition: PltDeviceData.h:93
Definition: NptSockets.h:243
Definition: PltMediaRenderer.h:75
Definition: NptStrings.h:57
NPT_Result SetupIcons() override
Default implementation for registering device icon resources.
Definition: PltXbox360.cpp:153