internetradio2.0/streamsourceinc/irstreamsourceliterals.h
changeset 14 896e9dbc5f19
parent 12 608f67c22514
child 15 065198191975
equal deleted inserted replaced
12:608f67c22514 14:896e9dbc5f19
     1 /*
       
     2 * Copyright (c) 2006-2007 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:  ?Description
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef IRSTREAMSOURCELITERALS_H
       
    20 #define IRSTREAMSOURCELITERALS_H
       
    21 
       
    22 #include <e32def.h>
       
    23 
       
    24 const TInt KByteSpecifier = 1024;
       
    25 
       
    26 
       
    27 
       
    28 _LIT8( KIcyRequest, "GET %S HTTP/1.0\r\nHost: %S\r\nUser-Agent: %S\r\nAccept: */*\r\nIcy-MetaData:1\r\nConnection: close\r\n\r\n" );
       
    29 
       
    30 
       
    31 // Constants for specifying to the server to send meta info or not
       
    32 // Icy protocol specific http headers
       
    33 
       
    34 _LIT(KTcpProtocol,"tcp");
       
    35 _LIT8(KIcyName,"icy-name:");
       
    36 _LIT8(KIcyGenre,"icy-genre:");
       
    37 _LIT8(KIcyBitrate, "icy-br:");
       
    38 _LIT8(KIcyMetaint,"icy-metaint:");
       
    39 // RFC 2616 specifies this format
       
    40 _LIT8(KContentType,"Content-Type:");
       
    41 // This format is obtained from the channel server
       
    42 _LIT8(KContentTypeInvalid,"content-type:");
       
    43 _LIT8(KCarReturn,"\xD\xA");
       
    44 _LIT8(KHeaderEnd,"\xD\xA\xD\xA");
       
    45 
       
    46 // Supported content type is only of mime type audio
       
    47 _LIT8(KValidContentType,"audio/*");
       
    48 
       
    49 // Response validation
       
    50 _LIT8(KOkResponse,"200 OK");
       
    51 
       
    52 #endif //IRSTREAMSOURCELITERALS_H
       
    53