epoc32/include/mw/clfcontentlisting.hrh
branchSymbian2
changeset 2 2fe1408b6811
parent 1 666f914201fb
child 4 837f303aceeb
     1.1 --- a/epoc32/include/mw/clfcontentlisting.hrh	Tue Nov 24 13:55:44 2009 +0000
     1.2 +++ b/epoc32/include/mw/clfcontentlisting.hrh	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -1,1 +1,161 @@
     1.4 -clfcontentlisting.hrh
     1.5 +/*
     1.6 +* Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies). 
     1.7 +* All rights reserved.
     1.8 +* This component and the accompanying materials are made available
     1.9 +* under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
    1.10 +* which accompanies this distribution, and is available
    1.11 +* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
    1.12 +*
    1.13 +* Initial Contributors:
    1.14 +* Nokia Corporation - initial contribution.
    1.15 +*
    1.16 +* Contributors:
    1.17 +*
    1.18 +* Description: 
    1.19 +*
    1.20 +*/
    1.21 +
    1.22 +
    1.23 +#ifndef CLFCONTENTLISTING_HRH
    1.24 +#define CLFCONTENTLISTING_HRH
    1.25 +
    1.26 +// DATA TYPES
    1.27 +
    1.28 +/**
    1.29 +*  Content Listing Framework list model media types.
    1.30 +*/
    1.31 +enum TCLFMediaType
    1.32 +    {
    1.33 +    /// Unknown media type
    1.34 +    ECLFMediaTypeUnknown        = 0x0,
    1.35 +    /// Music media type
    1.36 +    ECLFMediaTypeMusic          = 0x1,
    1.37 +    /// Sound media type
    1.38 +    ECLFMediaTypeSound          = 0x2,
    1.39 +    /// Image media type
    1.40 +    ECLFMediaTypeImage          = 0x3,
    1.41 +    /// Video media type
    1.42 +    ECLFMediaTypeVideo          = 0x4,
    1.43 +    /// Streaming URLs
    1.44 +    ECLFMediaTypeStreamingURL   = 0x5,
    1.45 +    /// Playlists
    1.46 +    ECLFMediaTypePlaylist       = 0x6,
    1.47 +    /// Presentations
    1.48 +    ECLFMediaTypePresentations  = 0x8
    1.49 +    };
    1.50 +
    1.51 +/**
    1.52 +*  Content Listing Framework list model grouping styles.
    1.53 +*/
    1.54 +enum TCLFGrouping
    1.55 +    {
    1.56 +    /// No grouping
    1.57 +    ECLFNoGrouping          = 0x0,
    1.58 +    /// Model groups items to music albums
    1.59 +    ECLFMusicAlbumGrouping  = 0x1
    1.60 +    };
    1.61 +
    1.62 +/**
    1.63 +*  Content Listing Framework sorting style orderings.
    1.64 +*/
    1.65 +enum TCLFSortingStyleOrdering
    1.66 +    {
    1.67 +    /// Ascending sorting order
    1.68 +    ECLFOrderingAscending   = 0x0,
    1.69 +    /// Descending sorting order
    1.70 +    ECLFOrderingDescending  = 0x1
    1.71 +    };
    1.72 +
    1.73 +/**
    1.74 +*  Content Listing Framework undefined item position.
    1.75 +*/
    1.76 +enum TCLFUndefinedItemPosition
    1.77 +    {
    1.78 +    /// Undefined items are added to end in the list
    1.79 +    ECLFSortingStyleUndefinedEnd   = 0x0,
    1.80 +    /// Undefined items are added to first in the list
    1.81 +    ECLFSortingStyleUndefinedFirst  = 0x1
    1.82 +    };
    1.83 +
    1.84 +/**
    1.85 +*  Content Listing Framework item fields data types.
    1.86 +*/
    1.87 +enum TCLFItemDataType
    1.88 +    {
    1.89 +    /// Undefined data type, do not use
    1.90 +    ECLFItemDataTypeNull    = 0x0,
    1.91 +    /// Data type is Integer
    1.92 +    ECLFItemDataTypeTInt32  = 0x1,
    1.93 +    /// Data type is descriptor
    1.94 +    ECLFItemDataTypeDesC    = 0x2,
    1.95 +    /// Data type is date/time
    1.96 +    ECLFItemDataTypeTTime   = 0x3
    1.97 +    };
    1.98 +
    1.99 +/**
   1.100 +*  Content Listing Framework item field IDs.
   1.101 +*/
   1.102 +enum TCLFDefaultFieldId
   1.103 +    {
   1.104 +    /// Null field ID, do not use
   1.105 +    ECLFFieldIdNull                 = 0x00000000,
   1.106 +    // File data
   1.107 +    /// File name field:
   1.108 +    /// descriptor
   1.109 +    ECLFFieldIdFileName             = 0x00000001,
   1.110 +    /// File name field:
   1.111 +    /// descriptor
   1.112 +    ECLFFieldIdFileExtension        = 0x00000002,
   1.113 +    /// File path field:
   1.114 +    /// descriptor
   1.115 +    ECLFFieldIdPath                 = 0x00000003,
   1.116 +    /// File drive field:
   1.117 +    /// descriptor
   1.118 +    ECLFFieldIdDrive                = 0x00000004,
   1.119 +    /// File size field:
   1.120 +    /// integer
   1.121 +    ECLFFieldIdFileSize             = 0x00000005,
   1.122 +    /// File date field:
   1.123 +    /// date/time
   1.124 +    ECLFFieldIdFileDate             = 0x00000006,
   1.125 +    /// Mime type field:
   1.126 +    /// descriptor
   1.127 +    ECLFFieldIdMimeType             = 0x00000007,
   1.128 +    /// Media type field:
   1.129 +    /// integer
   1.130 +    ECLFFieldIdMediaType            = 0x00000008,
   1.131 +    /// Full name and path of the file:
   1.132 +    /// descriptor
   1.133 +    ECLFFieldIdFileNameAndPath      = 0x0000000B,
   1.134 +
   1.135 +    /// Music file song name:
   1.136 +    /// descriptor
   1.137 +    ECLFFieldIdSongName             = 0x00001000,
   1.138 +    /// Music file artist:
   1.139 +    /// descriptor
   1.140 +    ECLFFieldIdArtist               = 0x00001001,
   1.141 +    /// Music file album:
   1.142 +    /// descriptor
   1.143 +    ECLFFieldIdAlbum                = 0x00001002,
   1.144 +    /// Music file genre:
   1.145 +    /// descriptor
   1.146 +    ECLFFieldIdGenre                = 0x00001003,
   1.147 +    /// Music file track number:
   1.148 +    /// integer
   1.149 +    ECLFFieldIdTrackNumber          = 0x00001004,
   1.150 +    /// Music file composer:
   1.151 +    /// descriptor
   1.152 +    ECLFFieldIdComposer             = 0x00001104,
   1.153 +
   1.154 +    /// Ram link first URL:
   1.155 +    /// descriptor
   1.156 +    ECLFFieldIdRamLinkFirstURL      = 0x00001200,
   1.157 +
   1.158 +    /// Playlist song count:
   1.159 +    /// integer
   1.160 +    ECLFFieldIdPlaylistSongCount    = 0x00001201
   1.161 +    };
   1.162 +
   1.163 +#endif
   1.164 +
   1.165 +// End of File