bluetoothmgmt/bluetoothclientlib/btlib/btsocketpanic.h
changeset 0 29b1cd4cb562
equal deleted inserted replaced
-1:000000000000 0:29b1cd4cb562
       
     1 // Copyright (c) 2003-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 // BT socket interface types
       
    15 // 
       
    16 //
       
    17 
       
    18 #ifndef BTSOCKETPANIC_H
       
    19 #define BTSOCKETPANIC_H
       
    20 
       
    21 /**
       
    22 Panic values:
       
    23 	EUnfinishedBusiness				Panics if the Bluetooth socket is still in a busy state
       
    24 	EBadArgument					Panics if a bad argument is provided
       
    25 	EBadRequest						Panics if a bad request is received
       
    26 	EInvalidSession					Panics if a session is invalid
       
    27 	EInvalidSubSession				Panics if a sub-session is invalid
       
    28 	EBBInvalidAddress				Panics if an invalid address is provided to the baseband
       
    29 	EBadSyncPacketTypes				Panics if bad packet types are received for a synchronous link
       
    30 	EBasebandAlreadyConnected		Panics if the baseband is already connected
       
    31 	EBasebandFailedDisconnect		Panics if the baseband failed to disconnect properly
       
    32 	EBasebandFailedConnect			Panics if the baseband failed to connect properly
       
    33 	EInvalidOpWhenAutoSniffOn		Panics if an invalid operation occurs in sniff mode
       
    34 	ENullPointerInAsyncDelete		Panics if a pointer to be deleted is invalid
       
    35 
       
    36 */
       
    37 enum TBTSocketPanics
       
    38 	{
       
    39 	EUnfinishedBusiness = 0,
       
    40 	EBadArgument		= 1,
       
    41 	EBadRequest			= 2,
       
    42 	EInvalidSession		= 3,
       
    43 	EInvalidSubSession	= 4,
       
    44 	EBBInvalidAddress	= 5,
       
    45 	EBadSyncPacketTypes	= 6,
       
    46 	EBasebandAlreadyConnected = 7,
       
    47 	EBasebandFailedDisconnect = 8,
       
    48 	EBasebandFailedConnect = 9,
       
    49 	EInvalidOpWhenAutoSniffOn = 10,
       
    50 	ENullPointerInAsyncDelete = 11,
       
    51 	};
       
    52 void Panic(TBTSocketPanics aCode);
       
    53 
       
    54 #endif