|
1 /* |
|
2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Reader interface of media item lists |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #include "mglxmedialist.h" |
|
22 #include "glxmedialist.h" |
|
23 #include <glxtracer.h> |
|
24 |
|
25 // ----------------------------------------------------------------------------- |
|
26 // Returns a new/existing media list interface |
|
27 // ----------------------------------------------------------------------------- |
|
28 EXPORT_C MGlxMediaList* MGlxMediaList::InstanceL(const CMPXCollectionPath& aPath, |
|
29 const TGlxHierarchyId& aHierarchyId, CMPXFilter* aFilter) |
|
30 { |
|
31 TRACER("MGlxMediaList::InstanceL"); |
|
32 |
|
33 return CGlxMediaList::InstanceL(aPath, aHierarchyId, aFilter); |
|
34 } |
|
35 // ----------------------------------------------------------------------------- |
|
36 // Unmark all medialist items. |
|
37 // ----------------------------------------------------------------------------- |
|
38 EXPORT_C void MGlxMediaList::UnmarkAllL( MGlxMediaList& aList ) |
|
39 { |
|
40 TRACER("MGlxMediaList::UnmarkAllL"); |
|
41 |
|
42 TInt count = aList.Count(); |
|
43 |
|
44 for ( TInt i = 0; i <= count ; i++ ) |
|
45 { |
|
46 aList.SetSelectedL( i, EFalse ); |
|
47 } |
|
48 } |
|
49 |