sipplugins/sippdevmgmtsipadapter/inc/smldmsipadapterconstants.h
changeset 0 307788aac0a8
child 18 f54bfd820e04
equal deleted inserted replaced
-1:000000000000 0:307788aac0a8
       
     1 /*
       
     2 * Copyright (c) 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:  Constants for DM SIP Adapter.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include <e32base.h>
       
    20 
       
    21 const TInt KDefaultPortNumber        = 5060;
       
    22 const TInt KMaxProviderNameLength    = 100;
       
    23 const TInt KUriPathMaxLength         = 100; 
       
    24 const TInt KNSmlSIPMaxUriLength      = 256;
       
    25 const TInt KDefaultResultSize        = 64;
       
    26 const TInt KNSmlSIPMaxResultLength   = 256;
       
    27 const TInt KMaxMappingLength         = 15; //SIPId0x00000002
       
    28 const TInt KNSmlDMFatMinimumFileSize = 512;
       
    29 const TInt KMaxSchemeLength          = 5;
       
    30 
       
    31 // Reference: OMA DM Management Object for Nokia SIP.
       
    32 _LIT8( KNSmlDMSIPDDFVersion,
       
    33     "1.0" );
       
    34 _LIT8( KNSmlDMSIPNodeName,
       
    35     "SIP" );
       
    36 _LIT8( KNSmlDMSIPSipID,
       
    37     "SIPId" );
       
    38 _LIT8( KNSmlDMSIPName,
       
    39     "Name" );
       
    40 _LIT8( KNSmlDMSIPProfileType,
       
    41     "ProfileType" );
       
    42 _LIT8( KNSmlDMSIPAOR,
       
    43     "AddressOfRecord" );
       
    44 _LIT8( KNSmlDMSIPOutboundProxy,
       
    45     "OutboundProxy" );
       
    46 _LIT8( KNSmlDMSIPHost,
       
    47     "Host" );
       
    48 _LIT8( KNSmlDMSIPPort,
       
    49     "Port" );
       
    50 _LIT8( KNSmlDMSIPTransport,
       
    51     "Transport" );
       
    52 _LIT8( KNSmlDMSIPUsername,
       
    53     "Username" );
       
    54 _LIT8( KNSmlDMSIPPrivateIdentity,
       
    55     "PrivateIdentity" );
       
    56 _LIT8( KNSmlDMSIPPasswd,
       
    57     "Passwd" );
       
    58 _LIT8( KNSmlDMSIPRealm,
       
    59     "Realm" );
       
    60 _LIT8( KNSmlDMSIPRegistrarServer,
       
    61     "RegistrarServer" );
       
    62 _LIT8( KNSmlDMSIPDefault,
       
    63     "Default" );
       
    64 _LIT8( KNSmlDMSIPLooseRouting,
       
    65     "LooseRouting" );
       
    66 _LIT8( KNSmlDMSIPEnableSecurityNegotiation,
       
    67     "EnableSecurityNegotiation" );
       
    68 _LIT8( KNSmlDMSIPEnableSigComp,
       
    69     "EnableSignalCompression" );
       
    70 _LIT8( KNSmlDMSIPEnableAutoRegistration,
       
    71     "EnableAutoRegistration" );
       
    72 _LIT8( KNSmlDMSIPConRef,
       
    73     "PrefConRef" );
       
    74 _LIT8( KNSmlDMSIPProfileLock,
       
    75     "ProfileLock" );
       
    76 _LIT8( KNSmlDMSIPSnap,
       
    77     "DestinationNetwork" );
       
    78 _LIT8( KNSmlDMSIPSigQos,
       
    79     "SignalingQoS" );
       
    80 
       
    81 // Explanations of parameters
       
    82 _LIT8( KNSmlDMSIPNodeNameExp,
       
    83     "The interior object holds all SIP objects" );
       
    84 _LIT8( KNSmlDMSIPDynamicNodeExp,
       
    85     "Placeholder for settings ID's" );
       
    86 _LIT8( KNSmlDMSIPSipIDExp,
       
    87     "Settings ID number" ); // 1
       
    88 _LIT8( KNSmlDMSIPNameExp,
       
    89     "Name (Provider)" );
       
    90 _LIT8( KNSmlDMSIPProfileTypeExp,
       
    91     "ProfileType" );
       
    92 _LIT8( KNSmlDMSIPAORExp,
       
    93     "Address Of Record (Public User Name)" );
       
    94 _LIT8( KNSmlDMSIPOutboundProxyExp,
       
    95     "Outbound Proxy node" );
       
    96 _LIT8( KNSmlDMSIPHostExp,
       
    97     "Host" );
       
    98 _LIT8( KNSmlDMSIPPortExp,
       
    99     "Port" );
       
   100 _LIT8( KNSmlDMSIPTransportExp,
       
   101     "Transport" );
       
   102 _LIT8( KNSmlDMSIPUsernameExp,
       
   103     "Username" );
       
   104 _LIT8( KNSmlDMSIPPrivateIdentityExp,
       
   105     "Private Identity" );
       
   106 _LIT8( KNSmlDMSIPPasswdExp,
       
   107     "Password" );
       
   108 _LIT8( KNSmlDMSIPRealmExp,
       
   109     "Realm" );
       
   110 _LIT8( KNSmlDMSIPRegistrarServerExp,
       
   111     "Registrar Server node" );
       
   112 _LIT8( KNSmlDMSIPDefaultExp,
       
   113     "Default" );
       
   114 _LIT8( KNSmlDMSIPLooseRoutingExp,
       
   115     "Loose Routing" );
       
   116 _LIT8( KNSmlDMSIPEnableSecurityNegotiationExp,
       
   117     "Enable Security Negotiation" );
       
   118 _LIT8( KNSmlDMSIPEnableSigCompExp,
       
   119     "Enable Signal Compression" );
       
   120 _LIT8( KNSmlDMSIPEnableAutoRegistrationExp,
       
   121     "Enable Auto Registration" );
       
   122 _LIT8( KNSmlDMSIPConRefExp,
       
   123     "Reference to connectivity information" );
       
   124 _LIT8( KNSmlDMSIPProfileLockExp,
       
   125     "Profile lock" );
       
   126 _LIT8( KNSmlDMSIPSnapExp,
       
   127     "Reference to Destination Network" );
       
   128 _LIT8( KNSmlDMSIPSigQosExp,
       
   129     "Signaling QoS" );
       
   130 
       
   131 // For SIP URI.
       
   132 // References: OMA DM MO for Nokia SIP and IETF RFC3261.
       
   133 _LIT8( KPTypeIMS,                "ims" );
       
   134 _LIT8( KPTypeIETF,               "IETF" );
       
   135 _LIT8( KPTypeOther,              "OTHER" );
       
   136 _LIT8( KNSmlDMSIPValueTrue,      "True");
       
   137 _LIT8( KNSmlDMSIPValueFalse,     "False");
       
   138 _LIT8( KNSmlDMSIPTransportTCP,   "TCP");
       
   139 _LIT8( KSIPTransportTCP,         ";transport=tcp");
       
   140 _LIT8( KSIPTransportUDP,         ";transport=udp");
       
   141 _LIT8( KSIPTransportPrefix,      ";transport=");
       
   142 _LIT8( KSIPlr,                   ";lr");
       
   143 _LIT8( KNSmlDMSIPTransportUDP,   "UDP");
       
   144 _LIT8( KNSmlDMSIPTransportAuto,  "Auto" );
       
   145 
       
   146 // Other
       
   147 _LIT8( KHexPrefix,               "0x" );
       
   148 _LIT8( KSIPPrefix,               "SIPId" );
       
   149 _LIT8( KSIPHexPrefix,            "SIPId0x" );
       
   150 _LIT8( KNSmlDMSIPTextPlain,      "text/plain" );
       
   151 _LIT8( KNSmlDMSIPSeparator8,     "/" );
       
   152 _LIT8( KNSmlSIPUriDotSlash,      "./");
       
   153 _LIT8( KOpenParenthesis,         "(" );
       
   154 _LIT8( KClosedParenthesis,       ")" );
       
   155 _LIT8( KNSmlDMSIPSIPPrefix,      "sip:" );
       
   156 _LIT8( KNSmlDMSIPSIPSPrefix,     "sips:");
       
   157 _LIT8( KNSmlDMSIPSip,            "sip" );
       
   158 _LIT8( KNSmlDMSIPSips,           "sips" );
       
   159 _LIT8( KNSmlDMSIPSnapUriPrefix,  "BearerManagementSNAP" );
       
   160 
       
   161 const TUint32 KMaxSigQosValue = 63;
       
   162 const TUint8 KDMSIPSeparator = '/';
       
   163 
       
   164 // End of file.