CUpnpDeviceLibrary Class Reference
class CUpnpDeviceLibrary : public CBase |
The device library main class. This class contains an array of device library elements (of type CUpnpDeviceLibraryElement). This list is maintained up-to-date by reading received SSDP messages. Every element in the library has a timeout, and remote devices are removed from the library after the timeout.
Constructor & Destructor Documentation
CUpnpDeviceLibrary(MUpnpDeviceLibraryObserver &, TInt)
~CUpnpDeviceLibrary()
IMPORT_C | ~CUpnpDeviceLibrary | ( | ) | |
Member Functions Documentation
AddDeviceL(CUpnpSsdpMessage *)
Add device.
- Since
- Series60 2.0
AddInfoL(const TUpnpAddLocalDevice *, const TDesC8 &, const TInetAddr &)
Adds the data of the local device to the library.
- Since
- Series60 2.0
Parameters
const TUpnpAddLocalDevice * aIndex | An indexing structure to parse the actual data |
const TDesC8 & aBuffer | A buffer containing the actual data |
const TInetAddr & aLocalAddr | Local address |
AddInfoL(const TUpnpAddLocalDevice *, const TDesC8 &)
Adds the data of the local device to the library.
- Since
- Series60 2.0
Parameters
const TUpnpAddLocalDevice * aIndex | An indexing structure to parse the actual data |
const TDesC8 & aBuffer | A buffer containing the actual data |
AddInfoL(CUpnpSsdpMessage *)
Adds the data of the SSDP message to the library.
- Since
- Series60 2.0
AppendLocalDeviceL(const TUpnpAddLocalDevice *, const TDesC8 &, const TInetAddr &)
Creates and appends local device.
Parameters
const TUpnpAddLocalDevice * aIndex | descriptiors positions structure needed by deserialization algorithm |
const TDesC8 & aBuffer | aBuffer CUpnpDeviceLibraryElement object in serialized form |
const TInetAddr & aLocalAddr | local address of device being added |
ConstructL()
void | ConstructL | ( | ) | [private] |
By default Symbian 2nd phase constructor is private.
DeviceList()
Returns an array containing pointers to the library elements
- Since
- Series60 2.0
Element(TDesC8 &)
Return element.
- Since
- Series60 2.0
Find(const TDesC8 &)
Returns the index of an element with matching UUID.
- Since
- Series60 2.0
Parameters
const TDesC8 & aUuid | The UUID of searched device |
GetUpdate(TInt &, TUpnpDevice *&, TUpnpService *&, TInt &, TInt &)
?member_description.
- Since
- Series60 2.0
InvalidateNonLocalDevice(CUpnpDeviceLibraryElement &)
Invalidates non local device with the same UID as local device being added
NewL(MUpnpDeviceLibraryObserver &, TInt)
PrepareShutdown()
IMPORT_C void | PrepareShutdown | ( | ) | |
Prepare for shutdown.
- Since
- Series60 2.0
RemoveAllDevicesL()
IMPORT_C void | RemoveAllDevicesL | ( | ) | |
Removes all remote devices from the device library, used for ip address changes
- Since
- Series60 3.1
RemoveDeviceL(CUpnpSsdpMessage *)
Remove Device.
- Since
- Series60 2.0
RemoveL(const TDesC8 &)
IMPORT_C void | RemoveL | ( | const TDesC8 & | aUuid | ) | |
Removes an element from the library.
- Since
- Series60 2.0
Parameters
const TDesC8 & aUuid | The UUID of the element to be removed |
RemoveSilentL(const TDesC8 &)
IMPORT_C void | RemoveSilentL | ( | const TDesC8 & | aUuid | ) | |
Removes an element from the library.
- Since
- Series60 2.0
Parameters
const TDesC8 & aUuid | The UUID of the element to be removed |
StopFilteringDeviceL(const TDesC8 &)
IMPORT_C void | StopFilteringDeviceL | ( | const TDesC8 & | aUuid | ) | |
Set device notification filtering
- Since
- Series60 3.2
Parameters
const TDesC8 & aUuid | Device Uuid |
TimeoutExpiredL(CUpnpTimeoutElement *)
From
MUpnpTimeoutElementParent Callback function. Implementation of MUpnpTimeoutElementParent::TimeoutExpired. If the element is local, it is advertised and new timeout is set. If the element describes a remote device, the device is removed from the library and observer is informed about the disappearing.
- Since
- Series60 2.0
Member Data Documentation
RPointerArray< CUpnpDeviceLibraryElement > iElementArray
MUpnpDeviceLibraryObserver & iObserver
TInt
iUpdateId
TInt
| iUpdateId | [protected] |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.