Merge pull request #26220 from 78andyp/blurayfixes
[xbmc.git] / lib / libUPnP / Platinum / Source / Devices / MediaConnect / PltXbox360.h
blob346ce57b40ae9c35aa9e8ddca502b26c70b6aa30
1 /*****************************************************************
3 | Platinum - XBox 360
5 | Copyright (c) 2004-2010, Plutinosoft, LLC.
6 | All rights reserved.
7 | http://www.plutinosoft.com
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.
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
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.
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
33 ****************************************************************/
35 #ifndef _PLT_XBOX360_H_
36 #define _PLT_XBOX360_H_
38 /*----------------------------------------------------------------------
39 | includes
40 +---------------------------------------------------------------------*/
41 #include "PltMediaRenderer.h"
43 class PLT_Xbox360 : public PLT_MediaRenderer
45 public:
46 PLT_Xbox360(const char* uuid = NULL,
47 unsigned int port = 0,
48 bool port_rebind = false);
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);
56 virtual NPT_Result Announce(PLT_DeviceData* device,
57 NPT_HttpRequest& request,
58 NPT_UdpSocket& socket,
59 PLT_SsdpAnnounceType type);
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;
66 protected:
67 ~PLT_Xbox360() override;
69 virtual NPT_Result AnnouncePresence(NPT_UdpSocket& socket,
70 const char* serial_number);
73 #endif /* _PLT_XBOX360_H_ */