os/mm/devsound/sounddevbt/src/Plugin/HwDevice/Audio/MmfBtAudioCodec.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 // Copyright (c) 2002-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 //
    15 
    16 
    17 #ifndef __MMF_BT_AUDIOCODEC_H__
    18 #define __MMF_BT_AUDIOCODEC_H__
    19 #include <e32std.h>
    20 
    21 /*
    22 *
    23 * class TMmfAudioAudioCodecPanics provides a name space for audio codec
    24 * panics
    25 *
    26 **/
    27 class TMmfAudioCodecPanicsNameSpace
    28 {
    29 public:
    30 	/*
    31 	 A list of panic codes for Codecs
    32 	@internalTechnology
    33 	 EBadArgument indicates a bad argument
    34 	 EBadState indicates a state viaolation
    35 	 EBadInvariant indicates an invariant violation
    36 	 EPostConditionViolation indicates a post condition violation
    37 	*/
    38 	enum TMmfAudioCodecPanics
    39 		{
    40 		EBadArgument,
    41 		EBadState,
    42 		EBadInvariant,
    43 		EBadReset,
    44 		EPostConditionViolation
    45 		};
    46 public:
    47 	inline static void Panic(const TMmfAudioCodecPanicsNameSpace::TMmfAudioCodecPanics aPanic);
    48 };
    49 
    50 /*
    51 *
    52 * Panic
    53 * @param aPanic is the panic code for the codec
    54 *
    55 */
    56 inline void TMmfAudioCodecPanicsNameSpace::Panic(const TMmfAudioCodecPanicsNameSpace::TMmfAudioCodecPanics aPanic)
    57 	{
    58 	_LIT(KAudioCodecPanicCategory, "AudioCodec");
    59 	User::Panic(KAudioCodecPanicCategory, aPanic);
    60 	}
    61 
    62 #endif //__MMF_BT_AUDIOCODEC_H__