2 * Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
19 #ifndef CLFCONTENTLISTING_HRH
20 #define CLFCONTENTLISTING_HRH
25 * Content Listing Framework list model media types.
29 /// Unknown media type
30 ECLFMediaTypeUnknown = 0x0,
32 ECLFMediaTypeMusic = 0x1,
34 ECLFMediaTypeSound = 0x2,
36 ECLFMediaTypeImage = 0x3,
38 ECLFMediaTypeVideo = 0x4,
40 ECLFMediaTypeStreamingURL = 0x5,
42 ECLFMediaTypePlaylist = 0x6,
44 ECLFMediaTypePresentations = 0x8
48 * Content Listing Framework list model grouping styles.
54 /// Model groups items to music albums
55 ECLFMusicAlbumGrouping = 0x1
59 * Content Listing Framework sorting style orderings.
61 enum TCLFSortingStyleOrdering
63 /// Ascending sorting order
64 ECLFOrderingAscending = 0x0,
65 /// Descending sorting order
66 ECLFOrderingDescending = 0x1
70 * Content Listing Framework undefined item position.
72 enum TCLFUndefinedItemPosition
74 /// Undefined items are added to end in the list
75 ECLFSortingStyleUndefinedEnd = 0x0,
76 /// Undefined items are added to first in the list
77 ECLFSortingStyleUndefinedFirst = 0x1
81 * Content Listing Framework item fields data types.
85 /// Undefined data type, do not use
86 ECLFItemDataTypeNull = 0x0,
87 /// Data type is Integer
88 ECLFItemDataTypeTInt32 = 0x1,
89 /// Data type is descriptor
90 ECLFItemDataTypeDesC = 0x2,
91 /// Data type is date/time
92 ECLFItemDataTypeTTime = 0x3
96 * Content Listing Framework item field IDs.
98 enum TCLFDefaultFieldId
100 /// Null field ID, do not use
101 ECLFFieldIdNull = 0x00000000,
105 ECLFFieldIdFileName = 0x00000001,
108 ECLFFieldIdFileExtension = 0x00000002,
111 ECLFFieldIdPath = 0x00000003,
112 /// File drive field:
114 ECLFFieldIdDrive = 0x00000004,
117 ECLFFieldIdFileSize = 0x00000005,
120 ECLFFieldIdFileDate = 0x00000006,
123 ECLFFieldIdMimeType = 0x00000007,
124 /// Media type field:
126 ECLFFieldIdMediaType = 0x00000008,
127 /// Full name and path of the file:
129 ECLFFieldIdFileNameAndPath = 0x0000000B,
131 /// Music file song name:
133 ECLFFieldIdSongName = 0x00001000,
134 /// Music file artist:
136 ECLFFieldIdArtist = 0x00001001,
137 /// Music file album:
139 ECLFFieldIdAlbum = 0x00001002,
140 /// Music file genre:
142 ECLFFieldIdGenre = 0x00001003,
143 /// Music file track number:
145 ECLFFieldIdTrackNumber = 0x00001004,
146 /// Music file composer:
148 ECLFFieldIdComposer = 0x00001104,
150 /// Ram link first URL:
152 ECLFFieldIdRamLinkFirstURL = 0x00001200,
154 /// Playlist song count:
156 ECLFFieldIdPlaylistSongCount = 0x00001201