CUpnpFileSharingBody Class Reference
|
class CUpnpFileSharingBody : public CActive
|
Implementation class for UPnP File Sharing class
MediaServerClient.lib
-
Since
-
S60 v3.1
|
Public Member Functions
|
|
|
~CUpnpFileSharingBody
()
|
|
void
|
DoCancel
()
|
|
void
|
GetSharedContainerL
(
TInt
,
CUpnpContainer
&,
TRequestStatus
&)
|
|
void
|
GetSharedContainerListL
(
TInt
,
CUpnpBrowseCriteria
&,
CUpnpContainerList
&,
TInt
&,
TRequestStatus
&)
|
|
void
|
GetSharedItemL
(
TInt
,
CUpnpItem
&,
TRequestStatus
&)
|
|
void
|
GetSharedItemListL
(
TInt
,
CUpnpBrowseCriteria
&,
CUpnpItemList
&,
TInt
&,
TRequestStatus
&)
|
|
RUpnpMediaServerClient
&
|
MediaServerClient
()
|
|
IMPORT_C
CUpnpFileSharingBody
*
|
NewL
()
|
|
TInt
|
RunError
(
TInt
)
|
|
void
|
RunL
()
|
|
void
|
ShareContainerL
(const
TDesC8
&,
CUpnpContainer
&,
TRequestStatus
&)
|
|
void
|
ShareItemL
(const
TDesC8
&,
CUpnpItem
&,
TRequestStatus
&)
|
|
void
|
ShareItemListL
(const
TDesC8
&,
CUpnpItemList
&,
TInt
&,
TRequestStatus
&)
|
|
void
|
ShareReferenceL
(
TInt
,
TInt
,
CUpnpItem
&,
TRequestStatus
&)
|
|
void
|
ShareReferenceListL
(
CUpnpItemList
&,
TInt
&,
TRequestStatus
&)
|
|
void
|
UnshareContainerL
(
TInt
,
TRequestStatus
&)
|
|
void
|
UnshareItemL
(
TInt
,
TRequestStatus
&)
|
|
void
|
UnshareItemListL
(
CUpnpItemList
&,
TInt
&,
TRequestStatus
&)
|
|
void
|
UnshareRootL
(
TRequestStatus
&)
|
|
Public Member Enumerations
|
|
enum
|
TFileSharingAction
{
ENoAction
= 1,
EShareItem
,
EShareItemResult
,
EShareContainer
,
EShareContainerResult
,
EShareItemList
,
EShareItemListResult
,
EUnshareContainer
,
EUnshareItem
,
EGetSharedItem
,
EGetSharedItemResult
,
EGetSharedItemList
,
EGetSharedItemListResult
,
EGetSharedContainer
,
EGetSharedContainerResult
,
EGetSharedContainerList
,
EGetSharedContainerListResult
,
EUnshareItemList
,
EUnshareRoot
,
EShareReference
,
EShareReferenceList
}
|
Constructor & Destructor Documentation
CUpnpFileSharingBody()
|
CUpnpFileSharingBody
|
(
|
)
|
[private]
|
~CUpnpFileSharingBody()
|
~CUpnpFileSharingBody
|
(
|
)
|
[virtual]
|
Member Functions Documentation
ConstructL()
|
void
|
ConstructL
|
(
|
)
|
[private]
|
DoCancel()
|
void
|
DoCancel
|
(
|
)
|
[virtual]
|
Cancellation of ongoing asynchronous operation
FinishGetSharedContainerL()
|
void
|
FinishGetSharedContainerL
|
(
|
)
|
[private]
|
FinishGetSharedContainerListL()
|
void
|
FinishGetSharedContainerListL
|
(
|
)
|
[private]
|
FinishGetSharedItemL()
|
void
|
FinishGetSharedItemL
|
(
|
)
|
[private]
|
FinishGetSharedItemListL()
|
void
|
FinishGetSharedItemListL
|
(
|
)
|
[private]
|
FinishShareContainerL()
|
void
|
FinishShareContainerL
|
(
|
)
|
[private]
|
FinishShareItemL()
|
void
|
FinishShareItemL
|
(
|
)
|
[private]
|
FinishShareItemListL()
|
void
|
FinishShareItemListL
|
(
|
)
|
[private]
|
FinishUnshareItemList()
|
void
|
FinishUnshareItemList
|
(
|
)
|
[private]
|
FinishUnshareObject()
|
void
|
FinishUnshareObject
|
(
|
)
|
[private]
|
FinishUnshareRoot()
|
void
|
FinishUnshareRoot
|
(
|
)
|
[private]
|
GetGetSharedContainerListResultL()
|
void
|
GetGetSharedContainerListResultL
|
(
|
)
|
[private]
|
GetGetSharedContainerResultL()
|
void
|
GetGetSharedContainerResultL
|
(
|
)
|
[private]
|
GetGetSharedItemListResultL()
|
void
|
GetGetSharedItemListResultL
|
(
|
)
|
[private]
|
GetGetSharedItemResultL()
|
void
|
GetGetSharedItemResultL
|
(
|
)
|
[private]
|
GetShareContainerResultL()
|
void
|
GetShareContainerResultL
|
(
|
)
|
[private]
|
GetShareItemListResultL()
|
void
|
GetShareItemListResultL
|
(
|
)
|
[private]
|
GetShareItemResultL()
|
void
|
GetShareItemResultL
|
(
|
)
|
[private]
|
GetSharedContainerL(TInt, CUpnpContainer &, TRequestStatus &)
Gets shared container information from MediaServer. Information is returned to container reference. Returns the complete item/container branch below the specified container id. Container id "0" (root) returns the complete CDS hierarchy.
Parameters
|
TInt
aContainerId
|
reference to container id
|
|
CUpnpContainer
& aContainer
|
|
|
TRequestStatus
& aStatus
|
reference to TRequestStatus which is completed when procedure is over
|
GetSharedContainerListL(TInt, CUpnpBrowseCriteria &, CUpnpContainerList &, TInt &, TRequestStatus &)
Gets shared container information from MediaServer. Information is returned to item list reference
Parameters
|
TInt
aContainerId
|
id of the container of which items are to be returned
|
|
CUpnpBrowseCriteria
& aBrowseCriteria
|
specifies request details, such as requestCount, startingIndes, filter
|
|
CUpnpContainerList
& aContainerList
|
reference to container list where information is updated.
|
|
TInt
& aTotalMatches
|
number of matched containers
|
|
TRequestStatus
& aStatus
|
reference to TRequestStatus which is completed when procedure is over
|
GetSharedItemL(TInt, CUpnpItem &, TRequestStatus &)
Gets shared item information from MediaServer. Information is returned to item reference
GetSharedItemListL(TInt, CUpnpBrowseCriteria &, CUpnpItemList &, TInt &, TRequestStatus &)
Gets shared items information from MediaServer. Information is returned to item list reference
Parameters
|
TInt
aContainerId
|
id of the container of which items are to be returned
|
|
CUpnpBrowseCriteria
& aBrowseCriteria
|
specifies request details, such as requestCount, startingIndes, filter
|
|
CUpnpItemList
& aItemList
|
reference to item list where information is updated.
|
|
TInt
& aTotalMatches
|
number of matched items
|
|
TRequestStatus
& aStatus
|
reference to TRequestStatus which is completed when procedure is over
|
HandleError()
|
void
|
HandleError
|
(
|
)
|
[private]
|
LeaveIfBusyL()
|
void
|
LeaveIfBusyL
|
(
|
)
|
[private]
|
MediaServerClient()
Returns reference to media server client
ShareContainerL(const TDesC8 &, CUpnpContainer &, TRequestStatus &)
Shares a container asynchronously to MediaServer. One container can contain items and other containers. Metadata is fetched for the items within the interface. When API call returns, container hierarchy contains updated information.
Parameters
|
const
TDesC8
& aParentId
|
|
|
CUpnpContainer
& aContainer
|
reference to container which is shared.
|
|
TRequestStatus
& aStatus
|
reference to TRequestStatus which is completed when procedure is over
|
ShareItemL(const TDesC8 &, CUpnpItem &, TRequestStatus &)
Shares a single item asynchronously to MediaServer. Metadata is fetched for the item within the interface. When API call returns, item contains updated information.
Parameters
|
const
TDesC8
& aParentId
|
|
|
CUpnpItem
& aItem
|
reference to item which is shared.
|
|
TRequestStatus
& aStatus
|
reference to TRequestStatus which is completed when procedure is over
|
ShareItemListL(const TDesC8 &, CUpnpItemList &, TInt &, TRequestStatus &)
Shares item list to the MediaServer
Parameters
|
const
TDesC8
& aParentId
|
information to which container the item is shared.
|
|
CUpnpItemList
& aItemList
|
reference to item list which are to be shared.
|
|
TInt
& aExecStatus
|
reference pointing to the index of item list
|
|
TRequestStatus
& aStatus
|
reference to TRequestStatus which is completed when procedure is over
|
ShareReferenceL(TInt, TInt, CUpnpItem &, TRequestStatus &)
Creates a single reference to passed item asynchronously in Media Server.
Parameters
|
TInt
aContainerId
|
- container id upon which the reference will be located.
|
|
TInt
aObjectId
|
- the reference is created on the basis of passed object id
|
|
CUpnpItem
& aItem
|
reference item to be filled
|
|
TRequestStatus
& aStatus
|
reference to TRequestStatus which is completed when procedure is over
|
ShareReferenceListL(CUpnpItemList &, TInt &, TRequestStatus &)
Creates reference items, located at specific container, pointing specific objects
Parameters
|
CUpnpItemList
& aItemList
|
'reference item' list which are to be shared
|
|
TInt
& aExecStatus
|
reference pointing to the index of item list
|
|
TRequestStatus
& aStatus
|
reference to TRequestStatus which is completed when procedure is over
|
UnshareContainerL(TInt, TRequestStatus &)
Unshares existing container from the MediaServer
Parameters
|
TInt
aContainerId
|
reference to container which is unshared
|
|
TRequestStatus
& aStatus
|
reference to TRequestStatus which is completed when procedure is over
|
UnshareItemL(TInt, TRequestStatus &)
Unshares existing item from the MediaServer
UnshareItemListL(CUpnpItemList &, TInt &, TRequestStatus &)
Unshares existing item list from the MediaServer
Parameters
|
CUpnpItemList
& aItemList
|
reference to item list which are to be shared.
|
|
TInt
& aExecStatus
|
reference pointing to the index of item list
|
|
TRequestStatus
& aStatus
|
reference to TRequestStatus which is completed when procedure is over
|
UnshareRootL(TRequestStatus &)
Member Enumerations Documentation
Enum TFileSharingAction
Enumerators
|
ENoAction = 1
|
|
|
EShareItem
|
|
|
EShareItemResult
|
|
|
EShareContainer
|
|
|
EShareContainerResult
|
|
|
EShareItemList
|
|
|
EShareItemListResult
|
|
|
EUnshareContainer
|
|
|
EUnshareItem
|
|
|
EGetSharedItem
|
|
|
EGetSharedItemResult
|
|
|
EGetSharedItemList
|
|
|
EGetSharedItemListResult
|
|
|
EGetSharedContainer
|
|
|
EGetSharedContainerResult
|
|
|
EGetSharedContainerList
|
|
|
EGetSharedContainerListResult
|
|
|
EUnshareItemList
|
|
|
EUnshareRoot
|
|
|
EShareReference
|
|
|
EShareReferenceList
|
|
Member Data Documentation
CUpnpContainer * iClientContainer
CUpnpContainerList * iClientContainerList
TPckg< TInt > * iClientExecStatusPkg
|
TPckg
<
TInt
> *
|
iClientExecStatusPkg
|
[private]
|
CUpnpItemList * iClientItemList
TRequestStatus * iClientStatus
RUpnpMediaServerClient
iMediaServer
TFileSharingAction
iPendingAction
HBufC8 * iReceiveBuffer
|
HBufC8
*
|
iReceiveBuffer
|
[private]
|
TPtr8
iReceiveBufferPtr
|
TPtr8
|
iReceiveBufferPtr
|
[private]
|
TInt
iRespBufSize
|
TInt
|
iRespBufSize
|
[private]
|
TPckg< TInt > iRespBufSizePkg
HBufC8 * iSendBuffer
|
HBufC8
*
|
iSendBuffer
|
[private]
|
TPtr8
iSendBufferPtr
|
TPtr8
|
iSendBufferPtr
|
[private]
|
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.