equal
deleted
inserted
replaced
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 #ifndef REMCONMEDIAATTRIBUTEID_H_ |
|
25 #define REMCONMEDIAATTRIBUTEID_H_ |
|
26 |
|
27 #include <e32base.h> |
|
28 |
|
29 const TInt KMediaAttributeNum = 7; |
|
30 enum TMediaAttributeId |
|
31 { |
|
32 ETitleOfMedia =0x1, |
|
33 ENameOfArtist =0x2, |
|
34 ENameOfAlbum =0x3, |
|
35 ETrackNumber =0x4, /* for example the CD track number */ |
|
36 ENumberOfTracks =0x5, /* for example the total track number of the CD */ |
|
37 EGenre =0x6, |
|
38 EPlayingTime =0x7 |
|
39 }; |
|
40 |
|
41 /** |
|
42 * Provide an iterator wrapper class |
|
43 */ |
|
44 class TMediaAttributeIter |
|
45 { |
|
46 public: |
|
47 /** |
|
48 @internalTechnology |
|
49 */ |
|
50 IMPORT_C TMediaAttributeIter(RArray<TMediaAttributeId>& aMediaAttributeIDs); |
|
51 IMPORT_C void Start(); |
|
52 IMPORT_C TBool Next(TMediaAttributeId& aId); |
|
53 |
|
54 private: |
|
55 RArray<TMediaAttributeId>& iMediaAttributeIDs; |
|
56 TInt iterator; |
|
57 }; |
|
58 |
|
59 #endif /*REMCONMEDIAATTRIBUTEID_H_*/ |
|