xbmc
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Friends | List of all members
PLT_DeviceData Class Reference

The PLT_DeviceData class holds information about a device being advertised or found by a control point. More...

#include <PltDeviceData.h>

Inheritance diagram for PLT_DeviceData:
Inheritance graph
[legend]
Collaboration diagram for PLT_DeviceData:
Collaboration graph
[legend]

Public Member Functions

 PLT_DeviceData (NPT_HttpUrl description_url=NPT_HttpUrl(NULL, 0, "/description.xml"), const char *uuid="", NPT_TimeInterval lease_time= *PLT_Constants::GetInstance().GetDefaultDeviceLease(), const char *device_type="", const char *friendly_name="")
 
virtual NPT_Result GetDescription (NPT_String &desc)
 
virtual NPT_String GetDescriptionUrl (const char *ip_address=NULL)
 
virtual NPT_HttpUrl GetURLBase ()
 
virtual NPT_HttpUrl NormalizeURL (const NPT_String &url)
 
virtual NPT_Result GetDescription (NPT_XmlElementNode *parent, NPT_XmlElementNode **device=NULL)
 
virtual NPT_String GetIconUrl (const char *mimetype=NULL, NPT_Int32 maxsize=0, NPT_Int32 maxdepth=0)
 
bool IsRoot ()
 
const NPT_TimeIntervalGetLeaseTime () const
 
const NPT_StringGetUUID () const
 
const NPT_StringGetFriendlyName () const
 
const NPT_StringGetType () const
 
const NPT_StringGetModelDescription () const
 
const NPT_StringGetParentUUID () const
 
const NPT_IpAddressGetLocalIP () const
 
const NPT_Array< PLT_Service * > & GetServices () const
 
const NPT_Array< PLT_DeviceDataReference > & GetEmbeddedDevices () const
 
NPT_Result FindEmbeddedDevice (const char *uuid, PLT_DeviceDataReference &device)
 
NPT_Result FindEmbeddedDeviceByType (const char *type, PLT_DeviceDataReference &device)
 
NPT_Result FindServiceById (const char *id, PLT_Service *&service)
 
NPT_Result FindServiceByType (const char *type, PLT_Service *&service)
 
NPT_Result FindServiceByName (const char *name, PLT_Service *&service)
 
NPT_Result FindServiceBySCPDURL (const char *url, PLT_Service *&service, bool recursive=false)
 
NPT_Result FindServiceByControlURL (const char *url, PLT_Service *&service, bool recursive=false)
 
NPT_Result FindServiceByEventSubURL (const char *url, PLT_Service *&service, bool recursive=false)
 
NPT_Result AddEmbeddedDevice (PLT_DeviceDataReference &device)
 
NPT_Result RemoveEmbeddedDevice (PLT_DeviceDataReference &device)
 
NPT_Result AddService (PLT_Service *service)
 
NPT_Result RemoveService (PLT_Service *service)
 
void SetBootId (NPT_UInt32 bootId)
 
void SetNextBootId (NPT_UInt32 nextBootId)
 
NPT_UInt32 GenerateNextBootId ()
 
 operator const char * ()
 

Public Attributes

NPT_String m_Manufacturer
 
NPT_String m_ManufacturerURL
 
NPT_String m_ModelDescription
 
NPT_String m_ModelName
 
NPT_String m_ModelNumber
 
NPT_String m_ModelURL
 
NPT_String m_SerialNumber
 
NPT_String m_UPC
 
NPT_String m_PresentationURL
 
NPT_String m_DlnaDoc
 
NPT_String m_DlnaCap
 
NPT_String m_AggregationFlags
 

Protected Member Functions

virtual void Cleanup ()
 
virtual NPT_Result OnAddExtraInfo (NPT_XmlElementNode *)
 

Protected Attributes

NPT_String m_ParentUUID
 
NPT_String m_UUID
 
NPT_HttpUrl m_URLDescription
 
NPT_HttpUrl m_URLBase
 
NPT_String m_DeviceType
 
NPT_String m_FriendlyName
 
NPT_TimeInterval m_LeaseTime
 
NPT_TimeStamp m_LeaseTimeLastUpdate
 
NPT_Array< PLT_Service * > m_Services
 
NPT_Array< PLT_DeviceDataReferencem_EmbeddedDevices
 
NPT_Array< PLT_DeviceIconm_Icons
 
NPT_IpAddress m_LocalIfaceIp
 
NPT_String m_Representation
 

Friends

class NPT_Reference< PLT_DeviceData >
 
class PLT_CtrlPoint
 
class PLT_DeviceReadyIterator
 
class PLT_DeviceHost
 

Detailed Description

The PLT_DeviceData class holds information about a device being advertised or found by a control point.

It maintains a list of services and embedded devices if any.


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