bluetoothengine/btaudioman/inc/btaccpanic.h
branchRCL_3
changeset 6 6a29d5ad0713
equal deleted inserted replaced
2:0b192a3a05a4 6:6a29d5ad0713
       
     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     EMaxNumberOfConflictsExceeded = 1,
       
    27     };
       
    28 
       
    29 template <typename XAny>
       
    30 struct TBtAccPanicCodeTypeChecker
       
    31     {
       
    32     inline static void Check(XAny) { }
       
    33     };
       
    34 
       
    35 #define BTACC_PANIC(CODE) \
       
    36     TBtAccPanicCodeTypeChecker<TBtAccPanic>::Check(CODE), \
       
    37     User::Panic(KBtAccPanicName, CODE)
       
    38 
       
    39 
       
    40 #endif // BTACCPANIC_H
       
    41