CUpnpDevice Class Reference
|
class CUpnpDevice : public CBase
|
Device
Prior using the
CUpnpDevice
class, client application has to create the network connection. If connection is not up and running, the CUpnpDispatcherEngine class construction will fail. See UPnP Interface Design document for instuctions.
Constructor & Destructor Documentation
~CUpnpDevice()
|
~CUpnpDevice
|
(
|
)
|
[virtual]
|
Member Functions Documentation
AddDeviceL(CUpnpDevice *)
Adds device
-
Since
-
Series60 2.6
AddDevicePropertyL(CUpnpDescriptionProperty *)
Adds a specific device property
-
Since
-
Series60 2.6
AddIcon(TInt)
Adds a icon to this device. Returns EAllIconsAdded, if all icons for this device has been downloaded. Else returns EIconAdded.
-
Since
-
Series60 2.6
Parameters
|
TInt
aSessionId
|
Session ID.
|
AddIconL(CUpnpIcon *)
Adds icon
-
Since
-
Series60 2.6
AddServiceL(TInt, CUpnpService *)
|
IMPORT_C
TServiceAdd
|
AddServiceL
|
(
|
TInt
|
aSessionId,
|
|
|
CUpnpService *
|
aService
|
|
|
)
|
|
Adds a service to this device. Returns EAllServicesAdded, if information about all services on this device has been received. Else returns EServiceAdded.
-
Since
-
Series60 2.6
Parameters
|
TInt
aSessionId
|
Session ID.
|
|
CUpnpService * aService
|
|
Address()
|
IMPORT_C
TInetAddr
|
Address
|
(
|
)
|
[virtual]
|
Returns the address of this device.
-
Since
-
Series60 2.6
Alive()
|
IMPORT_C
TBool
|
Alive
|
(
|
)
|
const
|
Getter.
-
Since
-
Series60 2.6
AttachServiceL(CUpnpService *)
|
void
|
AttachServiceL
|
(
|
CUpnpService *
|
aService
|
)
|
|
Add service to dispatcher.
-
Since
-
Series60 2.6
Parameters
|
CUpnpService * aService
|
Attached service.
|
ChangeIconSessionIdL(const TInt, const TInt)
|
TInt
|
ChangeIconSessionIdL
|
(
|
const
TInt
|
aOldSessionId,
|
|
|
const
TInt
|
aNewSessionId
|
|
|
)
|
[private]
|
This function is used for removing old icon request session id from list and adding a new one.
-
Since
-
Series60 2.6
Parameters
|
const
TInt
aOldSessionId
|
Old session id that is to be removed from list.
|
|
const
TInt
aNewSessionId
|
New session id that is to be added to list.
|
CheckIconSessionIdExist(const TInt)
|
TInt
|
CheckIconSessionIdExist
|
(
|
const
TInt
|
aSessionId
|
)
|
[private]
|
This function checks if given session id exists in
-
Since
-
Series60 2.6
Parameters
|
const
TInt
aSessionId
|
Session id that is searched from the list.
|
CleanupServiceArray()
|
void
|
CleanupServiceArray
|
(
|
)
|
|
Cleanups array
-
Since
-
Series S60 3.2
CloneL()
Makes a copy of device
-
Since
-
Series60 2.6
ConcatWithUrlBaseL(const TDesC8 &)
|
IMPORT_C
HBufC8
*
|
ConcatWithUrlBaseL
|
(
|
const
TDesC8
&
|
aUrl
|
)
|
|
Concatenate given URL with URLBase if exists
ConstructL(const TUpnpDevice *, const RPointerArray< TUpnpService > &)
By default Symbian 2nd phase constructor is private.
DescriptionProperty(const TDesC8 &)
|
IMPORT_C const
TPtrC8
|
DescriptionProperty
|
(
|
const
TDesC8
&
|
aPropertyName
|
)
|
|
XML-inferface function.
-
Since
-
Series60 2.6
DescriptionUrl()
|
IMPORT_C const
TDesC8
&
|
DescriptionUrl
|
(
|
)
|
const
|
Getter.
-
Since
-
Series60 2.6
DescriptionUrlAddressL()
|
IMPORT_C
TInetAddr
|
DescriptionUrlAddressL
|
(
|
)
|
const
|
Getter.
-
Since
-
Series60 2.6
DescriptionUrlPath()
|
IMPORT_C const
TPtrC8
|
DescriptionUrlPath
|
(
|
)
|
const
|
Getter
-
Since
-
Series60 2.6
Note:
Method for internal use.
DescriptionUrlPort()
|
IMPORT_C
TInt
|
DescriptionUrlPort
|
(
|
)
|
const
|
Getter.
-
Since
-
Series60 2.6
Note:
Method for internal use.
DetachService(CUpnpService *)
|
void
|
DetachService
|
(
|
CUpnpService *
|
aService
|
)
|
|
Removes service from iServiceList.
-
Since
-
Series60 3.2
Parameters
|
CUpnpService * aService
|
Service to detach.
|
DeviceList()
Getter (embedded devices).
-
Since
-
Series60 2.6
DeviceNetwork()
Getter.
-
Since
-
Series60 5.0
DeviceType()
|
IMPORT_C const
TPtrC8
|
DeviceType
|
(
|
)
|
|
XML-inferface function.
-
Since
-
Series60 2.6
Expired()
|
IMPORT_C
TBool
|
Expired
|
(
|
)
|
const
|
Getter.
-
Since
-
Series60 3.2
GetAllDevices(RPointerArray< CUpnpDevice > &)
Gets whole embedded hierarchy as a flat list.
-
Since
-
Series60 2.6
GetProperty(const TDesC8 &)
Get information from device description. Given parameter is name of XML-tag in device description.
Parameters
|
const
TDesC8
& aProperty
|
name of element in device description
|
IconReceiveState()
|
TIconAdd
|
IconReceiveState
|
(
|
)
|
const [inline]
|
For Control point. State of icon receiving.
-
Since
-
Series60 2.6
Icons()
Getter.
-
Since
-
Series60 2.6
Init()
General initializations, internal usage.
-
Since
-
Series60 2.6
IsEmbeddDevice()
|
IMPORT_C
TBool
|
IsEmbeddDevice
|
(
|
)
|
|
Local()
|
IMPORT_C
TBool
|
Local
|
(
|
)
|
const
|
Getter.
-
Since
-
Series60 2.6
NewL(const TUpnpDevice *, const RPointerArray< TUpnpService > &)
PresentationUrl()
|
IMPORT_C const
TPtrC8
|
PresentationUrl
|
(
|
)
|
|
This function gives <presentationUrl> value.
Remote()
|
IMPORT_C
TBool
|
Remote
|
(
|
)
|
const
|
Getter.
-
Since
-
Series60 5.0
RemoveIpAddress(const TDesC8 &)
Removes IP address in front of the url leaving only path to file.
-
Since
-
Series60 2.6
ServiceDescriptionReceiveState()
|
TServiceAdd
|
ServiceDescriptionReceiveState
|
(
|
)
|
const [inline]
|
For Control point. State of icon receiving.
-
Since
-
Series60 2.6
ServiceDescriptionUrl(const TDesC8 &)
|
IMPORT_C const
TPtrC8
|
ServiceDescriptionUrl
|
(
|
const
TDesC8
&
|
aServiceType
|
)
|
|
XML-inferface function.
-
Since
-
Series60 2.6
Parameters
|
const
TDesC8
& aServiceType
|
Type of the service.
|
ServiceId(const TDesC8 &)
|
IMPORT_C const
TPtrC8
|
ServiceId
|
(
|
const
TDesC8
&
|
aServiceType
|
)
|
|
XML-inferface function.
-
Since
-
Series60 2.6
Parameters
|
const
TDesC8
& aServiceType
|
Type of the service.
|
ServiceIdL()
Get information about service IDs
ServiceList()
Getter.
-
Since
-
Series60 2.6
ServiceTypesL()
XML-inferface function.
-
Since
-
Series60 2.6
SetAddress(const TInetAddr &)
|
IMPORT_C void
|
SetAddress
|
(
|
const
TInetAddr
&
|
aAddr
|
)
|
|
Sets the address of this device.
-
Since
-
Series60 2.6
Parameters
|
const
TInetAddr
& aAddr
|
Address.
|
SetAlive(TBool)
|
IMPORT_C void
|
SetAlive
|
(
|
TBool
|
aAlive
|
)
|
|
Setter.
-
Since
-
Series60 2.6
Parameters
|
TBool
aAlive
|
Desired TBool.
|
SetDescriptionUrlL(const TDesC8 &)
|
void
|
SetDescriptionUrlL
|
(
|
const
TDesC8
&
|
aDescriptionUrl
|
)
|
|
Sets description Url
-
Since
-
Series60 2.6
Parameters
|
const
TDesC8
& aDescriptionUrl
|
|
SetDeviceNetwork(TUpnpDeviceNetwork)
Setter.
-
Since
-
Series60 5.0
SetExpired(TBool)
|
IMPORT_C void
|
SetExpired
|
(
|
TBool
|
aAlive
|
)
|
|
Setter.
-
Since
-
Series60 3.2
Parameters
|
TBool
aAlive
|
Desired TBool.
|
SetLocal(TBool)
|
IMPORT_C void
|
SetLocal
|
(
|
TBool
|
aLocal
|
)
|
|
Setter.
-
Since
-
Series60 2.6
Parameters
|
TBool
aLocal
|
Desired TBool.
|
SetRootDevice(TBool)
|
void
|
SetRootDevice
|
(
|
TBool
|
aIsRoot
|
)
|
|
Marks out that the device is root
-
Since
-
Series60 2.6
SetTypeL(const TDesC8 &)
|
void
|
SetTypeL
|
(
|
const
TDesC8
&
|
aType
|
)
|
|
Sets type of device
-
Since
-
Series60 2.6
SetUrlBaseL(const TDesC8 &)
|
IMPORT_C void
|
SetUrlBaseL
|
(
|
const
TDesC8
&
|
aUrlBase
|
)
|
|
This function set UrlBase value if it is empty in xml document.
SetUuidL(const TDesC8 &)
|
void
|
SetUuidL
|
(
|
const
TDesC8
&
|
aUUID
|
)
|
|
Setter.
-
Since
-
Series60 3.2
Parameters
|
const
TDesC8
& aUUID
|
New device UUID.
|
UrlBase()
|
IMPORT_C const
TPtrC8
|
UrlBase
|
(
|
)
|
|
This function gives <URLBase> tag value.
Uuid()
|
IMPORT_C const
TPtrC8
|
Uuid
|
(
|
)
|
|
Getter.
-
Since
-
Series60 2.6
WaitIconL(TInt)
|
IMPORT_C void
|
WaitIconL
|
(
|
TInt
|
aSessionId
|
)
|
|
Adds aSessionId into list of currently pending icon requests.
-
Since
-
Series60 2.6
Parameters
|
TInt
aSessionId
|
Session ID.
|
WaitServiceDescriptionCount()
|
IMPORT_C
TInt
|
WaitServiceDescriptionCount
|
(
|
)
|
|
Returns count of currently pending service HTTP GET requests.
-
Since
-
Series60 2.6
WaitServiceDescriptionL(TInt)
|
IMPORT_C void
|
WaitServiceDescriptionL
|
(
|
TInt
|
aSessionId
|
)
|
|
Adds aSessionId to list, that contains sessionIds of currently pending service HTTP GET requests.
-
Since
-
Series60 2.6
Parameters
|
TInt
aSessionId
|
Session ID.
|
WaitServiceDescriptionRemoveSessionId(TInt)
|
IMPORT_C void
|
WaitServiceDescriptionRemoveSessionId
|
(
|
TInt
|
aIndex
|
)
|
|
Removes session id from device's service receiving list. This sessionId is in array position of aIndex.
-
Since
-
Series60 2.6
Parameters
|
TInt
aIndex
|
Index of sessionId.
|
WaitServiceDescriptionSessionId(TInt)
|
IMPORT_C
TInt
|
WaitServiceDescriptionSessionId
|
(
|
TInt
|
aIndex
|
)
|
|
Returns a sessionId of HTTP GET in array, that has index of aIndex.
-
Since
-
Series60 2.6
Parameters
|
TInt
aIndex
|
Index of sessionId.
|
Member Enumerations Documentation
Enum TIconAdd
Enumerators
|
ENotIconAdded
|
|
|
EIconAdded
|
|
|
EAllIconsAdded
|
|
Enum TServiceAdd
Enumerators
|
ENotServiceAdded
|
|
|
EServiceAdded
|
|
|
EAllServicesAdded
|
|
Enum TUpnpDeviceNetwork
Localization of device (local, home network or remote)
Enumerators
|
EUnknown = 0
|
|
|
ELocalDevice
|
|
|
EHomeNetwork
|
|
|
ERemoteDevice
|
|
Member Data Documentation
TInetAddr
iAddress
|
TInetAddr
|
iAddress
|
[protected]
|
HBufC8 * iClockSeq
|
HBufC8
*
|
iClockSeq
|
[protected]
|
HBufC8 * iDescriptionURL
|
HBufC8
*
|
iDescriptionURL
|
[protected]
|
HBufC * iDeviceDescription
|
HBufC
*
|
iDeviceDescription
|
[protected]
|
RPointerArray< CUpnpDevice > iDeviceList
HBufC8 * iDeviceType
|
HBufC8
*
|
iDeviceType
|
[protected]
|
TBool
iExpired
|
TBool
|
iExpired
|
[protected]
|
TIconAdd
iIconReceiveState
RArray< TInt > iIconSessionIds
RPointerArray< CUpnpIcon > iIcons
TBool
iIsAllIconsArrived
|
TBool
|
iIsAllIconsArrived
|
[protected]
|
TBool
iIsRootDevice
|
TBool
|
iIsRootDevice
|
[protected]
|
TUpnpDeviceNetwork
iNetworkType
RPointerArray< CUpnpDescriptionProperty > iProperties
TServiceAdd
iServiceDescriptionReceiveState
|
TServiceAdd
|
iServiceDescriptionReceiveState
|
[protected]
|
RArray< TInt > iServiceDescriptionSessionIds
|
RArray
<
TInt
>
|
iServiceDescriptionSessionIds
|
[protected]
|
RPointerArray< CUpnpService > iServiceList
CDesC8ArrayFlat * iServiceTypes
CDesC8ArrayFlat * iServicesId
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.