mpxplugins/serviceplugins/playlistplugins/m3uplaylistplugin/inc/mpxm3uplaylistdefs.h
changeset 0 ff3acec5bc43
equal deleted inserted replaced
-1:000000000000 0:ff3acec5bc43
       
     1 /*
       
     2 * Copyright (c) 2006 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:  m3u playlist definitions
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef MPXM3UPLAYLISTDEFS_H
       
    21 #define MPXM3UPLAYLISTDEFS_H
       
    22 
       
    23 // CONSTANTS
       
    24 _LIT(KMPXM3UTagExtm3u, "#EXTM3U");
       
    25 _LIT(KMPXM3UTagExtinf, "#EXTINF:");
       
    26 _LIT(KMPXM3UTagExt, "#");
       
    27 _LIT(KMPXM3UPoint, ",");
       
    28 _LIT(KMPXM3ULineChange, "\n");
       
    29 _LIT(KMPXM3UAbsPath, ":\\");
       
    30 _LIT(KMPXM3UExtension, ".m3u");
       
    31 
       
    32 const TInt KMPXM3UCarriageReturn = 13;
       
    33 const TInt KMPXM3ULengthOfLineChange = 1;
       
    34 const TInt KMPXM3UMaxLengthOfExtinfStaticPart = 16;
       
    35 const TInt KMPXM3UMaxTimeEntry = 999999; // ~278 hours
       
    36 const TInt KMPXM3UNoOffset = 0;
       
    37 // A 16-bit Unicode character may take 3 bytes at maximum when encoded to UTF-8
       
    38 const TInt KMPXM3UUtf8ConvMultiplier = 3;
       
    39 
       
    40 const TInt KMPXM3UIgnoreTimeEntry = -1;
       
    41 const TInt KMPXM3UPlaylistMaxItemCount = KMaxTInt;
       
    42 
       
    43 
       
    44 const TInt KPlaylistSampleLength = 10000;     // bytes
       
    45 const TInt KPlaylistMaxSampleLength = 130000; // bytes
       
    46 const TInt KMPXM3UNumOfLinesToProcess = 200;
       
    47 const TInt KMPXM3UNumOfMediasToProcess = 200;
       
    48 
       
    49 // MODULE DATA STRUCTURES
       
    50 enum TMPXM3UPlaylistLineType
       
    51     {
       
    52     EMPXM3UPlaylistLineTypeExtinf = 1,
       
    53     EMPXM3UPlaylistLineTypePath = 2,
       
    54     EMPXM3UPlaylistLineTypeNotSupported = 3,
       
    55     EMPXM3UPlaylistLineTypeCorrupted = 4
       
    56     };
       
    57 
       
    58 #endif      // MPXM3UPLAYLISTDEFS_H   
       
    59             
       
    60 // End of File