MMPXCollection Class Reference

class MMPXCollection

MPXCollection

mpxcollectionutility.lib

Member Functions Documentation

AddL(const CMPXMedia &)

voidAddL(const CMPXMedia &aNewMedia)[pure virtual]

Adds item(s) to the collection.

Since
S60 3.2.3

Parameters

const CMPXMedia & aNewMedianew item(s) to add

AddSubscriptionL(const CMPXSubscription &)

voidAddSubscriptionL(const CMPXSubscription &aSubscription)[pure virtual]

Adds a message subscription for this client.

Since
S60 3.2.3

Parameters

const CMPXSubscription & aSubscriptionsubscription to be added

BackL()

voidBackL()[pure virtual]

Navigates back to the container of the current items. Calls back MMPXCollectionObserver::HandleOpenL().

Since
S60 3.2.3

CancelRequest()

voidCancelRequest()[pure virtual]

Stops any async operations that are currently under way.

Since
S60 3.2.3

ClearSubscriptionsL()

voidClearSubscriptionsL()[pure virtual]

Removes all message subscriptions for this client.

Since
S60 3.2.3

CollectionIDL(TUid &)

TUid CollectionIDL(TUid &aCollection)[pure virtual]

Retrieves the real collection UID based on a predefined UID use MMPXCollectionUtility::CollectionIDL

Parameters

TUid & aCollection

CommandL(TMPXCollectionCommand, TInt)

voidCommandL(TMPXCollectionCommandaCmd,
TIntaData = 0
)[pure virtual]

Send a command to the collection server

use CommandL(CMPXCommand& aCmd)

Parameters

TMPXCollectionCommand aCmd
TInt aData = 0

CommandL(CMPXCommand &)

voidCommandL(CMPXCommand &aCmd)[pure virtual]

Send a command to the collection server.

Since
S60 3.2.3

Parameters

CMPXCommand & aCmdcommand to handle

FilterL()

CMPXFilter *FilterL()[pure virtual]

Current filter that is applied to collection browsing. i.e. results returned through MMPXCollectionObserver::HandleOpenL() callback from OpenL().

Since
S60 3.2.3

FindAllL(const CMPXSearchCriteria &, const TArray< TMPXAttribute > &, MMPXCollectionFindObserver &)

voidFindAllL(const CMPXSearchCriteria &aCriteria,
const TArray< TMPXAttribute > &aAttrs,
MMPXCollectionFindObserver &aObs
)[pure virtual]

Find a list of media properties based on a search criteria. The types of supported "queries" are collection dependent. Callback via MMPXCollectionFindObserver::HandleFindL();

Since
S60 3.2.3

Parameters

const CMPXSearchCriteria & aCriteriacriteria to search on
const TArray< TMPXAttribute > & aAttrsattributes to return
MMPXCollectionFindObserver & aObsobserver for find callback

FindAllL(const CMPXSearchCriteria &, const TArray< TMPXAttribute > &)

CMPXMedia *FindAllL(const CMPXSearchCriteria &aCriteria,
const TArray< TMPXAttribute > &aAttrs
)[pure virtual]

Find a list of media properties based on a search criteria. The types of supported "queries" are collection dependent. This is a SYNCHRONOUS METHOD, use only if necessary.

Since
S60 3.2.3

Parameters

const CMPXSearchCriteria & aCriteriacriteria to search on
const TArray< TMPXAttribute > & aAttrsattributes to return

GetSupportedCapabilitiesL(TCollectionCapability &)

voidGetSupportedCapabilitiesL(TCollectionCapability &aCapability)[pure virtual]

Fetches the capabilities supported by the current collection context.

Since
S60 3.2.3

Parameters

TCollectionCapability & aCapabilitybitmask of the capabilities supported.

GetSupportedTypesL(RPointerArray< CMPXCollectionType > &)

voidGetSupportedTypesL(RPointerArray< CMPXCollectionType > &aArray)[pure virtual]

Retrieves the list of supported types.

Since
S60 3.2.3

Parameters

RPointerArray< CMPXCollectionType > & aArrayOn return, array will be filled with collection type items

IsRemote(const CMPXCollectionPath &)

TBool IsRemote(const CMPXCollectionPath &aPath)[pure virtual]

Is this path on a 'remote' collection.

Since
S60 3.2.3 aPath the collection path

Parameters

const CMPXCollectionPath & aPath

MediaL(const CMPXCollectionPath &, const TArray< TMPXAttribute > &, CMPXAttributeSpecs *, CMPXFilter *)

voidMediaL(const CMPXCollectionPath &aPath,
const TArray< TMPXAttribute > &aAttrs,
CMPXAttributeSpecs *aSpecs = NULL,
CMPXFilter *aFilter = NULL
)[pure virtual]

Retrieve media for the item specified in the path. Note: if selection is set in aPath, HandleMedia will return an array of media of current selected items. if no selection is set in aPath, HandleMedia will return media properities of current item. Calls back MMPXCollectionObserver::HandleMediaL()

Since
S60 3.2.3

Parameters

const CMPXCollectionPath & aPaththe path of the collection
const TArray< TMPXAttribute > & aAttrsattributes requested.
CMPXAttributeSpecs * aSpecs = NULLspecifications for attributes, Ownership not transferred
CMPXFilter * aFilter = NULLfilter to apply, Ownership not transferred

NotifyL(TMPXCollectionBroadCastMsg, TInt)

voidNotifyL(TMPXCollectionBroadCastMsgaMsg,
TIntaData
)[pure virtual]

Broadcasts an event to all clients or plugins.

Since
S60 3.2.3

Parameters

TMPXCollectionBroadCastMsg aMsgevent to broadcast
TInt aDatadata to accompany the event

OpenL(TMPXOpenMode)

voidOpenL(TMPXOpenModeaMode = EMPXOpenDefault)[pure virtual]

Opens the collection in its current state.

Calls back MMPXCollectionObserver::HandleOpenL() with CMPXMedia object with ID KMPXMediaIdContainer, i.e.contains other media objects.

Since
S60 3.2.3

Parameters

TMPXOpenMode aMode = EMPXOpenDefaultopen mode

OpenL(TInt, TMPXOpenMode)

voidOpenL(TIntaIndex,
TMPXOpenModeaMode = EMPXOpenDefault
)[pure virtual]

Opens the collection at a specific index.

Calls back MMPXCollectionObserver::HandleOpenL() with CMPXMedia object with ID KMPXMediaIdContainer, i.e.contains other media objects.

Since
S60 3.2.3

Parameters

TInt aIndexthe index into the currently opened item list
TMPXOpenMode aMode = EMPXOpenDefaulttype of open mode

OpenL(const CMPXCollectionPath &, TMPXOpenMode)

voidOpenL(const CMPXCollectionPath &aPath,
TMPXOpenModeaMode = EMPXOpenDefault
)[pure virtual]

Opens the collection at a specific level.

Since
S60 3.2.3
Calls back MMPXCollectionObserver::HandleOpenL()

Parameters

const CMPXCollectionPath & aPaththe path of the collection
TMPXOpenMode aMode = EMPXOpenDefaulttype of open mode required

OpenL(TInt, const TArray< TMPXAttribute > &, TMPXOpenMode)

voidOpenL(TIntaIndex,
const TArray< TMPXAttribute > &aAttrs,
TMPXOpenModeaMode = EMPXOpenDefault
)[pure virtual]

Opens the collection at a specific index.

Calls back MMPXCollectionObserver::HandleOpenL() with CMPXMedia object with ID KMPXMediaIdContainer, i.e.contains other media objects which will contain the attribute values specified by aAttrs.

Since
S60 3.2.3

Parameters

TInt aIndexthe index into the currently opened item list
const TArray< TMPXAttribute > & aAttrsattributes requested
TMPXOpenMode aMode = EMPXOpenDefaulttype of open mode

OpenL(const CMPXCollectionPath &, const TArray< TMPXAttribute > &, TMPXOpenMode)

voidOpenL(const CMPXCollectionPath &aPath,
const TArray< TMPXAttribute > &aAttrs,
TMPXOpenModeaMode = EMPXOpenDefault
)[pure virtual]

Opens the collection at a specific level.

Calls back MMPXCollectionObserver::HandleOpenL() with CMPXMedia object with ID KMPXMediaIdContainer, i.e.contains other media objects which will contain the attribute values specified by aAttrs.

Since
S60 3.2.3

Parameters

const CMPXCollectionPath & aPaththe path of the collection
const TArray< TMPXAttribute > & aAttrsattributes requested
TMPXOpenMode aMode = EMPXOpenDefaulttype of open mode required

OpenL(const TArray< TUid > &, TMPXOpenMode)

voidOpenL(const TArray< TUid > &aUids,
TMPXOpenModeaMode = EMPXOpenDefault
)[pure virtual]

Opens the collection with a list of implementation uids to be matched. If current context matches the criteria, it will return existing browsing media; otherwise it will be back to root level and only plug-ins which match all provided uids will be returned, in priority order.

Calls back MMPXCollectionObserver::HandleOpenL() with CMPXMedia object with ID KMPXMediaIdContainer. Returned plugins will be sorted by plugin priority if mulitple plugins support aUids.

Since
S60 3.2.3

Parameters

const TArray< TUid > & aUidsarray of UIDs used to select collection plugins based on supported uids in plugin resource file.
TMPXOpenMode aMode = EMPXOpenDefaultopen mode

OpenL(const TUid &, TMPXOpenMode)

voidOpenL(const TUid &aUid,
TMPXOpenModeaMode = EMPXOpenDefault
)[pure virtual]

Opens the collection with an uid to be matched. If current context matches the criteria, it will return existing browsing media; otherwise it will be back to root level and only plug-ins which match the uid will be returned, in priority order.

Calls back MMPXCollectionObserver::HandleOpenL() with CMPXMedia object with ID KMPXMediaIdContainer. Returned plugins will be sorted by plugin priority if mulitple plugins support the uid.

Since
S60 3.2.3

Parameters

const TUid & aUidsingle UID used to select a collection
TMPXOpenMode aMode = EMPXOpenDefaultopen mode

PathL()

CMPXCollectionPath *PathL()[pure virtual]

The path of the collection in its current state. Ownsership transferred.

Since
S60 3.2.3

RemoveL(const CMPXCollectionPath &, MMPXCollectionRemoveObserver *)

voidRemoveL(const CMPXCollectionPath &aPath,
MMPXCollectionRemoveObserver *aObs = NULL
)[pure virtual]

Remove an item (or items under a group) from the collection

please use CommandL (CMPXCommand)

Parameters

const CMPXCollectionPath & aPath
MMPXCollectionRemoveObserver * aObs = NULL

RemoveL(const CMPXMedia &)

voidRemoveL(const CMPXMedia &aMedia)[pure virtual]

Removes item(s) from the collection.

Since
S60 3.2.3

Parameters

const CMPXMedia & aMediaitem(s) to remove

RemoveSubscriptionL(const CMPXSubscription &)

voidRemoveSubscriptionL(const CMPXSubscription &aSubscription)[pure virtual]

Removes a message subscription for this client.

Since
S60 3.2.3

Parameters

const CMPXSubscription & aSubscriptionsubscription to be removed.

SetFilterL(CMPXFilter *)

voidSetFilterL(CMPXFilter *aFilter)[pure virtual]

Apply a filter to collection browsing. All subsequent calls to OpenL() will have this filter applied.

Since
S60 3.2.3

Parameters

CMPXFilter * aFilterthe filter to apply, or NULL to remove current filter

SetL(const CMPXMedia &)

voidSetL(const CMPXMedia &aMedia)[pure virtual]

Sets/updates the item specified in the path, Aynchronous Callback for completion with HandleCollectionMessageL() event: TMPXCollectionMessage::EAsyncOpComplete type: EMcsSetMediaAsync data: error code

, please use CommandL(CMPXCommand& aCmd)

Parameters

const CMPXMedia & aMedia

SetSyncL(const CMPXMedia &)

voidSetSyncL(const CMPXMedia &aMedia)[pure virtual]

Sets/updates the media for the item. Callback via EMediaChanged message if currently opened.

Since
S60 3.2.3

Parameters

const CMPXMedia & aMediaupdated item

UidL()

TUid UidL()const [pure virtual]

Returns current collection plugin implementation UID.

Since
S60 3.2.3