equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2005-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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef BTGPSPANIC_H |
|
22 #define BTGPSPANIC_H |
|
23 |
|
24 // INCLUDES |
|
25 |
|
26 #include <e32base.h> |
|
27 |
|
28 |
|
29 // CONSTANTS |
|
30 |
|
31 // MACROS |
|
32 |
|
33 // DATA TYPES |
|
34 |
|
35 // FUNCTION PROTOTYPES |
|
36 |
|
37 // FORWARD DECLARATIONS |
|
38 |
|
39 // CLASS DECLARATION |
|
40 |
|
41 //BTGPSPSY panic category |
|
42 _LIT(KBtGpsPanicCategory, "BTGPSPSY"); |
|
43 |
|
44 //Panic reason |
|
45 enum TPanicReason |
|
46 { |
|
47 EPanicInvalidCase, ///Invalid case in switch clause. |
|
48 EPanicProcessDefination, ///Invalid process defination during connection. |
|
49 EPanicInvalidNmeaSentence, ///Invalid Nmea sentence. |
|
50 EPanicUnknownPositioningClass, ///Unkown positioning class. |
|
51 EPanicSingletonNotConstructed, ///Singleton not constructed. |
|
52 EPanicIndexOutOfRange ///Index out of range. |
|
53 }; |
|
54 |
|
55 /** |
|
56 * Panic function for BT GPS PSY. |
|
57 * @param aReason The panice reason. |
|
58 * |
|
59 */ |
|
60 inline void Panic(TInt aReason) |
|
61 { |
|
62 User::Panic(KBtGpsPanicCategory, aReason); |
|
63 }; |
|
64 |
|
65 #endif |
|
66 // End of File |
|
67 |