bluetoothappprofiles/avrcp/mediabrowseapi/src/remcondatabaseawarenowplayingbrowse.cpp
changeset 70 f5508c13dfe0
parent 67 16e4b9007960
child 71 083fd884d7dd
equal deleted inserted replaced
67:16e4b9007960 70:f5508c13dfe0
     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 <remcondatabaseawarenowplayingbrowse.h>
       
    25 
       
    26 /** 
       
    27 Called by the client in response to a MrcdanpboGetFolderListing() call.
       
    28 
       
    29 @param aFolderListing A listing of the items that are 
       
    30        in the range requested by the MrcdanpboGetFolderListing() 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 aMediaLibraryStateCookie The current value of the state cookie.
       
    35 @param aResult The result of the MrcdanpboGetFolderListing() operation.
       
    36      - KErrNone if the operation was successful.
       
    37      - KErrMediaBrowseInvalidOffset if there is no media available at the 
       
    38        offset of the start item, i.e. the start of range provided via 
       
    39        MrcdanpboGetFolderListing() is not valid. 
       
    40      - System wide error code otherwise.
       
    41 */
       
    42 EXPORT_C void MRemConDatabaseAwareNowPlayingBrowse::MrcdanpbFolderListing(
       
    43 		const TArray<TRemConItem>& aFolderListing, 
       
    44 		TUint16 aMediaLibraryStateCookie, 
       
    45 		TUint aResult)
       
    46 	{
       
    47 	MrcdanpbDoFolderListing(aFolderListing, aMediaLibraryStateCookie, aResult);
       
    48 	}
       
    49 
       
    50 /**
       
    51 Called by the client in response to MrcdanpboGetItem() call 
       
    52 
       
    53 @param aMediaID The media element UID.
       
    54 @param aMediaName The media name. Takes a copy of it.
       
    55 @param aMediaType The media type.
       
    56 @param aAttributes The attributes list. Takes a copy of it.
       
    57 @param aResult The result of the MrcdanpboGetItem() operation.
       
    58      - KErrNone if the operation was successful.
       
    59      - KErrInvalidMediaLibraryStateCookie if the media library state cookie 
       
    60        does not match the client's state cookie.
       
    61      - KErrInvalidUid if the uid of the item requested is invalid, 
       
    62        e.g. the client removed the item before the request 
       
    63        MrcdanpboGetItem() coming.
       
    64      - System wide error code otherwise.
       
    65 */
       
    66 EXPORT_C void MRemConDatabaseAwareNowPlayingBrowse::MrcdanpbMediaElementItemResult(
       
    67 		const TRemConItemUid& aMediaID, 
       
    68 		const TDesC8& aMediaName, 
       
    69 		TMediaItemType aMediaType, 
       
    70 		const TArray<TMediaElementAttribute>& aAttributes,
       
    71 		TInt aResult)
       
    72 	{
       
    73 	MrcdanpbDoMediaElementItemResult(aMediaID, aMediaName, aMediaType, aAttributes, aResult);
       
    74 	}