MGlxMediaList Class Reference
MGlxMediaList
Interface for reading lists of media items
glxmedialists.lib
Constructor & Destructor Documentation
~MGlxMediaList()
~MGlxMediaList | ( | ) | [inline, virtual] |
Member Functions Documentation
AddContextL(const MGlxFetchContext *, TInt)
Registers a context that affects the behavior of attribute and thumbnail loading.
Parameters
const MGlxFetchContext * aContext | context to register |
TInt aPriority | priority of the context. The higher the more important. |
AddMediaListObserverL(MGlxMediaListObserver *)
Add an observer that observes changes to the list. This observer will be informed whenever the items in the list change, more items get added, or items get deleted, or the focus changes.
AddStaticItemL(CGlxMedia *, NGlxListDefs::TInsertionPosition)
Adds a static item and takes ownership Note: In case of a leave, aStaticItem may have been modified. It is assumed that since ownership of the static item is passed, the object is free to be modified.
CancelCommand()
void | CancelCommand | ( | ) | [pure virtual] |
Cancels a command on the collection
CancelPreviousRequests()
void | CancelPreviousRequests | ( | ) | [pure virtual] |
Cancel the pending requests
Close()
void | Close | ( | ) | [pure virtual] |
Releases a media list interface
CommandL(CMPXCommand &)
Sends a command to the collection
Parameters
CMPXCommand & aCommand | MPX command from a command handler |
Count(NGlxListDefs::TCountType)
Count of media items in the list
FocusIndex()
TInt
| FocusIndex | ( | ) | const [pure virtual] |
Id()
Id of this reader interface. The id of each _existing_ reader interface is guaranteed to be unique, but new readers can reuse the ids of deleted ones.
IdSpaceId(TInt)
The Id Space Id of the media list.
Parameters
TInt aIndex | index of the item in the list |
Index(const TGlxIdSpaceId &, const TGlxMediaId &)
Item index by media item id If the item is not within the preload (or visible) range returns KErrNotFound. The item may still exist in the full list. This behavior can be changed, if there is a use case.
InstanceL(const CMPXCollectionPath &, const TGlxHierarchyId &, CMPXFilter *)
Returns a new/existing media list interface.
Returns an existing instance if and only if the hierarchy id and path are the same. Otherwise a new instance is returned
Filter is only used when a new media list is created, otherwise it is ignored.
The new/existing media list is set as highest priority list
IsPopulated()
TBool
| IsPopulated | ( | ) | const [pure virtual] |
Returns ETrue if the media list has been populated else EFalse
IsSelected(TInt)
TBool
| IsSelected | ( | TInt | aIndex | ) | const [pure virtual] |
Determines if an item has been selected
Parameters
TInt aIndex | Index of the item to be checked for selection |
IsStaticItemsEnabled()
TBool
| IsStaticItemsEnabled | ( | ) | const [pure virtual] |
Tests if static items are enabled.
Item(TInt)
const TGlxMedia & | Item | ( | TInt | aIndex | ) | const [pure virtual] |
Media item at index. It is not legal to access items outside the preload (or visible) range.
Parameters
TInt aIndex | index of the item in the list |
PathLC(NGlxListDefs::TPathType)
Current path, including selection. Ownership passed to caller.
RemoveContext(const MGlxFetchContext *)
Removes an existing context
RemoveMediaListObserver(MGlxMediaListObserver *)
Removes a media item list observer from the observer list
RemoveStaticItem(const TGlxMediaId &)
void | RemoveStaticItem | ( | const TGlxMediaId & | aItemId | ) | [pure virtual] |
Remove static item from the list.
ResetFocus()
void | ResetFocus | ( | ) | [pure virtual] |
Resets the focus to the initial position
SelectedItemIndex(TInt)
TInt
| SelectedItemIndex | ( | TInt | aSelectionIndex | ) | const [pure virtual] |
Selected item index from selection
Parameters
TInt aSelectionIndex | Index in selection array |
SelectionCount()
TInt
| SelectionCount | ( | ) | const [pure virtual] |
SetFilterL(CMPXFilter *)
Sets a filter on the collection. The filter will replace any existing filter applied on the collection. If a client needs an aggregate filter, they will need to obtain the currently applied filter using Filter() and merge the filters
Parameters
CMPXFilter * aFilter | MPX filter on the collection. Ownership passed to media list |
SetFocusInitialPosition(NGlxListDefs::TFocusInitialPosition)
Sets the initial focus position, first or last item
SetFocusL(NGlxListDefs::TFocusSetType, TInt)
Sets the focus. The implementation of this function is required to call MGlxMediaListObserver::HandleFocusChangedL for all added observers. Calling this function will cause the item window to be updated and potentially properties and thumbnails to be loaded.
SetSelectedL(TInt, TBool)
void | SetSelectedL | ( | TInt | aIndex, |
| TBool | aSelected |
| ) | [pure virtual] |
Item selection/deselection
Parameters
TInt aIndex | Index of the item to be selected/deselected |
TBool aSelected | Boolean to indicate selection/deselection |
SetStaticItemsEnabled(TBool)
void | SetStaticItemsEnabled | ( | TBool | aEnabled | ) | [pure virtual] |
Enables or disables static items
Parameters
TBool aEnabled | true if static items should be enabled false if static items should be disabled |
SetVisibleWindowIndexL(TInt)
void | SetVisibleWindowIndexL | ( | TInt | aIndex | ) | [pure virtual] |
Sets the dataWindow position. The implementation of this function is required for the item window to be updated while blocky iterator is used and potentially properties and thumbnails to be loaded.
Parameters
TInt aIndex | value of the dataWindow change |
UnmarkAllL(MGlxMediaList &)
Unmarks all items in the medialist.
VisibleWindowIndex()
TInt
| VisibleWindowIndex | ( | ) | const [pure virtual] |
Current visible dataWindow position
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.