1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/mw/remconmediaattributeid.h Wed Mar 31 12:33:34 2010 +0100
1.3 @@ -0,0 +1,59 @@
1.4 +// Copyright (c) 2008-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 "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.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 REMCONMEDIAATTRIBUTEID_H_
1.28 +#define REMCONMEDIAATTRIBUTEID_H_
1.29 +
1.30 +#include <e32base.h>
1.31 +
1.32 +const TInt KMediaAttributeNum = 7;
1.33 +enum TMediaAttributeId
1.34 + {
1.35 + ETitleOfMedia =0x1,
1.36 + ENameOfArtist =0x2,
1.37 + ENameOfAlbum =0x3,
1.38 + ETrackNumber =0x4, /* for example the CD track number */
1.39 + ENumberOfTracks =0x5, /* for example the total track number of the CD */
1.40 + EGenre =0x6,
1.41 + EPlayingTime =0x7
1.42 + };
1.43 +
1.44 +/**
1.45 + * Provide an iterator wrapper class
1.46 + */
1.47 +class TMediaAttributeIter
1.48 + {
1.49 +public:
1.50 + /**
1.51 + @internalTechnology
1.52 + */
1.53 + IMPORT_C TMediaAttributeIter(RArray<TMediaAttributeId>& aMediaAttributeIDs);
1.54 + IMPORT_C void Start();
1.55 + IMPORT_C TBool Next(TMediaAttributeId& aId);
1.56 +
1.57 +private:
1.58 + RArray<TMediaAttributeId>& iMediaAttributeIDs;
1.59 + TInt iterator;
1.60 + };
1.61 +
1.62 +#endif /*REMCONMEDIAATTRIBUTEID_H_*/