1.1 --- a/epoc32/include/obexconstants.h Tue Mar 16 16:12:26 2010 +0000
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,689 +0,0 @@
1.4 -// Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 -// All rights reserved.
1.6 -// This component and the accompanying materials are made available
1.7 -// under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
1.8 -// which accompanies this distribution, and is available
1.9 -// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.10 -//
1.11 -// Initial Contributors:
1.12 -// Nokia Corporation - initial contribution.
1.13 -//
1.14 -// Contributors:
1.15 -//
1.16 -// Description:
1.17 -//
1.18 -
1.19 -
1.20 -
1.21 -/**
1.22 - @file
1.23 - @publishedAll
1.24 - @released
1.25 -*/
1.26 -
1.27 -#ifndef __OBEXCONSTANTS_H
1.28 -#define __OBEXCONSTANTS_H
1.29 -
1.30 -#include <e32std.h>
1.31 -#include <es_sock.h>
1.32 -#include <ir_sock.h>
1.33 -#include <bt_sock.h>
1.34 -#include <obexpanics.h>
1.35 -
1.36 -//common to request & resp digests
1.37 -
1.38 -/** @internalComponent */
1.39 -const TInt KChallResponseSize = 58;
1.40 -/** @internalComponent */
1.41 -const TInt KMinChallResponseSize = 18; //Nonce(16) + tag(1) + size(1)
1.42 -/** @internalComponent */
1.43 -const TInt KObexNonceSize = 16;
1.44 -/** @internalComponent */
1.45 -const TUint8 KObexRequireUID = 0x01;
1.46 -
1.47 -//request or chall
1.48 -/** @internalComponent */
1.49 -const TUint KObexChallNonceTag = 0;
1.50 -/** @internalComponent */
1.51 -const TUint8 KObexChallOptionsTag = 0x01;
1.52 -/** @internalComponent */
1.53 -const TUint8 KObexChallRealmTag = 0x02;
1.54 -/** @internalComponent */
1.55 -const TInt KObexChallOptionSize = 1; //this can't be changed from one without making
1.56 -/** @internalComponent */
1.57 -const TUint KObexChallHeaderSize = 23; //assuming no Realm data
1.58 -
1.59 -//response
1.60 -/** @internalComponent */
1.61 -const TUint KObexRespTag = 0;
1.62 -/** @internalComponent */
1.63 -const TInt KObexRespSize = 16;
1.64 -/** @internalComponent */
1.65 -const TUint8 KObexRespUserIDTag = 0x01;
1.66 -/** @internalComponent */
1.67 -const TUint8 KObexRespNonceTag = 0x02;
1.68 -
1.69 -/** @internalComponent */
1.70 -const TUint8 KObexHeaderTypeMask = 0xc0;
1.71 -/** @internalComponent */
1.72 -const TUint8 KObexHeaderTypeOffset = 6;
1.73 -
1.74 -#ifdef _UNICODE
1.75 -/** @internalComponent */
1.76 -const TInt KUidOBEXTransportModule = 0x10003d56;
1.77 -#else
1.78 -/** @internalComponent */
1.79 -const TInt KUidOBEXTransportModule = 0x1000169c;
1.80 -#endif
1.81 -
1.82 -/** @internalComponent */
1.83 -const TInt KUsbIntStringDescLength = 30;
1.84 -
1.85 -/** @internalComponent */
1.86 -const TUint8 KFourByteTimeHeaderAddress = 0xc4;
1.87 -
1.88 -// Header mask definitions.
1.89 -// Old style accessor for which headers are present or
1.90 -// should be sent by an object. Now deprecated, use the
1.91 -// header iterator instead.
1.92 -/** @internalComponent */
1.93 -const TUint16 KObexHdrName = 0x0001;
1.94 -/** @internalComponent */
1.95 -const TUint16 KObexHdrType = 0x0002;
1.96 -/** @internalComponent */
1.97 -const TUint16 KObexHdrLength = 0x0004;
1.98 -/** @internalComponent */
1.99 -const TUint16 KObexHdrTime = 0x0008;
1.100 -/** @internalComponent */
1.101 -const TUint16 KObexHdrDescription = 0x0010;
1.102 -/** @internalComponent */
1.103 -const TUint16 KObexHdrTarget = 0x0020;
1.104 -/** @internalComponent */
1.105 -const TUint16 KObexHdrConnectionID = 0x0040;
1.106 -/** @internalComponent */
1.107 -const TUint16 KObexHdrBody = 0x0080;
1.108 -/** @internalComponent */
1.109 -const TUint16 KObexHdrEndOfBody = 0x0100;
1.110 -/** @internalComponent */
1.111 -const TUint16 KObexHdrHttp = 0x0200;
1.112 -/** @internalComponent */
1.113 -const TUint16 KObexHdrAppParam = 0x0400;
1.114 -/** @internalComponent */
1.115 -const TUint16 KObexHdrUserDefined = 0x0800;
1.116 -/** @internalComponent */
1.117 -const TUint16 KObexHdrCount = 0x1000;
1.118 -/** @internalComponent */
1.119 -const TUint16 KObexHdrCreatorID = 0x2000;
1.120 -/** @internalComponent */
1.121 -const TUint16 KObexHdrWanUUID = 0x4000;
1.122 -/** @internalComponent */
1.123 -const TUint16 KObexHdrObjectClass = 0x8000;
1.124 -
1.125 -/** @internalComponent */
1.126 -const TUint8 KObexUserDefinedHdrAddrMin = 0x30; //start of user defined header address range
1.127 -/** @internalComponent */
1.128 -const TUint8 KObexUserDefinedHdrAddrMax = 0x3F; //end of user defined header address range
1.129 -
1.130 -/** @internalComponent */
1.131 -const TUint8 KObexVersion = 0x10; ///< Version 1.0 (still correct for Obex spec v 1.2)
1.132 -
1.133 -/** @internalComponent */
1.134 -const TUint8 KObexObjectFieldSize = 127;
1.135 -/** @internalComponent */
1.136 -const TUint8 KObexObjectDescriptionSize = 255;
1.137 -
1.138 -// Extended errors for IrObex
1.139 -
1.140 -/** Must not use as not in the allocated range */
1.141 -const TInt KErrIrObexRespBase = - 5500;
1.142 -
1.143 -/** Extended error for IrObex - No other infrared device found */
1.144 -const TInt KErrIrObexClientNoDevicesFound = -5501;
1.145 -
1.146 -/** Extended error for IrObex - Other IR device cannot handle IrObex */
1.147 -const TInt KErrIrObexClientPeerDoesNotHaveObex = -5502;
1.148 -
1.149 -/** Extended error for IrObex - Other IR device aborted the transfer */
1.150 -const TInt KErrIrObexClientPutPeerAborted = -5503;
1.151 -
1.152 -/** Extended error for IrObex - Peer device aborted data transmission/obex sending */
1.153 -const TInt KErrIrObexServerPutPeerAborted = -5507;
1.154 -
1.155 -/** Extended error for IrObex - Cannot authorise the challenge so link dropped */
1.156 -const TInt KErrIrObexConnectChallRejected = -5512;
1.157 -
1.158 -// Other Obex errors defined in the system but no longer used
1.159 -// Do not reuse the number!
1.160 -// KErrIrObexClientPutPeerCannotHandleObject -5504
1.161 -// KErrIrObexServerPutFileWriteError -5509
1.162 -// KErrIrObexClientFirstPutFailed -5510
1.163 -// KErrIrObexClientSubsequentPutFailed -5511
1.164 -
1.165 -/** Unexpected event for the given state */
1.166 -const TInt KErrIrObexBadEvent = -5513;
1.167 -
1.168 -/** Event occurred while Server is stopped */
1.169 -const TInt KErrIrObexServerStopped = -5514;
1.170 -
1.171 -/** Packet received while state machine is in a wait state */
1.172 -const TInt KErrIrObexPacketDuringWait = -5515;
1.173 -
1.174 -// There are other error codes defined at the end of this file,
1.175 -// which are a direct mapping of specific Obex error codes and
1.176 -// are returned by the client.
1.177 -
1.178 -
1.179 -// Flags used by Connect
1.180 -// ...None in OBEX 1.0
1.181 -
1.182 -// Flags used by SetPath
1.183 -/** @internalComponent */
1.184 -const TUint8 KObexSetPathParent = 0x01;
1.185 -
1.186 -/**
1.187 -Version number for TObexTransportInfo and derived classes.
1.188 -When iVersion is set to this value the following fields of TObexTransportInfo
1.189 -must be set:
1.190 -iTransportName,
1.191 -iReceiveMtu
1.192 -iTransmitMtu
1.193 -The iVersion member variable must be set to this value. If in future any of the
1.194 -iFuture variables are used a new version constant will be created.
1.195 -
1.196 -@see TObexTransportInfo
1.197 -@publishedAll
1.198 -@released
1.199 -*/
1.200 -const TInt KObexTransportInfoVersion0 = 0;
1.201 -
1.202 -/**
1.203 -Default for the receive and transmit MTU sizes
1.204 -Use this default value for setting the iReceiveMtu or iTransmitMtu in TObexTransportInfo
1.205 -objects or derived classes.
1.206 -
1.207 -@see TObexTransportInfo
1.208 -@publishedAll
1.209 -@released
1.210 -*/
1.211 -const TInt KObexDefaultMtuSize = 4000;
1.212 -
1.213 -/**
1.214 -Default value for the number of discovery slots to use. Use this value as a default
1.215 -for iDiscoverySlots in TObexIrdaV2TransportInfo.
1.216 -
1.217 -@see TObexIrdaV2TransportInfo
1.218 -@publishedAll
1.219 -@released
1.220 -*/
1.221 -const TUint KObexIrdaDefaultDiscoverySlotsToUse = 1;
1.222 -
1.223 -/**
1.224 -Default value for the number of discovery attempts made. Use this value as a default for iDiscoveryAttempts
1.225 -in TObexIrdaV2TransportInfo.
1.226 -@see TObexIrdaV2TransportInfo
1.227 -@publishedAll
1.228 -@released
1.229 -*/
1.230 -const TUint KObexIrdaDefaultDiscoveryAttempts = 4;
1.231 -
1.232 -// Constants used to define which transport Obex will run over.
1.233 -// Used in TObexTransportInfo and TObexProtocolInfo's iTransport member.
1.234 -
1.235 -/**
1.236 -Protocol string when running over IrDA
1.237 -@see TObexIrProtocolInfo
1.238 -@see TObexTransportInfo
1.239 -@publishedAll
1.240 -@released
1.241 -*/
1.242 -_LIT(KObexIrTTPProtocol, "IrTinyTP");
1.243 -
1.244 -/**
1.245 -Protocol string when running over IrDA
1.246 -Using this version indicates that the configuration object contains discovery parameters.
1.247 -@see TObexIrProtocolInfo
1.248 -@publishedAll
1.249 -@released
1.250 -*/
1.251 -_LIT(KObexIrTTPProtocolV2, "IrTinyTP-V2");
1.252 -
1.253 -/**
1.254 -Protocol string when running over IrDA
1.255 -Using this version indicates that the configuration object contains the device nickname.
1.256 -@see TObexIrProtocolInfo
1.257 -@publishedAll
1.258 -
1.259 -@capability WriteDeviceData If the TObexIrV3TransportInfo is passed as the argument
1.260 - to CObexServer::NewL or CObexClient::NewL and the associated
1.261 - name is valid.
1.262 -@released
1.263 -*/
1.264 -_LIT(KObexIrTTPProtocolV3, "IrTinyTP-V3");
1.265 -
1.266 -/**
1.267 -Protocol string when running over Bluetooth
1.268 -@see TObexBluetoothProtocolInfo
1.269 -@see TObexTransportInfo
1.270 -@publishedAll
1.271 -@released
1.272 -*/
1.273 -_LIT(KObexRfcommProtocol, "RFCOMM");
1.274 -
1.275 -/**
1.276 -Protocol string when running over USB
1.277 -@see TObexUsbProtocolInfo
1.278 -@see TObexTransportInfo
1.279 -@publishedAll
1.280 -@released
1.281 -*/
1.282 -_LIT(KObexUsbProtocol, "USB");
1.283 -
1.284 -/**
1.285 -Place holder for...
1.286 -protocol string that should be used
1.287 -if a Win32 emulator USB transport were
1.288 -to be created for testing.
1.289 -@see TObexUsbProtocolInfo
1.290 -@see TObexTransportInfo
1.291 -@publishedAll
1.292 -@released
1.293 -*/
1.294 -_LIT(KObexWin32UsbProtocol, "Win32Usb");
1.295 -
1.296 -/**
1.297 -Protocol string when running over USB using client driver extensions
1.298 -@see TObexUsbProtocolInfoV2
1.299 -@see TObexTransportInfo
1.300 -@publishedAll
1.301 -@released
1.302 -*/
1.303 -_LIT(KObexUsbProtocolV2, "USB-V2");
1.304 -
1.305 -/**
1.306 -This class is derived for each underlying transport protocol OBEX
1.307 -runs over.
1.308 -
1.309 -The iTransport member holds the unique name for the transport. For example for
1.310 -infra-red (TinyTP) this is "IrTinyTP" or KObexIrTTPProtocol.
1.311 -
1.312 -@see TObexIrProtocolInfo for running over TinyTP
1.313 -@see TObexBluetoothProtocolInfo for running over Rfcomm
1.314 -@see TObexUsbProtocolInfo for running over USB
1.315 -@see TObexUsbProtocolInfoV2 for running over USB using client driver extensions
1.316 -
1.317 -@see KObexIrTTPProtocol
1.318 -@see KObexIrTTPProtocolV2
1.319 -@see KObexRfcommProtocol
1.320 -@see KObexUsbProtocol
1.321 -@see KObexUsbProtocolV2
1.322 -
1.323 -@publishedAll
1.324 -@released
1.325 -*/
1.326 -NONSHARABLE_CLASS(TObexProtocolInfo)
1.327 - {
1.328 -public:
1.329 - /** Holds the unique name for the transport. */
1.330 - TBuf<60> iTransport;
1.331 -private:
1.332 - // This data padding has been added to help prevent future binary compatibility breaks
1.333 - // Neither iPadding1 nor iPadding2 have been zero'd because they are currently not used
1.334 - TUint32 iPadding1;
1.335 - TUint32 iPadding2;
1.336 - };
1.337 -
1.338 -/**
1.339 -Used to describe IrDA specific protocol information
1.340 -
1.341 -To access the default OBEX server, the IAS class value should be "OBEX"
1.342 -and the IAS attribute name "IrDA:TinyTP:LsapSel".
1.343 -
1.344 -@publishedAll
1.345 -@released
1.346 -*/
1.347 -NONSHARABLE_CLASS(TObexIrProtocolInfo) : public TObexProtocolInfo
1.348 - {
1.349 -public:
1.350 - /** IrDA address information for this connection, as used in the IrDA sockets interface.
1.351 - Refer to the SDK for more information about this.
1.352 - Its main use is for setting the port that the local machine will listen on. */
1.353 - TIrdaSockAddr iAddr;
1.354 - /** The IAS class value that the OBEX session will register its listener port,
1.355 - or request remote port with. */
1.356 - TBuf8<KIASClassNameMax> iClassName;
1.357 - /** The IAS attribute value that the OBEX session will register its listener port,
1.358 - or request remote port with. */
1.359 - TBuf8<KIASAttributeNameMax> iAttributeName;
1.360 - /** The number of discovery slots to use. */
1.361 - TUint8 iDiscoverySlots;
1.362 - /** The number of discovery attempts to make. */
1.363 - TUint8 iDiscoveryAttempts;
1.364 -
1.365 -private:
1.366 - // This data padding has been added to help prevent future binary compatibility breaks
1.367 - // None of these padding variables have been zero'd because they are currently not used
1.368 - TUint16 iPadding1;
1.369 - TUint32 iPadding2;
1.370 - TUint32 iPadding3;
1.371 - TUint32 iPadding4;
1.372 - };
1.373 -
1.374 -/**
1.375 -Used to describe Bluetooth specific protocol information
1.376 -
1.377 -@publishedAll
1.378 -@released
1.379 -*/
1.380 -NONSHARABLE_CLASS(TObexBluetoothProtocolInfo) : public TObexProtocolInfo
1.381 - {
1.382 -public:
1.383 - /**
1.384 - For OBEX servers:
1.385 - This defines the server channel on which the OBEX server listens
1.386 - for connections. The server channel is set using SetPort on the
1.387 - TRfcommSockAddr.
1.388 - Note:
1.389 - 1) Unless the channel is defined as KRfcommPassiveAutoBind
1.390 - it may be in use when the obex server attempts to 'bind' to it
1.391 - 2) If the channel is defined as KRfcommPassiveAutoBind
1.392 - then when the server is FIRST started it will attempt
1.393 - to find a free RFComm channel. If this is successful
1.394 - that free channel will be used as the server channel
1.395 - for the life time of the obex server including
1.396 - when it is 'stopped' and re-'started'.
1.397 - 3) When the obex server is stopped, and very
1.398 - briefly when a bluetooth connection comes down, the
1.399 - obex server releases its server channel. It is possible
1.400 - therefore that during this time another application might bind
1.401 - to it. This will cause an error when the obex server tries
1.402 - to re-bind.
1.403 -
1.404 - Also note that a Bluetooth OBEX server will itself set the Object Transfer
1.405 - bit in the Service Class as required by the Generic Object Exchange
1.406 - Profile so the user need not do this.
1.407 - @see CObexServer
1.408 -
1.409 - For OBEX clients:
1.410 - This defines the server channel and the
1.411 - device address to connect to. The server channel
1.412 - and device address are set respectively using SetPort
1.413 - and SetBTAddr on the TRfcommSockAddr.
1.414 - */
1.415 - TRfcommSockAddr iAddr;
1.416 -
1.417 -private:
1.418 - // This data padding has been added to help prevent future binary compatibility breaks
1.419 - // Neither iPadding1 nor iPadding2 have been zero'd because they are currently not used
1.420 - TUint32 iPadding1;
1.421 - TUint32 iPadding2;
1.422 - };
1.423 -
1.424 -/**
1.425 -Used to describe USB specific protocol information
1.426 -
1.427 -@publishedAll
1.428 -@released
1.429 -*/
1.430 -NONSHARABLE_CLASS(TObexUsbProtocolInfo) : public TObexProtocolInfo
1.431 - {
1.432 -public:
1.433 - /** Provides a string to be attached to the Obex function's Communication Class interface,
1.434 - which may be used to identify the Obex service. */
1.435 - TBuf16<KUsbIntStringDescLength> iInterfaceStringDescriptor;
1.436 - };
1.437 -
1.438 -/**
1.439 -Used to set options used by the extended USB client driver for improved performance
1.440 -
1.441 -@see TObexUsbProtocolInfo
1.442 -@see RDevUsbcClient
1.443 -@publishedAll
1.444 -@released
1.445 -*/
1.446 -NONSHARABLE_CLASS(TObexUsbProtocolInfoV2) : public TObexUsbProtocolInfo
1.447 - {
1.448 -public:
1.449 - /** Bitmap containing the bandwidth priorities to use on IN and OUT endpoints
1.450 - @see TUsbcBandwidthPriority
1.451 - */
1.452 - TInt iBandwidthPriority;
1.453 - /** Specifies whether to use DMA on the bulk OUT endpoint */
1.454 - TBool iDmaOnOutEndpoint;
1.455 - /** Specifies whether to use DMA on the bulk IN endpoint */
1.456 - TBool iDmaOnInEndpoint;
1.457 -
1.458 -private:
1.459 - // This data padding has been added to help prevent future binary compatibility breaks
1.460 - // None of these padding variables have been zero'd because they are currently not used
1.461 - TUint32 iPadding1;
1.462 - TUint32 iPadding2;
1.463 - TUint32 iPadding3;
1.464 - TUint32 iPadding4;
1.465 - };
1.466 -
1.467 -/**
1.468 -Contains information about OBEX packet sizing policy, defining the
1.469 -maximum buffer size for receive and transmit packets
1.470 -*/
1.471 -NONSHARABLE_CLASS(TObexProtocolPolicy)
1.472 - {
1.473 -public:
1.474 - IMPORT_C TObexProtocolPolicy (); // Sets version and default values
1.475 -
1.476 - IMPORT_C TInt SetReceiveMtu ( TUint16 aReceiveMtu );
1.477 - IMPORT_C TInt SetTransmitMtu ( TUint16 aTransmitMtu );
1.478 - IMPORT_C TUint16 Version () const;
1.479 - IMPORT_C TUint16 ReceiveMtu () const;
1.480 - IMPORT_C TUint16 TransmitMtu () const;
1.481 -
1.482 -private:
1.483 - TUint16 iVersion;
1.484 - TUint16 iReceiveMtu;
1.485 - TUint16 iTransmitMtu;
1.486 -
1.487 - // This data padding has been added to help prevent future binary compatibility breaks
1.488 - // None of these padding variables have been zero'd because they are currently not used
1.489 - TUint32 iPadding1;
1.490 - TUint32 iPadding2;
1.491 - TUint32 iPadding3;
1.492 - TUint32 iPadding4;
1.493 - };
1.494 -
1.495 -struct TObexConnectionInfo;
1.496 -
1.497 -/**
1.498 -TObexConnectInfo
1.499 -This structure contains information used during OBEX connection. iVersion
1.500 -holds the encoded OBEX version of the machine, use @c VersionMajor() and
1.501 -@c VersionMinor() to extract the parts of the version number (each having a
1.502 -value from 0 to 15). @c iFlags holds OBEX connection flags. @c iWho holds
1.503 -the Who attribute from the connect packet, if any was specified, or
1.504 -otherwise has a length of 0.
1.505 -It is recommended that this class is only ever allocated on the heap as it is quite big.
1.506 -*/
1.507 -NONSHARABLE_CLASS(TObexConnectInfo)
1.508 - {
1.509 -public:
1.510 - IMPORT_C TObexConnectInfo();
1.511 - IMPORT_C TUint8 VersionMajor() const;
1.512 - IMPORT_C TUint8 VersionMinor() const;
1.513 -public:
1.514 - TUint8 iVersion; /** Encoded OBEX version of the machine*/
1.515 - TUint8 iFlags; /** iFlags holds OBEX connection flags*/
1.516 - TBuf8<KObexObjectDescriptionSize> iWho; /** the Who attribute from the connect packet, if any was specified */
1.517 - TBuf8<KObexObjectDescriptionSize> iTargetHeader; /** the Target header from the connect packet, if any was specified */
1.518 -
1.519 -private:
1.520 - // This data padding has been added to help prevent future binary compatibility breaks
1.521 - // Neither iPadding1 nor iPadding2 have been zero'd because they are currently not used
1.522 - TUint32 iPadding1;
1.523 - TUint32 iPadding2;
1.524 - };
1.525 -
1.526 -
1.527 -
1.528 -//if these codes are extended due to a IRObex spec update ensure
1.529 -//that the TInt immediately below are updated
1.530 -//and the default in the method IrOBEXUtil::ObexResponse is also updated
1.531 -enum TObexResponse
1.532 - {
1.533 -/** Response is "Continue" */
1.534 - ERespContinue = 0x10,
1.535 -
1.536 -/** Response is "Success" */
1.537 - ERespSuccess = 0x20,
1.538 -
1.539 -/** Response is "Created" */
1.540 - ERespCreated = 0x21,
1.541 -
1.542 -/** Response is "Accepted" */
1.543 - ERespAccepted = 0x22,
1.544 -
1.545 -/** Response is "Non-Authenticated Information" */
1.546 - ERespNonAuthInfo = 0x23,
1.547 -
1.548 -/** Response is "No Content" */
1.549 - ERespNoContent = 0x24,
1.550 -
1.551 -/** Response is "Reset Content" */
1.552 - ERespResetContent = 0x25,
1.553 -
1.554 -/** Response is "Partial Content" */
1.555 - ERespPartialContent = 0x26,
1.556 -
1.557 -/** Response is "Multiple Choices" */
1.558 - ERespMultipleChoices = 0x30,
1.559 -
1.560 -/** Response is "Moved Permanently" */
1.561 - ERespMovedPerm = 0x31,
1.562 -
1.563 -/** Response is "Moved Temporarily" */
1.564 - ERespMovedTemp = 0x32,
1.565 -
1.566 -/** Response is "See Other" */
1.567 - ERespSeeOther = 0x33,
1.568 -
1.569 -/** Response is "Not Modified" */
1.570 - ERespNotModified = 0x34,
1.571 -
1.572 -/** Response is "Use Proxy" */
1.573 - ERespUseProxy = 0x35,
1.574 -
1.575 -/** Response is "Bad Request" */
1.576 - ERespBadRequest = 0x40,
1.577 -
1.578 -/** Response is "Unauthorized" */
1.579 - ERespUnauthorized = 0x41,
1.580 -
1.581 -/** Response is "Payment Required" */
1.582 - ERespPaymentRequired = 0x42,
1.583 -
1.584 -/** Response is "Forbidden" */
1.585 - ERespForbidden = 0x43,
1.586 -
1.587 -/** Response is "Not Found" */
1.588 - ERespNotFound = 0x44,
1.589 -
1.590 -/** Response is "Method Not Allowed" */
1.591 - ERespMethodNotAllowed = 0x45,
1.592 -
1.593 -/** Response is "Not Acceptable" */
1.594 - ERespNotAcceptable = 0x46,
1.595 -
1.596 -/** Response is "Proxy Authentication is Required" */
1.597 - ERespProxyAuthenReqd = 0x47,
1.598 -
1.599 -/** Response is "Timed Out" */
1.600 - ERespTimedOut = 0x48,
1.601 -
1.602 -/** Response is "Conflict" */
1.603 - ERespConflict = 0x49,
1.604 -
1.605 -/** Response is "Gone" */
1.606 - ERespGone = 0x4A,
1.607 -
1.608 -/** Response is "Length Required" */
1.609 - ERespLengthReqd = 0x4B,
1.610 -
1.611 -/** Response is "Precondition Failed" */
1.612 - ERespPreCondFailed = 0x4C,
1.613 -
1.614 -/** Response is "Required Entity is Too Large" */
1.615 - ERespReqEntityTooLarge = 0x4D,
1.616 -
1.617 -/** Response is "Required URL is Too Large" */
1.618 - ERespReqURLTooLarge = 0x4E,
1.619 -
1.620 -/** Response is "Unsupported Media Type" */
1.621 - ERespUnsupMediaType = 0x4F,
1.622 -
1.623 -/** Response is "Internal Error" */
1.624 - ERespInternalError = 0x50,
1.625 -
1.626 -/** Response is "Not Implemented" */
1.627 - ERespNotImplemented = 0x51,
1.628 -
1.629 -/** Response is "Bad Gateway" */
1.630 - ERespBadGateway = 0x52,
1.631 -
1.632 -/** Response is "Service Unavailable" */
1.633 - ERespServiceUnavail = 0x53,
1.634 -
1.635 -/** Response is "Gateway Timeout" */
1.636 - ERespGatewayTimeout = 0x54,
1.637 -
1.638 -/** Response is "HTTP Version is Not Supported" */
1.639 - ERespHTTPVerNotSupp = 0x55,
1.640 -
1.641 -/** Response is "Database is Full" */
1.642 - ERespDatabaseFull = 0x60,
1.643 -
1.644 -/** Response is "Database is Locked" */
1.645 - ERespDatabaseLocked = 0x61,
1.646 -
1.647 -/** Response is "Service is Unavailable" */
1.648 - ERespServiceUnavailable = 0xD3,
1.649 - };
1.650 -
1.651 -
1.652 -//some error codes to be used specifically by the client
1.653 -//these shall, be mapped directly to OBEX defined error codes.
1.654 -const TInt KErrIrObexRespSuccess = KErrIrObexRespBase - ERespSuccess; //-5532 returns 0x20 (0xA0)
1.655 -const TInt KErrIrObexRespCreated = KErrIrObexRespBase - ERespCreated; //-5533 returns 0x21 (0xA1)
1.656 -const TInt KErrIrObexRespAccepted = KErrIrObexRespBase - ERespAccepted; //-5534 returns 0x22 (0xA2)
1.657 -const TInt KErrIrObexRespNonAuthInfo = KErrIrObexRespBase - ERespNonAuthInfo; //-5535 returns 0x23 (0xA3)
1.658 -const TInt KErrIrObexRespNoContent = KErrIrObexRespBase - ERespNoContent; //-5536 returns 0x24 (0xA4)
1.659 -const TInt KErrIrObexRespResetContent = KErrIrObexRespBase - ERespResetContent; //-5537 returns 0x25 (0xA5)
1.660 -const TInt KErrIrObexRespPartialContent = KErrIrObexRespBase - ERespPartialContent; //-5538 returns 0x26 (0xA6)
1.661 -const TInt KErrIrObexRespMultipleChoices = KErrIrObexRespBase - ERespMultipleChoices; //-5548 returns 0x30 (0xB0)
1.662 -const TInt KErrIrObexRespMovedPerm = KErrIrObexRespBase - ERespMovedPerm; //-5549 returns 0x31 (0xB1)
1.663 -const TInt KErrIrObexRespMovedTemp = KErrIrObexRespBase - ERespMovedTemp; //-5550 returns 0x32 (0xB2)
1.664 -const TInt KErrIrObexRespSeeOther = KErrIrObexRespBase - ERespSeeOther; //-5551 returns 0x33 (0xB3)
1.665 -const TInt KErrIrObexRespNotModified = KErrIrObexRespBase - ERespNotModified; //-5552 returns 0x34 (0xB4)
1.666 -const TInt KErrIrObexRespUseProxy = KErrIrObexRespBase - ERespUseProxy; //-5553 returns 0x35 (0xB5)
1.667 -const TInt KErrIrObexRespBadRequest = KErrIrObexRespBase - ERespBadRequest; //-5564 returns 0x40 (0xC0)
1.668 -const TInt KErrIrObexRespUnauthorized = KErrIrObexRespBase - ERespUnauthorized; //-5565 returns 0x41 (0xC1)
1.669 -const TInt KErrIrObexRespPaymentRequired = KErrIrObexRespBase - ERespPaymentRequired; //-5566 returns 0x42 (0xC2)
1.670 -const TInt KErrIrObexRespForbidden = KErrIrObexRespBase - ERespForbidden; //-5567 returns 0x43 (0xC3)
1.671 -const TInt KErrIrObexRespNotFound = KErrIrObexRespBase - ERespNotFound; //-5568 returns 0x44 (0xC4)
1.672 -const TInt KErrIrObexRespMethodNotAllowed = KErrIrObexRespBase - ERespMethodNotAllowed; //-5569 returns 0x45 (0xC5)
1.673 -const TInt KErrIrObexRespNotAcceptable = KErrIrObexRespBase - ERespNotAcceptable; //-5570 returns 0x46 (0xC6)
1.674 -const TInt KErrIrObexRespProxyAuthenReqd = KErrIrObexRespBase - ERespProxyAuthenReqd; //-5571 returns 0x47 (0xC7)
1.675 -const TInt KErrIrObexRespTimedOut = KErrIrObexRespBase - ERespTimedOut; //-5572 returns 0x48 (0xC8)
1.676 -const TInt KErrIrObexRespConflict = KErrIrObexRespBase - ERespConflict; //-5573 returns 0x49 (0xC9)
1.677 -const TInt KErrIrObexRespGone = KErrIrObexRespBase - ERespGone; //-5574 returns 0x4A (0xCA)
1.678 -const TInt KErrIrObexRespLengthReqd = KErrIrObexRespBase - ERespLengthReqd; //-5575 returns 0x4B (0xCB)
1.679 -const TInt KErrIrObexRespPreCondFailed = KErrIrObexRespBase - ERespPreCondFailed; //-5576 returns 0x4C (0xCC)
1.680 -const TInt KErrIrObexRespReqEntityTooLarge = KErrIrObexRespBase - ERespReqEntityTooLarge;//-5577 returns 0x4D (0xCD)
1.681 -const TInt KErrIrObexRespReqURLTooLarge = KErrIrObexRespBase - ERespReqURLTooLarge; //-5578 returns 0x4E (0xCE)
1.682 -const TInt KErrIrObexRespUnsupMediaType = KErrIrObexRespBase - ERespUnsupMediaType; //-5579 returns 0x4F (0xCF)
1.683 -const TInt KErrIrObexRespInternalError = KErrIrObexRespBase - ERespInternalError; //-5580 returns 0x50 (0xD0)
1.684 -const TInt KErrIrObexRespNotImplemented = KErrIrObexRespBase - ERespNotImplemented; //-5581 returns 0x51 (0xD1)
1.685 -const TInt KErrIrObexRespBadGateway = KErrIrObexRespBase - ERespBadGateway; //-5582 returns 0x52 (0xD2)
1.686 -const TInt KErrIrObexRespServiceUnavail = KErrIrObexRespBase - ERespServiceUnavail; //-5583 returns 0x53 (0xD3)
1.687 -const TInt KErrIrObexRespGatewayTimeout = KErrIrObexRespBase - ERespGatewayTimeout; //-5584 returns 0x54 (0xD4)
1.688 -const TInt KErrIrObexRespHTTPVerNotSupp = KErrIrObexRespBase - ERespHTTPVerNotSupp; //-5585 returns 0x55 (0xD5)
1.689 -const TInt KErrIrObexRespDatabaseFull = KErrIrObexRespBase - ERespDatabaseFull; //-5596 returns 0x60 (0xE0)
1.690 -const TInt KErrIrObexRespDatabaseLocked = KErrIrObexRespBase - ERespDatabaseLocked; //-5597 returns 0x61 (0xE1)
1.691 -
1.692 -#endif // __OBEXCONSTANTS_H