1 // Copyright (c) 2007-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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
24 #ifndef REMCONMEDIAINFORMATIONTARGETOBSERVER_H
25 #define REMCONMEDIAINFORMATIONTARGETOBSERVER_H
29 enum TMediaAttributeId
34 ETrackNumber =0x4, /* for example the CD track number */
35 ENumberOfTracks =0x5, /* for example the total track number of the CD */
41 * Provide an iterator wrapper class
43 class TMediaAttributeIter
46 TMediaAttributeIter(RArray<TMediaAttributeId>& aMediaAttributeIDs);
47 IMPORT_C void Start();
48 IMPORT_C TBool Next(TMediaAttributeId& aId);
51 RArray<TMediaAttributeId>& iMediaAttributeIDs;
57 Clients must implement this interface in order to instantiate objects of type
58 CRemConMediaInformationTarget. This interface passes incoming commands from RemCon to
61 NONSHARABLE_CLASS(MRemConMediaInformationTargetObserver)
66 For each element in aAttributeList for which the requested Metadata is available,
67 the client shall respond by calling CRemConMediaInformationTarget::AttributeValue().
68 After all attributes have been supplied the client shall call CRemConMediaInformationTarget::Completed().
69 @param aAttributeList A CMediaAttributeIDs containing a list of TMediaAttributeIds requested by the controller
70 @see CRemConMediaInformationTarget::AttributeValue()
71 @see CRemConMediaInformationTarget::Completed()
73 virtual void MrcmitoGetCurrentlyPlayingMetadata( TMediaAttributeIter& aAttributeIter ) = 0;
77 #endif // REMCONMEDIAINFORMATIONTARGETOBSERVER_H