1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/mw/obexpanics.h Wed Mar 31 12:27:01 2010 +0100
1.3 @@ -0,0 +1,157 @@
1.4 +// Copyright (c) 2005-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 +#ifndef OBEX_PANICS_H
1.20 +#define OBEX_PANICS_H
1.21 +
1.22 +/**
1.23 +@file
1.24 +@publishedAll
1.25 +@released
1.26 +
1.27 +This file contains details of all OBEX and OBEX Transport panics which may be raised
1.28 +as a result programming error by the users of OBEX (e.g. Client or Server Application
1.29 +or a proprietry transport controller).
1.30 +
1.31 +Internal panic codes should not be raised due to user errors but would reflect
1.32 +internal Obex programming errors - see inc/obexfaults.h
1.33 +*/
1.34 +
1.35 +
1.36 +/**
1.37 +Category for Obex panics
1.38 +@see TObexPanicCode
1.39 +*/
1.40 +_LIT(KObexPanicCategory, "Obex");
1.41 +
1.42 +/**
1.43 +@publishedAll
1.44 +@released
1.45 +
1.46 +All Obex panics which may be raised as a result of a client (i.e. external) programming error.
1.47 +Internal Obex panics are errors listed in TObexFaultCode
1.48 +@see TObexFaultCode
1.49 +*/
1.50 +enum TObexPanicCode
1.51 + {
1.52 + /** A NULL value was supplied for the data buffer. Note that this
1.53 + pointer can refer to either a memory buffer or a pointer to a RFile object.
1.54 + @see CObexBufObject
1.55 + */
1.56 + ENullPointer = 0,
1.57 +
1.58 +
1.59 + /** The supplied buffer is of zero length.
1.60 + @see CObexBufObject
1.61 + */
1.62 + EEmptyBuffer = 1,
1.63 +
1.64 +
1.65 + /** The header is not of the requested type.
1.66 + @see CObexHeader
1.67 + */
1.68 + EHeaderAsBadType = 2,
1.69 +
1.70 +
1.71 + /** An unknown TFileBuffering value was supplied.
1.72 + @see CObexBufObject
1.73 + */
1.74 + EInvalidBufferStrategy = 3,
1.75 +
1.76 +
1.77 + /** The RFile object does not point to a valid (open) file.
1.78 + @see CObexBufObject
1.79 + */
1.80 + ENullFileHandle = 4,
1.81 +
1.82 +
1.83 + /** An unknown TObexBufferingDetails object was supplied to a buffer object.
1.84 + @see CObexBufObject
1.85 + */
1.86 + EInvalidBufferDetails = 5,
1.87 +
1.88 +
1.89 + /** A call has been made to CObexServer::RequestIndicationCallback when no
1.90 + asynchronous request is outstanding.
1.91 + @see MObexNotifyAsync
1.92 + @see CObexServer
1.93 + */
1.94 + ENoNotificationToComplete = 6,
1.95 +
1.96 +
1.97 + /** A call has been made to CObexServer::Start when an asynchronous request
1.98 + is outstanding.
1.99 + @see MObexNotifyAsync
1.100 + @see CObexServer
1.101 + */
1.102 + EChangeInterfaceDuringWait = 7,
1.103 +
1.104 +
1.105 +
1.106 + /** An invalid packet process event has been signalled.
1.107 + */
1.108 + EBadPacketProcessEvent = 8,
1.109 +
1.110 +
1.111 + /** An event is available for signalling, but there is no observer set.
1.112 + */
1.113 + ENoPacketProcessObserverSet = 9,
1.114 +
1.115 + /** In CObexServer, a call has been made to RequestCompleteIndicationCallback(TObexResponse)
1.116 + or RequestIndicationCallback(TObexResponse) with invalid response code or
1.117 + RequestCompleteIndicationCallback(TInt) with invalid Symbian error code
1.118 + */
1.119 + EInvalidResponseCodeFromServerApp = 10,
1.120 +
1.121 + /** In CObexServer, RequestCompleteIndicationCallback has been called in response to Put/GetRequestIndication
1.122 + or ReuqestIndicationCallback has been called in response to Put/GetComplete or SetPath Indication
1.123 + */
1.124 + EInvalidResponseCallback = 11,
1.125 +
1.126 + /** The last server response code has been requested prior to a response from the server.
1.127 + */
1.128 + ENoResponseCodeToReturn = 12,
1.129 +
1.130 + /** Adding End of Body header when there is data in the object.
1.131 + */
1.132 + EAddingInvalidEoBHeader = 13,
1.133 +
1.134 + /** A user has requested to override the handling of a request
1.135 + packet at an invalid time.
1.136 + */
1.137 + EOverrideRequestHandlingInBadState = 14,
1.138 + };
1.139 +
1.140 +
1.141 +
1.142 +/**
1.143 +The category for obex transport panics
1.144 +*/
1.145 +_LIT(KObexTransportPanicCat, "ObexTransPanics");
1.146 +
1.147 +/**
1.148 +Obex transport panics raised as a result of client programming error
1.149 +*/
1.150 +enum TObexTransportPanicCode
1.151 + {
1.152 + /**
1.153 + The number of transport implementations for a given transport name is more than what is allowed.
1.154 + Check that there is not more than the allowed number of plugin resource files containing the same default
1.155 + data and inteface uid.
1.156 + */
1.157 + EInvalidNumberOfTransportImplementations = 0,
1.158 + };
1.159 +
1.160 +#endif