upnp/upnpstack_plat/upnp_common_api/inc/upnpcommonupnplits.h
changeset 0 f5a58ecadc66
equal deleted inserted replaced
-1:000000000000 0:f5a58ecadc66
       
     1 /** @file
       
     2 * Copyright (c) 2005-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:  Declares string definitions
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_UPNPCOMMONUPNPLITS_H
       
    20 #define C_UPNPCOMMONUPNPLITS_H
       
    21 
       
    22 #include <e32base.h> 
       
    23 
       
    24 //CONSTANTS
       
    25 
       
    26 const TInt KLongInfoSize = 1000;
       
    27 const TInt KMaxInfoSize = 20;
       
    28 
       
    29 // LITERALS
       
    30 
       
    31 _LIT8( Keq,                 "=\"" );
       
    32 _LIT8( Kfalse,              "false" );
       
    33 _LIT8( Ktrue,               "true" );
       
    34 
       
    35 _LIT8( KClosingBracket,     ")" );
       
    36 _LIT8( KClosingBracketWithQuotation, "\")" );
       
    37 _LIT8( KColon,              ":");
       
    38 _LIT8( KComma,              "," );
       
    39 _LIT8( KEmptyString,        "" );
       
    40 _LIT8( KKorp,               "<" ); 
       
    41 _LIT8( KKorpSlash,          "</" ); 
       
    42 _LIT8( KObjectID,           "ObjectID" );
       
    43 _LIT8( KOne,                "1" );
       
    44 _LIT8( KOneNumber,          "%i" );
       
    45 _LIT8( KOneNumber8,         "%i" );
       
    46 _LIT8( KPlainLineFeed,      "\r\n" );
       
    47 _LIT8( KProk,               ">" );
       
    48 _LIT8( KSeparator,          "://" );    // from upnphttpsession.h
       
    49 _LIT8( KSpace,              " " );
       
    50 _LIT8( KSpace8,             " " );
       
    51 _LIT8( KQuotation,          "\"" ); 
       
    52 _LIT8( KQuotationWithSpace, "\" " );
       
    53 _LIT8( KZero,               "0" );
       
    54 
       
    55 // from upnphttpsession.h
       
    56 _LIT16( KBackSlash,         "\\" );
       
    57 _LIT16( KSpace16,           " " );
       
    58 _LIT16( KDoubleBackSlash,   "\\" );     // from upnphttpsessionfileserving.h
       
    59 
       
    60 // from messahandlerengine.h/(cpp)
       
    61 _LIT( KMessagehandlerPanic, "UPnP messagehandler Panic" );
       
    62 _LIT8( KEmptyMessage, " " );
       
    63 _LIT8( KMulticastPacket, " " );
       
    64 
       
    65 // from upnpdispatcherengine.h/(cpp)
       
    66 //_LIT8( KZero, "0" ); // redefinition
       
    67 _LIT16( KLanBearer, "LANBearer" );
       
    68 
       
    69 // from upnpdispatchersession.h/(cpp)
       
    70 #if defined(__HN_31__) || defined(__HN_32__)
       
    71 _LIT( KMessageHandlerFilename, "hnMessageHandler" );
       
    72 #else
       
    73 _LIT( KMessageHandlerFilename, "MessageHandler" );
       
    74 #endif
       
    75 
       
    76 
       
    77 
       
    78 
       
    79 //----------------------------------------------------------------------------------
       
    80 // Literals for logs & others & panics
       
    81 //----------------------------------------------------------------------------------
       
    82 // from upnpcm.h/(cpp)
       
    83 _LIT8( KErrorHere, "Here is an ERROR!" );
       
    84 
       
    85 // from upnphttpsessionfileserving.cpp
       
    86 _LIT8( Servedbytes,"Sent %d/%d" );
       
    87 _LIT8( NBytesServed,"Served %d bytes" );
       
    88 
       
    89 // from upnptcpsession.cpp
       
    90 _LIT8( KRunL,"RunL(), error %d" );
       
    91 
       
    92 // from upnpdispatcherengine.h/(cpp)
       
    93 _LIT8( KSendFail, "DISPATCHERENGINE *** Sending of http message fails!" );
       
    94 
       
    95 // from service.pp
       
    96 _LIT8(KPanic, "SERVICE *** Leave during service description parsing: ");
       
    97 
       
    98 
       
    99 //----------------------------------------------------------------------------------
       
   100 // *.CPP tiedostoista tulleet uudet literaalit
       
   101 //----------------------------------------------------------------------------------
       
   102 // from upnphttpserver.h
       
   103 
       
   104 _LIT8( KIndexHtml,      "index.html" );
       
   105 _LIT16( KIndexHtml16,   "index.html" );
       
   106 _LIT8( KIndexXml,       "index.xml" );
       
   107 _LIT16( KIndexXml16,    "index.xml" );
       
   108 
       
   109 
       
   110 _LIT8( KArgTypeProtocolInfo,    "A_ARG_TYPE_ProtocolInfo" );
       
   111 _LIT8( KAvtransId,              "A_ARG_TYPE_AVTransportID" );
       
   112 _LIT8( KConMan,                 "A_ARG_TYPE_ConnectionManager" );
       
   113 _LIT8( KConId,                  "A_ARG_TYPE_ConnectionID" );
       
   114 _LIT8( KConStat,                "A_ARG_TYPE_ConnectionStatus" );
       
   115 _LIT8( KDirection,                    "A_ARG_TYPE_Direction" );
       
   116 _LIT8( KProtInf,                "A_ARG_TYPE_ProtocolInfo" );
       
   117 _LIT8( KRcsId,                  "A_ARG_TYPE_RcsID" );
       
   118 
       
   119 _LIT8( KConnectionIDs,          "ConnectionIDs" );
       
   120 _LIT8( KCurConId,               "CurrentConnectionIDs" );
       
   121 _LIT8( KGetProtInfo,            "GetProtocolInfo" );
       
   122 _LIT8( KGetCurConIds,           "GetCurrentConnectionIDs" );
       
   123 _LIT8( KGetCurConInfo,          "GetCurrentConnectionInfo" );
       
   124 _LIT8( KSink,                   "Sink" );
       
   125 _LIT8( KSinkInf,                "SinkProtocolInfo" );
       
   126 _LIT8( KSource,                 "Source" );
       
   127 _LIT8( KSourceInf,              "SourceProtocolInfo" );
       
   128 _LIT8( KSupportedProtocols,     "http-get:*:*:*" );
       
   129 _LIT8( KNull,                   "NULL" );
       
   130 _LIT8( KOutput,                 "output" );
       
   131 _LIT8( KOk,                     "OK" );
       
   132 _LIT8( KTypeRcsID,              "RcsID" );
       
   133 _LIT8( KTypeAVTransportID,      "AVTransportID" );
       
   134 _LIT8( KTypeProtocolInfo,       "ProtocolInfo" );
       
   135 _LIT8( KTypePeerConnectionManager, "PeerConnectionManager" );
       
   136 _LIT8( KTypePeerConnectionID,   "PeerConnectionID" );
       
   137 _LIT8( KTypeDirection,          "Direction" );
       
   138 _LIT8( KTypeStatus,             "Status" );
       
   139 _LIT8( KArgument,               "ConnectionID" );
       
   140 _LIT8( KPrepareForConnection,   "PrepareForConnection" );
       
   141 _LIT8( KConnectionComplete,     "ConnectionComplete" );
       
   142 
       
   143 // from upnpdevice.h
       
   144 _LIT8( KControlUrl,     "controlURL" );
       
   145 _LIT8( KDevice,         "device" );
       
   146 _LIT8( KDeviceType,     "deviceType" );
       
   147 _LIT8( KDeviceList,		"deviceList" );
       
   148 _LIT8( KDotXml,         ".xml" );
       
   149 _LIT8( KFriendlyName,   "friendlyName" );
       
   150 _LIT8( KHttp,           "http://" );
       
   151 _LIT8( KIcon,           "icon" );
       
   152 _LIT8( KIconList,       "iconList");
       
   153 _LIT8( KLine,           "-" );
       
   154 _LIT8( KMask8,          "%08x" );
       
   155 _LIT8( KManufacturer,   "manufacturer" );
       
   156 _LIT8( KManufacturerUrl, "manufacturerURL" );
       
   157 _LIT8( KModelDescription, "modelDescription" );
       
   158 _LIT8( KModelName,      "modelName" );
       
   159 _LIT8( KModelNumber,    "modelNumber" );
       
   160 _LIT8( KModelUrl,       "modelURL" );
       
   161 _LIT8( KSepar,          ":" );
       
   162 _LIT8( KSerialNumber,   "serialNumber" );
       
   163 _LIT8( KService,        "service" );
       
   164 _LIT8( KServiceList,	"serviceList" );
       
   165 _LIT8( KServiceId,      "serviceId" );
       
   166 _LIT8( KServiceType,    "serviceType" );
       
   167 _LIT8( KServiceUrn,     "service:" );
       
   168 _LIT8( KServiceDescriptionUrl, "SCPDURL" );
       
   169 _LIT8( KSubscriptionUrl, "eventSubURL" );
       
   170 _LIT8( KDeviceSearch,   ":device:" );
       
   171 _LIT8( KR,              "\r" );
       
   172 _LIT8( KSlash8,         "/" );
       
   173 _LIT8( KUdn,            "UDN" );
       
   174 _LIT8( KUuid,           "uuid:" );
       
   175 _LIT8( KPresentationUrl, "presentationURL" );
       
   176 _LIT8( KUrlBase, "URLBase" );
       
   177 
       
   178 // from upnpgenamessage.h
       
   179 _LIT8( KNoHeader,       "NoHeader" );
       
   180 _LIT8( KDefaultHostPort, "80" );
       
   181 _LIT8( KSidPrefix,      "uuid:" );
       
   182 _LIT8( KTimeoutPrefix,  "Second-" );
       
   183 
       
   184 
       
   185 // from upnpcontrolpoint.h
       
   186 _LIT8( KPath,       "path" ); 
       
   187 _LIT8( KGet,        "GET" );
       
   188 _LIT8( KSeconds,    "Second-" );
       
   189 _LIT8( KMimePng,    "image/png" );
       
   190 _LIT8( KMimeJpeg,   "image/jpeg" );
       
   191 _LIT8( KUpnpPath,   "C:\\System\\Data\\UPnP\\" );
       
   192 _LIT8( KLessThan8,   "<"  ); // (8&16 bit)
       
   193 _LIT8( KGreaterThan8, ">" ); // (8&16 bit)
       
   194 
       
   195 _LIT( KMediaDriveLetter, "c:");
       
   196 	
       
   197 #endif	// C_UPNPCOMMONUPNPLITS_H
       
   198 
       
   199 // End Of File