CUpnpContentDirectoryService Class Reference
class CUpnpContentDirectoryService : public CBase
|
Content Directory factory class.
?library
-
Since
-
Series60 3.1
Inherits from
-
CUpnpContentDirectoryService
Constructor & Destructor Documentation
CUpnpContentDirectoryService()
CUpnpContentDirectoryService
|
(
|
)
|
[private]
|
~CUpnpContentDirectoryService()
~CUpnpContentDirectoryService
|
(
|
)
|
[virtual]
|
Member Functions Documentation
AddressChangeL()
IMPORT_C void
|
AddressChangeL
|
(
|
)
|
|
Handles address change event used only by media server engine
CheckDbL()
void
|
CheckDbL
|
(
|
)
|
[private]
|
Checks if data base is created if not tries to recover it if fails leaves
ConstructL(TUpnpCdSettings)
void
|
ConstructL
|
(
|
TUpnpCdSettings
|
aSettings
|
)
|
[private]
|
By default Symbian 2nd phase constructor is private.
Parameters
TUpnpCdSettings aSettings
|
|
ConstructL()
void
|
ConstructL
|
(
|
)
|
[private]
|
GetAddress()
IMPORT_C
TInetAddr
|
GetAddress
|
(
|
)
|
|
GetContainerListL(TInt, CUpnpBrowseCriteria *, TInt *, CUpnpContainerList *)
Gets containers information according to supported browse criteria. Note: There are only two possible values of filter:
Parameters
TInt
aContainerId
|
id of the container of which items are to be returned
|
CUpnpBrowseCriteria
* aBrowseCriteria
|
specifies request details, such as requestCount, startingIndes, filter
|
TInt
* aTotalMatches
|
total matches
|
CUpnpContainerList
* aContainerList
|
reference to item list where information is updated.
|
GetContentDirectory()
IMPORT_C CUpnpContentDirectory *
|
GetContentDirectory
|
(
|
)
|
|
Gets pointer to CUpnpContentDirectory
GetItemListL(TInt, CUpnpBrowseCriteria *, TInt *, CUpnpItemList *)
Gets items information according to supported browse criteria. Note: There are only two possible values of filter:
Parameters
TInt
aContainerId
|
id of the container of which items are to be returned
|
CUpnpBrowseCriteria
* aBrowseCriteria
|
specifies request details, such as requestCount, startingIndes, filter
|
TInt
* aTotalMatches
|
|
CUpnpItemList
* aItemList
|
reference to item list where information is updated.
|
GetSharedItemL(TInt)
Gets shared item information from MediaServer. This operation returns all properties. Browse criteria is not used. Information is returned to item reference.
GetSingleContainerL(TInt)
Gets container information Nested container and items are not returned. This operation returns all properties. Browse criteria is not used.
Parameters
TInt
aContainerId
|
container id
|
HandleDbErrorL(TInt)
void
|
HandleDbErrorL
|
(
|
TInt
|
aError
|
)
|
[private]
|
Database corruption recovery handlers
IsOnlineMode()
TBool
|
IsOnlineMode
|
(
|
)
|
[private]
|
Checks if server is in online mode
NewL(TUpnpCdSettings)
Two-phased constructor for creating Content Directory Service (CDS).
-
Since
-
Series60 3.1
Parameters
TUpnpCdSettings aSettings
|
|
NewL()
Two-phased constructor for offline mode.
-
Since
-
Series60 3.1
NewLC(TUpnpCdSettings)
Two-phased constructor for creating Content Directory Service (CDS).
-
Since
-
Series60 3.1
Parameters
TUpnpCdSettings aSettings
|
|
NewLC()
Two-phased constructor for offline mode.
-
Since
-
Series60 3.1
RecreateDbL(TInt)
void
|
RecreateDbL
|
(
|
TInt
|
aError
|
)
|
[private]
|
SetDownloadDirectoryL(const TDesC &)
IMPORT_C void
|
SetDownloadDirectoryL
|
(
|
const
TDesC
&
|
aDownloadDir
|
)
|
|
Sets download directory
-
Since
-
Series S60 3.1
Parameters
const
TDesC
& aDownloadDir
|
this directory is going to be set as download directory
|
SetThumbnailDirectoryL(const TDesC &)
IMPORT_C void
|
SetThumbnailDirectoryL
|
(
|
const
TDesC
&
|
aDownloadDir
|
)
|
|
Sets thumbnail directory
-
Since
-
Series S60 3.1
Parameters
const
TDesC
& aDownloadDir
|
this directory is going to be set as thumbnail directory
|
ShareItemListL(CUpnpItemList *, TInt *)
Shares a list. Database transaction is committed each 11 objects created into database. This empirical value is hard coded in current implementation. If an execution of task fails when creating object (e.g. 776-th item on list) error code is retuned (aExecStatus), which points to last successfully created item index [1...total count] (e.g. aExecutionStatus = 770 last item in database is object number 770, if no object is cretated index = 0, if all are created index = total count).
For each created item respective input object is updated with:
Parameters
CUpnpItemList
* aItemList
|
reference to item list which are to be shared.
|
TInt
* aExecutionStatus
|
reference pointing to the index of item list
|
ShareObjectL(CUpnpObject *)
Shares a single object item/container. After creation input object is updated with:
ShareReferenceL(CUpnpItem *)
IMPORT_C void
|
ShareReferenceL
|
(
|
CUpnpItem
*
|
aItem
|
)
|
|
Creates a single 'reference object' upon given refId
Parameters
CUpnpItem
* aItem
|
reference object to be created
|
ShareReferenceListL(CUpnpItemList *, TInt *)
IMPORT_C void
|
ShareReferenceListL
|
(
|
CUpnpItemList
*
|
aItemList,
|
|
TInt
*
|
aExecutionStatus
|
|
)
|
|
Creates some reference items, located at specific container, pointing onto specific objects
Parameters
CUpnpItemList
* aItemList
|
'reference item' list which are to be shared
|
TInt
* aExecutionStatus
|
reference pointing to the index of item list
|
UnshareContainerL(TInt)
IMPORT_C void
|
UnshareContainerL
|
(
|
TInt
|
aContainerId
|
)
|
|
Unshares existing container from the Media Server. Container with its whole branch is removed from database regardless "restricted" property value for this container and any object in branch. Object removing is a bottom-up process. If removing of particular object fails whole operation is broken and error is returned.
Note: The iId value is not verified whether it points to a container or item. Therefore, clients must not use UnshareContainer method with ids pointing to an item or other way round.
Parameters
TInt
aContainerId
|
container which is unshared
|
UnshareItemL(TInt)
IMPORT_C void
|
UnshareItemL
|
(
|
TInt
|
aItemId
|
)
|
|
Unshares existing item from the Media Server. Item with specified id is removed from database regardless "restricted" property value.
Parameters
TInt
aItemId
|
item which is unshared
|
UnshareItemListL(RArray< TInt > &, TInt *)
IMPORT_C void
|
UnshareItemListL
|
(
|
RArray
<
TInt
> &
|
aItemList,
|
|
TInt
*
|
aExecutionStatus
|
|
)
|
|
Unshares existing items from the MediaServer. Each Item from list is removed from database regardless "restricted" property value. Database transaction is committed each 11 objects removed database. If an execution of task fails when creating object error code is retuned, which points to last successfully removed item index.
Parameters
RArray
<
TInt
> & aItemList
|
list of items which are to be unshared
|
TInt
* aExecutionStatus
|
reference pointing to the index of item list
|
Member Data Documentation
CUpnpContentDirectory * iCd
CUpnpContentDirectory *
|
iCd
|
[private]
|
CUpnpLocalStorage * iLocalStorage
CUpnpMetadataStorage * iMetadataStorage
CUpnpMetadataStorage *
|
iMetadataStorage
|
[private]
|
CUpnpTransferHandler * iTransferHandler
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.