1.1 --- a/epoc32/include/remconmediainformationtargetobserver.h Tue Mar 16 16:12:26 2010 +0000
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,77 +0,0 @@
1.4 -// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 -// All rights reserved.
1.6 -// This component and the accompanying materials are made available
1.7 -// 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
1.8 -// which accompanies this distribution, and is available
1.9 -// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.10 -//
1.11 -// Initial Contributors:
1.12 -// Nokia Corporation - initial contribution.
1.13 -//
1.14 -// Contributors:
1.15 -//
1.16 -// Description:
1.17 -//
1.18 -
1.19 -
1.20 -
1.21 -/**
1.22 - @file
1.23 - @publishedAll
1.24 - @released
1.25 -*/
1.26 -
1.27 -#ifndef REMCONMEDIAINFORMATIONTARGETOBSERVER_H
1.28 -#define REMCONMEDIAINFORMATIONTARGETOBSERVER_H
1.29 -
1.30 -#include <e32base.h>
1.31 -
1.32 -enum TMediaAttributeId
1.33 - {
1.34 - ETitleOfMedia =0x1,
1.35 - ENameOfArtist =0x2,
1.36 - ENameOfAlbum =0x3,
1.37 - ETrackNumber =0x4, /* for example the CD track number */
1.38 - ENumberOfTracks =0x5, /* for example the total track number of the CD */
1.39 - EGenre =0x6,
1.40 - EPlayingTime =0x7
1.41 - };
1.42 -
1.43 -/**
1.44 - * Provide an iterator wrapper class
1.45 - */
1.46 -class TMediaAttributeIter
1.47 - {
1.48 -public:
1.49 - TMediaAttributeIter(RArray<TMediaAttributeId>& aMediaAttributeIDs);
1.50 - IMPORT_C void Start();
1.51 - IMPORT_C TBool Next(TMediaAttributeId& aId);
1.52 -
1.53 -private:
1.54 - RArray<TMediaAttributeId>& iMediaAttributeIDs;
1.55 - TInt iterator;
1.56 - };
1.57 -
1.58 -
1.59 -/**
1.60 -Clients must implement this interface in order to instantiate objects of type
1.61 -CRemConMediaInformationTarget. This interface passes incoming commands from RemCon to
1.62 -the client.
1.63 -*/
1.64 -NONSHARABLE_CLASS(MRemConMediaInformationTargetObserver)
1.65 - {
1.66 -public:
1.67 -
1.68 - /**
1.69 - For each element in aAttributeList for which the requested Metadata is available,
1.70 - the client shall respond by calling CRemConMediaInformationTarget::AttributeValue().
1.71 - After all attributes have been supplied the client shall call CRemConMediaInformationTarget::Completed().
1.72 - @param aAttributeList A CMediaAttributeIDs containing a list of TMediaAttributeIds requested by the controller
1.73 - @see CRemConMediaInformationTarget::AttributeValue()
1.74 - @see CRemConMediaInformationTarget::Completed()
1.75 - */
1.76 - virtual void MrcmitoGetCurrentlyPlayingMetadata( TMediaAttributeIter& aAttributeIter ) = 0;
1.77 -
1.78 - };
1.79 -
1.80 -#endif // REMCONMEDIAINFORMATIONTARGETOBSERVER_H