1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 |
|
17 |
|
18 /** |
|
19 @file |
|
20 @publishedAll |
|
21 @released |
|
22 */ |
|
23 |
|
24 #include <remcondatabaseunawarenowplayingbrowse.h> |
|
25 |
|
26 /** |
|
27 Called by the client in response to a MrcdunpboGetFolderListing() call. |
|
28 |
|
29 @param aFolderListing A listing of the items that are |
|
30 in the range requested by the MrcdunpboGetFolderListing() call. If the |
|
31 media player does not natively support a Now Playing folder the listing |
|
32 will only contain one item which is the currently playing media element |
|
33 |
|
34 @param aResult The result of the MrcdunpboGetFolderListing() operation. |
|
35 - KErrNone if the operation was successful. |
|
36 - KErrMediaBrowseInvalidOffset if there is no media available at the |
|
37 offset of the start item, that is the start of range provided via |
|
38 MrcnptoGetFolderListing() is not valid. |
|
39 - System wide error code otherwise. |
|
40 */ |
|
41 EXPORT_C void MRemConDatabaseUnawareNowPlayingBrowse::MrcdunpbFolderListing( |
|
42 const TArray<TRemConItem>& aFolderListing, |
|
43 TUint aResult) |
|
44 { |
|
45 MrcdunpbDoFolderListing(aFolderListing, aResult); |
|
46 } |
|
47 |
|
48 /** |
|
49 Called by the client in response to MrcdunpboGetItem() call |
|
50 |
|
51 @param aMediaID The media element UID. |
|
52 @param aMediaName The media name. Takes a copy of it. |
|
53 @param aMediaType The media type. |
|
54 @param aAttributes The attributes list. Takes a copy of it. |
|
55 @param aResult The result of the MrcdunpboGetItem() operation. |
|
56 - KErrNone if the operation was successful. |
|
57 - KErrInvalidUid if the uid of the item requested is invalid, |
|
58 e.g. the client removed the item before the request |
|
59 MrcdunpboGetItem() coming. |
|
60 - System wide error code otherwise. |
|
61 */ |
|
62 EXPORT_C void MRemConDatabaseUnawareNowPlayingBrowse::MrcdunpbMediaElementItemResult( |
|
63 const TRemConItemUid& aMediaID, |
|
64 const TDesC8& aMediaName, |
|
65 TMediaItemType aMediaType, |
|
66 const TArray<TMediaElementAttribute>& aAttributes, |
|
67 TInt aResult) |
|
68 { |
|
69 MrcdunpbDoMediaElementItemResult(aMediaID, aMediaName, aMediaType, aAttributes, aResult); |
|
70 } |
|