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.
18 #ifndef CLFCONTENTLISTING_RH
19 #define CLFCONTENTLISTING_RH
23 #include <CLFContentListing.hrh>
25 // STRUCTURE DEFINITIONS
27 // -----------------------------------------------------------------------------
30 // -----------------------------------------------------------------------------
34 LONG field_id; // TCLFFieldId
37 // -----------------------------------------------------------------------------
41 // RESOURCE CLF_SORTING_STYLE r_sorting_style
43 // ordering = ECLFOrderingAscending;
44 // data_type = ECLFItemDataTypeDesC;
47 // CLF_FIELD_ID { field_id = ECLFFieldIdSongName; },
48 // CLF_FIELD_ID { field_id = ECLFFieldIdAlbum; }
51 // -----------------------------------------------------------------------------
53 STRUCT CLF_SORTING_STYLE
56 LONG ordering; // TCLFSortingStyleOrdering
57 LONG data_type; // TCLFItemDataType data type of fields
58 // TCLFUndefinedItemPosition
59 BYTE undefined_item_position = ECLFSortingStyleUndefinedEnd;
60 STRUCT fields[]; // CLF_FIELD_ID
63 // -----------------------------------------------------------------------------
64 // CLF_MIME_TYPE_ARRAY
67 // RESOURCE CLF_MIME_TYPE_ARRAY r_mime_type_array
71 // LBUF { txt = "image/*"; },
72 // LBUF { txt = "audio/*"; }
75 // -----------------------------------------------------------------------------
77 STRUCT CLF_MIME_TYPE_ARRAY
80 STRUCT mime_types[]; // LBUF
83 // -----------------------------------------------------------------------------
86 // -----------------------------------------------------------------------------
90 LONG media_type; // TCLFMediaType
93 // -----------------------------------------------------------------------------
94 // CLF_MEDIA_TYPE_ARRAY
95 // List of media types
96 // -----------------------------------------------------------------------------
98 STRUCT CLF_MEDIA_TYPE_ARRAY
101 STRUCT media_types[]; // CLF_MEDIA_TYPE_ARRAY
104 // -----------------------------------------------------------------------------
108 // RESOURCE CLF_LIST_MODEL r_list_model
110 // mime_type_array = CLF_MIME_TYPE_ARRAY
114 // LBUF { txt = "image/*"; },
115 // LBUF { txt = "audio/*"; }
118 // media_type_array = CLF_MEDIA_TYPE_ARRAY
122 // CLF_MEDIA_TYPE { media_type = ECLFMediaTypeMusic; }
125 // sorting_style = CLF_SORTING_STYLE
127 // ordering = ECLFOrderingAscending;
128 // data_type = ECLFItemDataTypeDesC;
131 // CLF_FIELD_ID { field_id = ECLFFieldIdSongName; },
132 // CLF_FIELD_ID { field_id = ECLFFieldIdAlbum; }
136 // -----------------------------------------------------------------------------
138 STRUCT CLF_LIST_MODEL
141 LONG grouping = ECLFNoGrouping; // TCLFGrouping
142 STRUCT mime_type_array; // CLF_MIME_TYPE_ARRAY
143 STRUCT media_type_array; // CLF_MEDIA_TYPE_ARRAY
144 STRUCT sorting_style; // CLF_SORTING_STYLE
147 // -----------------------------------------------------------------------------
148 // CLF_MEDIA_TYPE_ARRAY
149 // List of media types version 2
150 // There can be multible sortings styles.
151 // First sorting style is primary style, all items is sorted by this style,
152 // if there is items that doesn't have field (undefined items) which is defined in
153 // primary sorting style, then second sorting style is used to those items etc.
154 // -----------------------------------------------------------------------------
156 STRUCT CLF_LIST_MODEL_V2
159 LONG grouping = ECLFNoGrouping; // TCLFGrouping
160 STRUCT mime_type_array; // CLF_MIME_TYPE_ARRAY
161 STRUCT media_type_array; // CLF_MEDIA_TYPE_ARRAY
162 STRUCT sorting_style_array[]; // array of CLF_SORTING_STYLE
166 #endif // CLFCONTENTLISTING_RH