servicediscoveryandcontrol/pnp/test/upnp/Client/pnp/inc/upnpconstants.h
changeset 0 f5a58ecadc66
equal deleted inserted replaced
-1:000000000000 0:f5a58ecadc66
       
     1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 
       
    17 #ifndef __UPNPCONSTANTS_H_
       
    18 #define __UPNPCONSTANTS_H_
       
    19 
       
    20 /**
       
    21 This is the tier id value which must be specified whenever the user wants to open a UPnP Service Point or Control Point. 
       
    22 This is the parameter which must be specified in the RPnPServicePublisher::Open or RPnPServiceDiscovery::Open APIs
       
    23 @publishedPartner
       
    24 @prototype
       
    25 */
       
    26 
       
    27 const TUint KUPnPInterface  = 0x2000D054;
       
    28 
       
    29 /**
       
    30 This is the Uid which is used to load in the underlying the pnp interface. New plugins which make use of the
       
    31 pnp interface should make use of this as the interface id of their implementations in the rss file of the plugin
       
    32 @publishedPartner
       
    33 @prototype
       
    34 */
       
    35 const TUid  KPnPInterfaceId = {0x2000D060};
       
    36 
       
    37 /**
       
    38 Base value for the UPnP error code range (-7700 to -7900)
       
    39 @publishedPartner
       
    40 @prototype
       
    41 */
       
    42 const TInt KUpnpErrorBase = -7700;
       
    43 
       
    44 /**
       
    45 Error range  for client dll returned error code
       
    46 @publishedPartner
       
    47 @prototype
       
    48 */
       
    49 const TInt KUpnpClientErrorBase=KUpnpErrorBase-50;
       
    50 
       
    51 /**
       
    52 Error code for invalid bundle passed by client application.
       
    53 This error code is returned when the application fails to retrieve
       
    54 either the callback (MPnPObserver) , or family or the parameter
       
    55 set from the passed bundle
       
    56 
       
    57 @publishedPartner
       
    58 @prototype
       
    59 */
       
    60 const TInt KErrClientDllInvalidBundle = KUpnpClientErrorBase-1;
       
    61 
       
    62 //UpnP panic codes
       
    63 
       
    64 enum TUPnPPanic
       
    65 	{
       
    66 	KUPnPErrNotOpen = 1 , //Set the starting error code.
       
    67 	KUPnPErrNoObserver,
       
    68 	KUPnPErrInvalidFamilyCount,
       
    69 	KUPnPErrInvalidFamily,
       
    70 	KUPnPErrNoParamSet,
       
    71 	KUPnPErrDiscoveryInProgress,
       
    72 	KUPnPErrPublish,
       
    73 	KUPnPErrInvalidInput,
       
    74 	KUPnPErrTimerError,
       
    75 	KUPnPErrResponseUriNotFound,
       
    76 	KUPnPErrInvalidFriendlyName,
       
    77 	KUPnPErrInvalidManufactureName,
       
    78 	KUPnPErrInvalidModelName,
       
    79 	KUPnPErrInvalidModelNumber,
       
    80 	KUPnPErrInvalidModelDescription,
       
    81 	KUPnPErrInvalidSerialNumber,
       
    82 	KUPnPErrInvalidUDN,
       
    83 	KUPnPErrInvalidUPC,
       
    84 	KUPnPErrMultiplePublishParamSet,
       
    85 	KUPnPErrInvalidMimeType,
       
    86 	};
       
    87 
       
    88 
       
    89 //error strings
       
    90 _LIT(KUPnPNoObserver,"Observer not set");
       
    91 _LIT( KUPnPHandleNotOpen , "Handle not open");
       
    92 _LIT( KUPnPInvalidFamilyCount , "Family count not equal to 1");
       
    93 _LIT( KUPnPInvalidFamily , "Invalid Family");
       
    94 _LIT( KUPnPNoParamSet , "No paramset");
       
    95 _LIT(KUPnPDiscoveryInProgress,"Discovery in not set");
       
    96 _LIT(KUPnPAlreadyPublished,"The service has already published");
       
    97 _LIT(KUPnPServiceNotPublished,"The service is not yet published");
       
    98 _LIT(KUPnPInvalidUserInput, "The input data/argument is invalid");
       
    99 _LIT(KUPnPTimerUriNotFound, "Internal error : URI  in timer list not found");
       
   100 _LIT(KUPnPResponseUriNotFound, "Internal error : URI  not found in resposne");
       
   101 _LIT(KUPnPDeviceSendingNotification,"The device is sending notification");
       
   102 _LIT(KUPnPInvalidFriendlyName,"The device friendly name is not valid");
       
   103 _LIT(KUPnPInvalidManufactureName,"The device Manufacturer is name not valid");
       
   104 _LIT(KUPnPInvalidModelName,"The model name is not valid");
       
   105 _LIT(KUPnPInvalidModelNumber,"The model number is not valid");
       
   106 _LIT(KUPnPInvalidModelDescription,"The model description is not valid");
       
   107 _LIT(KUPnPInvalidSerialNumber,"The device serial number is not valid");
       
   108 _LIT(KUPnPInvalidUPC,"The device UPC is not valid");
       
   109 _LIT(KUPnPInvalidUDN,"The unique device name is not valid");
       
   110 _LIT(KUPnPControlChannel,"UPnP Control Channel");
       
   111 _LIT(KUPnPMultiplePublish,"Multiple devices/service publish in single service point");
       
   112 _LIT(KUPnPInvalidIconInfo,"The device Icon Info is not valid");
       
   113 
       
   114 /**
       
   115 Error range  for upnpcodec dll returned error code
       
   116 @publishedPartner
       
   117 @prototype
       
   118 */
       
   119 const TInt KUpnpCodecErrorBase=KUpnpErrorBase-150;
       
   120 
       
   121 /**
       
   122 Error encoding ST header
       
   123 @publishedPartner
       
   124 @prototype
       
   125 */
       
   126 const TInt KErrUPnPEncodeST				= KUpnpCodecErrorBase - 1;
       
   127 
       
   128 /**
       
   129 Error encoding USN header
       
   130 @publishedPartner
       
   131 @prototype
       
   132 */
       
   133 const TInt KErrUPnPEncodeUSN			= KUpnpCodecErrorBase - 2;
       
   134 
       
   135 /**
       
   136 Error encoding Timeout header
       
   137 @publishedPartner
       
   138 @prototype
       
   139 */
       
   140 const TInt KErrUPnPEncodeTimeout		= KUpnpCodecErrorBase - 3;
       
   141 
       
   142 /**
       
   143 Error encoding EXT header
       
   144 @publishedPartner
       
   145 @prototype
       
   146 */
       
   147 const TInt KErrUPnPEncodeEXT			= KUpnpCodecErrorBase - 4;
       
   148 
       
   149 /**
       
   150 Error encoding SID header
       
   151 @publishedPartner
       
   152 @prototype
       
   153 */
       
   154 const TInt KErrUPnPEncodeSID			= KUpnpCodecErrorBase - 5;
       
   155 
       
   156 /**
       
   157 Error encoding NTS header
       
   158 @publishedPartner
       
   159 @prototype
       
   160 */
       
   161 const TInt KErrUPnPEncodeNTS			= KUpnpCodecErrorBase - 6;
       
   162 
       
   163 /**
       
   164 Error encoding NT header
       
   165 @publishedPartner
       
   166 @prototype
       
   167 */
       
   168 const TInt KErrUPnPEncodeNT				= KUpnpCodecErrorBase - 7;
       
   169 
       
   170 /**
       
   171 Error encoding MX header
       
   172 @publishedPartner
       
   173 @prototype
       
   174 */
       
   175 const TInt KErrUPnPEncodeMX				= KUpnpCodecErrorBase - 8;
       
   176 
       
   177 /**
       
   178 Error encoding SEQ header
       
   179 @publishedPartner
       
   180 @prototype
       
   181 */
       
   182 const TInt KErrUPnPEncodeSEQ			= KUpnpCodecErrorBase - 9;
       
   183 
       
   184 /**
       
   185 Error encoding MAN header
       
   186 @publishedPartner
       
   187 @prototype
       
   188 */
       
   189 const TInt KErrUPnPEncodeMAN			= KUpnpCodecErrorBase - 10;
       
   190 
       
   191 /**
       
   192 Error encoding SoapAction header
       
   193 @publishedPartner
       
   194 @prototype
       
   195 */
       
   196 const TInt KErrUPnPEncodeSoapAction		= KUpnpCodecErrorBase - 11;
       
   197 
       
   198 /**
       
   199 Error encoding Callback header
       
   200 @publishedPartner
       
   201 @prototype
       
   202 */
       
   203 const TInt KErrUPnPEncodeCallback		= KUpnpCodecErrorBase - 12;
       
   204 
       
   205 /**
       
   206 Error decoding MAN header
       
   207 @publishedPartner
       
   208 @prototype
       
   209 */
       
   210 const TInt KErrUPnPDecodeMAN	 		= KUpnpCodecErrorBase - 13;
       
   211 
       
   212 #endif /*UPNPERR_H_*/
       
   213 
       
   214