sl@0: // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // MMFAudioCodecBase.h sl@0: // sl@0: // sl@0: sl@0: sl@0: #ifndef __MMF_AUDIOCODEC_BASE_H__ sl@0: #define __MMF_AUDIOCODEC_BASE_H__ sl@0: #include sl@0: sl@0: /* sl@0: * sl@0: * class TMmfAudioAudioCodecPanics provides a name space for audio codec sl@0: * panics sl@0: * sl@0: **/ sl@0: class TMmfAudioCodecPanicsNameSpace sl@0: { sl@0: public: sl@0: /* sl@0: A list of panic codes for Codecs sl@0: @internalTechnology sl@0: EBadArgument indicates a bad argument sl@0: EBadState indicates a state viaolation sl@0: EBadInvariant indicates an invariant violation sl@0: EPostConditionViolation indicates a post condition violation sl@0: */ sl@0: enum TMmfAudioCodecPanics sl@0: { sl@0: EBadArgument, sl@0: EBadState, sl@0: EBadInvariant, sl@0: EBadReset, sl@0: EPostConditionViolation sl@0: }; sl@0: public: sl@0: inline static void Panic(const TMmfAudioCodecPanicsNameSpace::TMmfAudioCodecPanics aPanic); sl@0: }; sl@0: sl@0: /* sl@0: * sl@0: * Panic sl@0: * @param aPanic is the panic code for the codec sl@0: * sl@0: */ sl@0: inline void TMmfAudioCodecPanicsNameSpace::Panic(const TMmfAudioCodecPanicsNameSpace::TMmfAudioCodecPanics aPanic) sl@0: { sl@0: _LIT(KAudioCodecPanicCategory, "AudioCodec"); sl@0: User::Panic(KAudioCodecPanicCategory, aPanic); sl@0: } sl@0: sl@0: #endif //__MMF_AUDIOCODEC_BASE_H__