1 /* |
|
2 * Copyright (c) 2009 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: Bluetooth serial engine panic codes. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __BTSERIALENGINE_PAN__ |
|
20 #define __BTSERIALENGINE_PAN__ |
|
21 |
|
22 #include <e32def.h> |
|
23 #include <e32std.h> |
|
24 |
|
25 /** Panic Categories */ |
|
26 _LIT( KPanicSerialEngine, "BTSerialEngine" ); // All engine classes |
|
27 _LIT( KPanicBTServiceAdvertiser, "BTServiceAdvertiser" ); // only service advertiser |
|
28 |
|
29 |
|
30 enum TBTSerialEnginePanics |
|
31 { |
|
32 EBTPointToPointReceiverInvalidState = 1, |
|
33 EBTPointToPointSenderExists = 2, |
|
34 EBTPointToPointReceiverExists = 3, |
|
35 EBTPointToPointSenderInvalidState = 4, |
|
36 EBTPointToPointNoSender = 5, |
|
37 EBTPointToPointAddMessage = 6, |
|
38 EBTPointToPointNextRecordRequestComplete = 7, |
|
39 EBTPointToPointAttributeRequestResult = 8, |
|
40 EBTPointToPointAttributeRequestComplete = 9, |
|
41 EBTPointToPointProtocolRead = 10, |
|
42 EBTPointToPointAttributeRequest = 11, |
|
43 EBTPointToPointSdpRecordDelete = 12, |
|
44 EBTPointToPointServerStop = 13, |
|
45 EBTPointToPointInvalidLogicState = 14, |
|
46 EBTPointToPointUnableToDisconnect = 15, |
|
47 |
|
48 EBTSerialEngineReadSocketBadState = 16, |
|
49 EBTSerialEngineWriteSocketBadState = 17 |
|
50 }; |
|
51 |
|
52 inline void Panic( TBTSerialEnginePanics aReason ) |
|
53 { |
|
54 User::Panic( KPanicSerialEngine, aReason ); |
|
55 } |
|
56 |
|
57 |
|
58 #endif // __BTSERIALENGINE_PAN__ |
|
59 |
|
60 // End of File |
|