class UpnpTDM

Start and Stop Discovery of UPnP Devices from the network when receive call of startDiscovery() and stopDiscovery() from ITDMListener respectively.

Inheritance:


Public Methods

[more] UpnpTDM()
Basic Constructor for UpnpTDM
[more]void init(ITDMListener*tdmListener, map<string, string>*tdmProps, map<string, string>*uchProps, list<map<string, IProfile*>*>* contexts)
When the TDM is installed and loaded, the UCH calls init() prior to any other TDM function and allows the TDM to initialize itself.
[more]void startDiscovery()
This function signals the TDM to start discovery of targets.
[more]void stopDiscovery()
This function signals the TDM to stop discovery of targets.
[more]void targetDiscovered(map<string, void*>* targetProps)
UpnpControlPoint Updates the TDMs with new UPnP device discovered in network
[more]void targetDiscarded(string deviceId)
UpnpControlPoint Updates the TDMs for UPnP device non-availability in network
[more]void finalize()
It is called before it uninstalls or unloads the TDM.
[more]map<string, string> * getTDMProps()
Get TDM Properties Map.
[more]list<map<string, IProfile*>*> * getTargetContexts(string targetId)
Call the same method on TDMListener
[more]void contextsOpened(list<map<string, IProfile*>*>*contexts)
Call the same method on TDMListener and UIPMListener.
[more]void contextsClosed(list<map<string, IProfile*>*>*contexts)
Call the same method on TDMListener and UIPMListener.


Inherited from IUpnpControlPointListener:


Documentation

Start and Stop Discovery of UPnP Devices from the network when receive call of startDiscovery() and stopDiscovery() from ITDMListener respectively. When any UPnP Device is added or removed from the network then invoke the method targetDiscovered() or targetDiscarded() of ITDMListener respectively.

o UpnpTDM()
Basic Constructor for UpnpTDM

ovoid init(ITDMListener*tdmListener, map<string, string>*tdmProps, map<string, string>*uchProps, list<map<string, IProfile*>*>* contexts)
When the TDM is installed and loaded, the UCH calls init() prior to any other TDM function and allows the TDM to initialize itself.

Parameters:
tdmListener - an Object of ITDMListener
tdmProps - a Map<String, String> of ITDM Properties
uchProps - a Map<String, String> of UCH Properties @throws TDMFatalException

ovoid startDiscovery()
This function signals the TDM to start discovery of targets.

@throws TDMFatalException

ovoid stopDiscovery()
This function signals the TDM to stop discovery of targets.

@throws TDMFatalException

ovoid targetDiscovered(map<string, void*>* targetProps)
UpnpControlPoint Updates the TDMs with new UPnP device discovered in network
Parameters:
targetProps - specifying device properties

ovoid targetDiscarded(string deviceId)
UpnpControlPoint Updates the TDMs for UPnP device non-availability in network
Parameters:
deviceId - as String

ovoid finalize()
It is called before it uninstalls or unloads the TDM. Stop discovery if discovery is started.

omap<string, string> * getTDMProps()
Get TDM Properties Map.

Returns:
a object of Map<String, String> of TDM Properties

olist<map<string, IProfile*>*> * getTargetContexts(string targetId)
Call the same method on TDMListener

Parameters:
targetId - a String value of Target Id
Returns:
an Object of List<Map<String, IProfile>>

ovoid contextsOpened(list<map<string, IProfile*>*>*contexts)
Call the same method on TDMListener and UIPMListener. That will further call the same methods on all TAs and UIPMs.

Parameters:
contexts - an Object of List<Map<String, IProfile>>

ovoid contextsClosed(list<map<string, IProfile*>*>*contexts)
Call the same method on TDMListener and UIPMListener. That will further call the same methods on all TAs and UIPMs.

Parameters:
contexts - an Object of List<Map<String, IProfile>>


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++.