Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
UPnPInternal.h File Reference
#include <memory>
#include <string>
#include <Neptune/Source/Core/NptReferences.h>
#include <Neptune/Source/Core/NptStrings.h>
#include <Neptune/Source/Core/NptTypes.h>

Classes

class  UPNP::CResourceFinder
 

Namespaces

namespace  MUSIC_INFO
 
namespace  UPNP
 

Enumerations

enum  UPNP::UPnPService {
  UPNP::UPnPServiceNone = 0 , UPNP::UPnPClient , UPNP::UPnPContentDirectory , UPNP::UPnPPlayer ,
  UPNP::UPnPRenderer
}
 
enum  UPNP::EClientQuirks { UPNP::ECLIENTQUIRKS_NONE = 0x0 , UPNP::ECLIENTQUIRKS_ONLYSTORAGEFOLDER = 0x01 , UPNP::ECLIENTQUIRKS_BASICVIDEOCLASS = 0x02 , UPNP::ECLIENTQUIRKS_UNKNOWNSERIES = 0x04 }
 
enum  UPNP::EMediaControllerQuirks { UPNP::EMEDIACONTROLLERQUIRKS_NONE = 0x00 , UPNP::EMEDIACONTROLLERQUIRKS_X_MKV = 0x01 }
 

Functions

EClientQuirks UPNP::GetClientQuirks (const PLT_HttpRequestContext *context)
 
EMediaControllerQuirks UPNP::GetMediaControllerQuirks (const PLT_DeviceData *device)
 
const char * UPNP::GetMimeTypeFromExtension (const char *extension, const PLT_HttpRequestContext *context=NULL)
 
NPT_String UPNP::GetMimeType (const CFileItem &item, const PLT_HttpRequestContext *context)
 
NPT_String UPNP::GetMimeType (const char *filename, const PLT_HttpRequestContext *context)
 
const NPT_String UPNP::GetProtocolInfo (const CFileItem &item, const char *protocol, const PLT_HttpRequestContext *context)
 
const std::string & UPNP::CorrectAllItemsSortHack (const std::string &item)
 
int UPNP::PopulateTagFromObject (CMusicInfoTag &tag, PLT_MediaObject &object, PLT_MediaItemResource *resource, UPnPService service)
 
int UPNP::PopulateTagFromObject (CVideoInfoTag &tag, PLT_MediaObject &object, PLT_MediaItemResource *resource, UPnPService service)
 
NPT_Result UPNP::PopulateObjectFromTag (CMusicInfoTag &tag, PLT_MediaObject &object, NPT_String *file_path, PLT_MediaItemResource *resource, EClientQuirks quirks, UPnPService service)
 
NPT_Result UPNP::PopulateObjectFromTag (CVideoInfoTag &tag, PLT_MediaObject &object, NPT_String *file_path, PLT_MediaItemResource *resource, EClientQuirks quirks, UPnPService service)
 
PLT_MediaObject * UPNP::BuildObject (CFileItem &item, NPT_String &file_path, bool with_count, NPT_Reference< CThumbLoader > &thumb_loader, const PLT_HttpRequestContext *context, CUPnPServer *upnp_server, UPnPService upnp_service)
 
std::shared_ptr< CFileItemUPNP::BuildObject (PLT_MediaObject *entry, UPnPService upnp_service)
 
bool UPNP::GetResource (const PLT_MediaObject *entry, CFileItem &item)
 
std::shared_ptr< CFileItemUPNP::GetFileItem (const NPT_String &uri, const NPT_String &meta)
 
NPT_String UPNP::EncodeObjectId (const std::string &id)
 Provided a given object id, encode it into a safe format to provide to UPnP clients @Note base64 is currently used as the safe format.
 
NPT_String UPNP::DecodeObjectId (const std::string &id)
 Provided a given encoded object id, decode it into a format known by the application @Note base64 is currently used as the expected input format.