|
1 /* |
|
2 * Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
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". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CLFCONTENTLISTING_HRH |
|
20 #define CLFCONTENTLISTING_HRH |
|
21 |
|
22 // DATA TYPES |
|
23 |
|
24 /** |
|
25 * Content Listing Framework list model media types. |
|
26 */ |
|
27 enum TCLFMediaType |
|
28 { |
|
29 /// Unknown media type |
|
30 ECLFMediaTypeUnknown = 0x0, |
|
31 /// Music media type |
|
32 ECLFMediaTypeMusic = 0x1, |
|
33 /// Sound media type |
|
34 ECLFMediaTypeSound = 0x2, |
|
35 /// Image media type |
|
36 ECLFMediaTypeImage = 0x3, |
|
37 /// Video media type |
|
38 ECLFMediaTypeVideo = 0x4, |
|
39 /// Streaming URLs |
|
40 ECLFMediaTypeStreamingURL = 0x5, |
|
41 /// Playlists |
|
42 ECLFMediaTypePlaylist = 0x6, |
|
43 /// Presentations |
|
44 ECLFMediaTypePresentations = 0x8 |
|
45 }; |
|
46 |
|
47 /** |
|
48 * Content Listing Framework list model grouping styles. |
|
49 */ |
|
50 enum TCLFGrouping |
|
51 { |
|
52 /// No grouping |
|
53 ECLFNoGrouping = 0x0, |
|
54 /// Model groups items to music albums |
|
55 ECLFMusicAlbumGrouping = 0x1 |
|
56 }; |
|
57 |
|
58 /** |
|
59 * Content Listing Framework sorting style orderings. |
|
60 */ |
|
61 enum TCLFSortingStyleOrdering |
|
62 { |
|
63 /// Ascending sorting order |
|
64 ECLFOrderingAscending = 0x0, |
|
65 /// Descending sorting order |
|
66 ECLFOrderingDescending = 0x1 |
|
67 }; |
|
68 |
|
69 /** |
|
70 * Content Listing Framework undefined item position. |
|
71 */ |
|
72 enum TCLFUndefinedItemPosition |
|
73 { |
|
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 |
|
78 }; |
|
79 |
|
80 /** |
|
81 * Content Listing Framework item fields data types. |
|
82 */ |
|
83 enum TCLFItemDataType |
|
84 { |
|
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 |
|
93 }; |
|
94 |
|
95 /** |
|
96 * Content Listing Framework item field IDs. |
|
97 */ |
|
98 enum TCLFDefaultFieldId |
|
99 { |
|
100 /// Null field ID, do not use |
|
101 ECLFFieldIdNull = 0x00000000, |
|
102 // File data |
|
103 /// File name field: |
|
104 /// descriptor |
|
105 ECLFFieldIdFileName = 0x00000001, |
|
106 /// File name field: |
|
107 /// descriptor |
|
108 ECLFFieldIdFileExtension = 0x00000002, |
|
109 /// File path field: |
|
110 /// descriptor |
|
111 ECLFFieldIdPath = 0x00000003, |
|
112 /// File drive field: |
|
113 /// descriptor |
|
114 ECLFFieldIdDrive = 0x00000004, |
|
115 /// File size field: |
|
116 /// integer |
|
117 ECLFFieldIdFileSize = 0x00000005, |
|
118 /// File date field: |
|
119 /// date/time |
|
120 ECLFFieldIdFileDate = 0x00000006, |
|
121 /// Mime type field: |
|
122 /// descriptor |
|
123 ECLFFieldIdMimeType = 0x00000007, |
|
124 /// Media type field: |
|
125 /// integer |
|
126 ECLFFieldIdMediaType = 0x00000008, |
|
127 /// Full name and path of the file: |
|
128 /// descriptor |
|
129 ECLFFieldIdFileNameAndPath = 0x0000000B, |
|
130 |
|
131 /// Music file song name: |
|
132 /// descriptor |
|
133 ECLFFieldIdSongName = 0x00001000, |
|
134 /// Music file artist: |
|
135 /// descriptor |
|
136 ECLFFieldIdArtist = 0x00001001, |
|
137 /// Music file album: |
|
138 /// descriptor |
|
139 ECLFFieldIdAlbum = 0x00001002, |
|
140 /// Music file genre: |
|
141 /// descriptor |
|
142 ECLFFieldIdGenre = 0x00001003, |
|
143 /// Music file track number: |
|
144 /// integer |
|
145 ECLFFieldIdTrackNumber = 0x00001004, |
|
146 /// Music file composer: |
|
147 /// descriptor |
|
148 ECLFFieldIdComposer = 0x00001104, |
|
149 |
|
150 /// Ram link first URL: |
|
151 /// descriptor |
|
152 ECLFFieldIdRamLinkFirstURL = 0x00001200, |
|
153 |
|
154 /// Playlist song count: |
|
155 /// integer |
|
156 ECLFFieldIdPlaylistSongCount = 0x00001201 |
|
157 }; |
|
158 |
|
159 #endif |
|
160 |
|
161 // End of File |