22
|
1 |
/*
|
|
2 |
* Copyright (c) 2010 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: Declares authorisation notifier class.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef BTACCPANIC_H
|
|
19 |
#define BTACCPANIC_H
|
|
20 |
|
|
21 |
_LIT(KBtAccPanicName, "BtAcc Panic");
|
|
22 |
|
|
23 |
enum TBtAccPanic
|
|
24 |
{
|
|
25 |
ENoShutdownTimer = 0,
|
|
26 |
};
|
|
27 |
|
|
28 |
template <typename XAny>
|
|
29 |
struct TBtAccPanicCodeTypeChecker
|
|
30 |
{
|
|
31 |
inline static void Check(XAny) { }
|
|
32 |
};
|
|
33 |
|
|
34 |
#define BTACC_PANIC(CODE) \
|
|
35 |
TBtAccPanicCodeTypeChecker<TBtAccPanic>::Check(CODE), \
|
|
36 |
User::Panic(KBtAccPanicName, CODE)
|
|
37 |
|
|
38 |
|
|
39 |
#endif // BTACCPANIC_H
|
|
40 |
|
|
41 |
|