class UpnpControlPoint

Provide the method to forward device status to TDMs Provide the method to forward updates and received events to IUpdateListener.

Inheritance:


Public Fields

[more]static bool includeDeviceInList
Stop including devices in list

Public Methods

[more] UpnpControlPoint()
Basic Constructor for UpnpControlPoint
[more]void addUpdateListener(IUpdateListener*updateListener)
add IUpdateListener to updateListener list
[more]void addCPListener(IUpnpControlPointListener*cpListener)
add IUpnpControlPointListener to controlPointListener list
[more]void removeUpdateListener(IUpdateListener*listener)
removes IUpdateListener from updateListener list
[more]void removeCPListener(IUpnpControlPointListener*listener)
remove IUpnpControlPointListener from controlPointListener list
[more]string subscribeToEvent(string UDN, string service)
subscribe to the service specified in service string
[more]bool unsubscribeToEvent(string SID)
unsubscribe to the service specified in eventURL string
[more]string doAction(string service, map<string, string>*paramMap, string controlURL, bool makeAction, string action)
Performs the UPnP Action
[more]void startDiscovery()
Update the TDMs with new UPnP device discovered in network
[more]void stopDiscovery()
Update the TDMs for UPnP device non-availability in network
[more]void setRelaxParserState(bool relaxParser)
Set the relax parser for UTF-8 encoding
[more]static void targetDiscarded(string UDN)
Informs all listener targetDiscarded
[more]bool checkForService(string UDN, string service)
Check for service for given device
[more]IXML_Document* doAction(string service, string UDN, string action, bool makeAction, map<string, string>*paramMap)
Performs the UPnP Action


Inherited from IUpnpControlPoint:

Public Methods

ovirtual void* getDeviceProperty(string UDN, string prop)


Documentation

Provide the method to forward device status to TDMs Provide the method to forward updates and received events to IUpdateListener.

o UpnpControlPoint()
Basic Constructor for UpnpControlPoint

ovoid addUpdateListener(IUpdateListener*updateListener)
add IUpdateListener to updateListener list
Parameters:
updateListener - as IUpdateListener Object

ovoid addCPListener(IUpnpControlPointListener*cpListener)
add IUpnpControlPointListener to controlPointListener list
Parameters:
cpListener - as IUpnpControlPointListener Object

ovoid removeUpdateListener(IUpdateListener*listener)
removes IUpdateListener from updateListener list
Parameters:
listener - as IUpdateListener Object

ovoid removeCPListener(IUpnpControlPointListener*listener)
remove IUpnpControlPointListener from controlPointListener list
Parameters:
listener - as IUpnpControlPointListener Object

ostring subscribeToEvent(string UDN, string service)
subscribe to the service specified in service string
Parameters:
UDN - String Value of media renderer UDN
service - String Value of service

obool unsubscribeToEvent(string SID)
unsubscribe to the service specified in eventURL string
Parameters:
SID - String Value of subscription id
Returns:
as true if successfull otherwise false

ostring doAction(string service, map<string, string>*paramMap, string controlURL, bool makeAction, string action)
Performs the UPnP Action
Parameters:
service - as String Value of service
paramMap - as map<string,string> which includes the UPnP specified action name and it's corresponding value
UDN - String Value of media renderer UDN
makeAction - as bool specifies whether whether to make action or add action
action - as String specifying the action name
Returns:
string response from UPnP device

ovoid startDiscovery()
Update the TDMs with new UPnP device discovered in network
Parameters:
targetProps - specifying device properties

ovoid stopDiscovery()
Update the TDMs for UPnP device non-availability in network
Parameters:
deviceId - as String

ovoid setRelaxParserState(bool relaxParser)
Set the relax parser for UTF-8 encoding
Parameters:
relaxParser - bool , if true will replace non UTF-8 to '?' else declare fails for parsing

ostatic bool includeDeviceInList
Stop including devices in list

ostatic void targetDiscarded(string UDN)
Informs all listener targetDiscarded
Parameters:
UDN - String as UDN of device

obool checkForService(string UDN, string service)
Check for service for given device
Parameters:
UDN - String UDN of device
service - String service to be checked
Returns:
true if device has given service else false

oIXML_Document* doAction(string service, string UDN, string action, bool makeAction, map<string, string>*paramMap)
Performs the UPnP Action
Parameters:
service - as String Value of service
UDN - String Value of media renderer UDN
action - as String specifying the action name
makeAction - as bool specifies whether whether to make action or add action
paramMap - as map<string,string> which includes the UPnP specified action name and it's corresponding value
Returns:
a IXML_Document Object containing the response


This class has no child classes.
Author:
Parikshit Thakur & Team, Trace R&D Center
Version:
Revision: 1.0

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.