bluetoothappprofiles/avrcp/mediabrowseapi/src/remcondatabaseunawaremedialibrarybrowse.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 <remcondatabaseunawaremedialibrarybrowse.h>
       
    25 
       
    26 /** 
       
    27 Called by the client in response to a MrcdumlboGetFolderListing() call.
       
    28 
       
    29 @param aFolderListing A listing of the items that are 
       
    30        in the range requested by the MrcdumlboGetFolderListing() call.
       
    31 
       
    32 @param aResult The result of the MrcdumlboGetFolderListing() operation.
       
    33      - KErrNone if the operation was successful.
       
    34      - KErrMediaBrowseInvalidOffset if there is no media available at the 
       
    35        offset of the start item, i.e. the start of range provided via 
       
    36        MrcdumlboGetFolderListing() is not valid.
       
    37      - System wide error code otherwise.
       
    38 */
       
    39 EXPORT_C void MRemConDatabaseUnawareMediaLibraryBrowse::MrcdumlbFolderListing(
       
    40 		const TArray<TRemConItem>& aFolderListing, 
       
    41 		TUint aResult)
       
    42 	{
       
    43 	MrcdumlbDoFolderListing(aFolderListing, aResult);
       
    44 	}
       
    45 
       
    46 /** 
       
    47 Called by the client in response to a MrcdumlboFolderUp call.
       
    48 
       
    49 @param aItemCount The number of items present in this folder.
       
    50 @param aResult The result of the MrcdumlboFolderUp operation.  
       
    51      - KErrNone if the operation was successful.
       
    52      - System wide error code otherwise.
       
    53 */
       
    54 EXPORT_C void MRemConDatabaseUnawareMediaLibraryBrowse::MrcdumlbFolderUpResult(
       
    55 		TUint aItemCount, TInt aResult)
       
    56 	{
       
    57 	MrcdumlbDoFolderUpResult(aItemCount, aResult);
       
    58 	}
       
    59 
       
    60 /** 
       
    61 Called by the client in response to a MrcdumlboFolderDown() call.
       
    62 
       
    63 @param aItemCount The number of items present in this folder.
       
    64 
       
    65 @param aResult The result of the MrcdumlboFolderDown() operation
       
    66      - KErrNone if the operation was successful.
       
    67      - KErrMediaBrowseInvalidDirection if the folder provided is not a valid 
       
    68        folder e.g. path A/B/C, the current dirctory is B, and the param 
       
    69        provided with MrcdumlboFolderDown()is A, obviously you can not change 
       
    70        folder down to A, so A is invalid.
       
    71      - KErrMediaBrowseNotADirectory if the UID provided does not refer to a 
       
    72        folder item, e.g. it is a media element.
       
    73      - KErrInvalidUid if the UID provided is invalid.
       
    74      - System wide error code otherwise.
       
    75 */
       
    76 EXPORT_C void MRemConDatabaseUnawareMediaLibraryBrowse::MrcdumlbFolderDownResult(
       
    77 		TUint aItemCount, TInt aResult)
       
    78 	{
       
    79 	MrcdumlbDoFolderDownResult(aItemCount, aResult);
       
    80 	}
       
    81 
       
    82 /** 
       
    83 Called by the client in response to a MrcdumlboGetPath() call.
       
    84 
       
    85 @param aItemCount The number of items present in this folder.
       
    86 
       
    87 @param aResult The result of the MrcdumlboGetPath() operation
       
    88      - KErrNone if the operation is successful.
       
    89      - System wide error code otherwise.
       
    90 */
       
    91 EXPORT_C void MRemConDatabaseUnawareMediaLibraryBrowse::MrcdumlbGetPathResult(
       
    92 		TUint aItemCount, 
       
    93 		TInt aResult)
       
    94 	{
       
    95 	MrcdumlbDoGetPathResult(aItemCount, aResult);
       
    96 	}
       
    97 
       
    98 /** 
       
    99 Called by the client in response to a MrcdumlboSearch() call to indicate
       
   100 that a search has completed.
       
   101  
       
   102 @param aNumberItemsFound The number of items found by the search.
       
   103 @param aResult The result of the search.  
       
   104      - KErrNone if the search completed successfully
       
   105      - System wide error otherwise.
       
   106 */
       
   107 EXPORT_C void MRemConDatabaseUnawareMediaLibraryBrowse::MrcdumlbSearchResult(
       
   108 		TUint aNumberItemsFound,
       
   109 		TInt aResult)
       
   110 	{
       
   111 	MrcdumlbDoSearchResult(aNumberItemsFound, aResult);
       
   112 	}
       
   113 
       
   114 /** 
       
   115 Called by the client to indicate changes to the media database in the client.
       
   116 */
       
   117 EXPORT_C void MRemConDatabaseUnawareMediaLibraryBrowse::MrcdumlbMediaLibraryStateChange()
       
   118 	{
       
   119 	MrcdumlbDoMediaLibraryStateChange();
       
   120 	}
       
   121 
       
   122 /**
       
   123 Called by the client in response to MrcdumlboGetItem() call in the case the
       
   124 requested item is a folder item.
       
   125 
       
   126 @param aFolderID The folder UID.
       
   127 @param aFolderName The folder name. Takes a copy of it.
       
   128 @param aFolderType The folder type.
       
   129 @param aPlayable Indicaties whether the folder is playable
       
   130      - KFolderNotPlayable the folder can not be played
       
   131      - KFolderPlayable the folder can be played
       
   132 @param aAttributes The attributes of the folder item requested by 
       
   133        MrcdumlboGetItem()
       
   134 @param aResult The result of the MrcdumlboGetItem() operation.
       
   135      - KErrNone if the operation was successful.
       
   136      - KErrInvalidUid if the uid of the item requested is invalid, 
       
   137        e.g. the client removed the item before the request 
       
   138        MrcdumlboGetItem() coming.
       
   139      - System wide error code otherwise.
       
   140 */
       
   141 EXPORT_C void MRemConDatabaseUnawareMediaLibraryBrowse::MrcdumlbFolderItemResult(
       
   142 		const TRemConItemUid& aFolderID,
       
   143 		const TDesC8& aFolderName, 
       
   144 		TFolderItemType aFolderType, 
       
   145 		TFolderItemPlayable aPlayable,
       
   146 		const TArray<TMediaElementAttribute>& aAttributes,
       
   147 		TInt aResult)
       
   148 	{
       
   149 	MrcdumlbDoFolderItemResult(aFolderID, aFolderName, aFolderType, aPlayable, aAttributes, aResult);
       
   150 	}
       
   151 
       
   152 /**
       
   153 Called by the client in response to MrcdumlboGetItem() call in the case the
       
   154 requested item is a media element item.
       
   155 
       
   156 @param aMediaID The media element UID.
       
   157 @param aMediaName The media name. Takes a copy of it.
       
   158 @param aMediaType The media type.
       
   159 @param aAttributes The attributes list. Takes a copy of it.
       
   160 @param aResult The result of the MrcdumlboGetItem() operation.
       
   161      - KErrNone if the operation was successful.
       
   162      - KErrInvalidUid if the uid of the item requested is invalid, 
       
   163        e.g. the client removed the item before the request 
       
   164        MrcdumlboGetItem() coming.
       
   165      - System wide error code otherwise.
       
   166 */
       
   167 EXPORT_C void MRemConDatabaseUnawareMediaLibraryBrowse::MrcdumlbMediaElementItemResult(
       
   168 		const TRemConItemUid& aMediaID, 
       
   169 		const TDesC8& aMediaName, 
       
   170 		TMediaItemType aMediaType, 
       
   171 		const TArray<TMediaElementAttribute>& aAttributes,
       
   172 		TInt aResult)
       
   173 	{
       
   174 	MrcdumlbDoMediaElementItemResult(aMediaID, aMediaName, aMediaType, aAttributes, aResult);
       
   175 	}
       
   176