Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
UPNP::CUPnPServer Class Reference

#include <UPnPServer.h>

Inheritance diagram for UPNP::CUPnPServer:
ANNOUNCEMENT::IAnnouncer

Public Member Functions

 CUPnPServer (const char *friendly_name, const char *uuid=NULL, int port=0)
 
 ~CUPnPServer () override
 
void Announce (ANNOUNCEMENT::AnnouncementFlag flag, const std::string &sender, const std::string &message, const CVariant &data) override
 
NPT_Result OnBrowseMetadata (PLT_ActionReference &action, const char *object_id, const char *filter, NPT_UInt32 starting_index, NPT_UInt32 requested_count, const char *sort_criteria, const PLT_HttpRequestContext &context) override
 
NPT_Result OnBrowseDirectChildren (PLT_ActionReference &action, const char *object_id, const char *filter, NPT_UInt32 starting_index, NPT_UInt32 requested_count, const char *sort_criteria, const PLT_HttpRequestContext &context) override
 
NPT_Result OnSearchContainer (PLT_ActionReference &action, const char *container_id, const char *search_criteria, const char *filter, NPT_UInt32 starting_index, NPT_UInt32 requested_count, const char *sort_criteria, const PLT_HttpRequestContext &context) override
 
NPT_Result OnUpdateObject (PLT_ActionReference &action, const char *object_id, NPT_Map< NPT_String, NPT_String > &current_vals, NPT_Map< NPT_String, NPT_String > &new_vals, const PLT_HttpRequestContext &context) override
 
NPT_Result ServeFile (const NPT_HttpRequest &request, const NPT_HttpRequestContext &context, NPT_HttpResponse &response, const NPT_String &file_path) override
 
NPT_Result ProcessGetSCPD (PLT_Service *service, NPT_HttpRequest &request, const NPT_HttpRequestContext &context, NPT_HttpResponse &response) override
 
NPT_Result SetupServices () override
 
NPT_Result SetupIcons () override
 
NPT_String BuildSafeResourceUri (const NPT_HttpUrl &rooturi, const char *host, const char *file_path)
 
void AddSafeResourceUri (PLT_MediaObject *object, const NPT_HttpUrl &rooturi, const NPT_List< NPT_IpAddress > &ips, const char *file_path, const NPT_String &info)
 
NPT_Result AddSubtitleUriForSecResponse (const NPT_String &movie_md5, const NPT_String &subtitle_uri)
 
- Public Member Functions inherited from ANNOUNCEMENT::IAnnouncer
 IAnnouncer ()=default
 
virtual ~IAnnouncer ()=default
 

Static Public Attributes

static NPT_UInt32 m_MaxReturnedItems = 0
 

Constructor & Destructor Documentation

◆ CUPnPServer()

UPNP::CUPnPServer::CUPnPServer ( const char * friendly_name,
const char * uuid = NULL,
int port = 0 )

◆ ~CUPnPServer()

UPNP::CUPnPServer::~CUPnPServer ( )
override

Member Function Documentation

◆ AddSafeResourceUri()

void UPNP::CUPnPServer::AddSafeResourceUri ( PLT_MediaObject * object,
const NPT_HttpUrl & rooturi,
const NPT_List< NPT_IpAddress > & ips,
const char * file_path,
const NPT_String & info )
inline

◆ AddSubtitleUriForSecResponse()

NPT_Result UPNP::CUPnPServer::AddSubtitleUriForSecResponse ( const NPT_String & movie_md5,
const NPT_String & subtitle_uri )

◆ Announce()

void UPNP::CUPnPServer::Announce ( ANNOUNCEMENT::AnnouncementFlag flag,
const std::string & sender,
const std::string & message,
const CVariant & data )
overridevirtual

◆ BuildSafeResourceUri()

NPT_String UPNP::CUPnPServer::BuildSafeResourceUri ( const NPT_HttpUrl & rooturi,
const char * host,
const char * file_path )

◆ OnBrowseDirectChildren()

NPT_Result UPNP::CUPnPServer::OnBrowseDirectChildren ( PLT_ActionReference & action,
const char * object_id,
const char * filter,
NPT_UInt32 starting_index,
NPT_UInt32 requested_count,
const char * sort_criteria,
const PLT_HttpRequestContext & context )
override

◆ OnBrowseMetadata()

NPT_Result UPNP::CUPnPServer::OnBrowseMetadata ( PLT_ActionReference & action,
const char * object_id,
const char * filter,
NPT_UInt32 starting_index,
NPT_UInt32 requested_count,
const char * sort_criteria,
const PLT_HttpRequestContext & context )
override
Todo
We need to keep track of the overall SystemUpdateID of the CDS

◆ OnSearchContainer()

NPT_Result UPNP::CUPnPServer::OnSearchContainer ( PLT_ActionReference & action,
const char * container_id,
const char * search_criteria,
const char * filter,
NPT_UInt32 starting_index,
NPT_UInt32 requested_count,
const char * sort_criteria,
const PLT_HttpRequestContext & context )
override

◆ OnUpdateObject()

NPT_Result UPNP::CUPnPServer::OnUpdateObject ( PLT_ActionReference & action,
const char * object_id,
NPT_Map< NPT_String, NPT_String > & current_vals,
NPT_Map< NPT_String, NPT_String > & new_vals,
const PLT_HttpRequestContext & context )
override

TODO: we should find a way to avoid obtaining the artwork just to

Todo
implement this

◆ ProcessGetSCPD()

NPT_Result UPNP::CUPnPServer::ProcessGetSCPD ( PLT_Service * service,
NPT_HttpRequest & request,
const NPT_HttpRequestContext & context,
NPT_HttpResponse & response )
override

◆ ServeFile()

NPT_Result UPNP::CUPnPServer::ServeFile ( const NPT_HttpRequest & request,
const NPT_HttpRequestContext & context,
NPT_HttpResponse & response,
const NPT_String & file_path )
override

◆ SetupIcons()

NPT_Result UPNP::CUPnPServer::SetupIcons ( )
override

◆ SetupServices()

NPT_Result UPNP::CUPnPServer::SetupServices ( )
override

Member Data Documentation

◆ m_MaxReturnedItems

NPT_UInt32 UPNP::CUPnPServer::m_MaxReturnedItems = 0
static

The documentation for this class was generated from the following files: