Nokia N97 SDK
Example Applications Guide

AudioStream.pan

00001 /*
00002 * ==============================================================================
00003 *  Name        : AudioStream.pan
00004 *  Part of     : AudioStream
00005 *  Created     : April 28, 2006 by Forum Nokia
00006 *  Description : This file contains thread panics
00007 *  Version     : 2.0
00008 *
00009 *  Copyright (c) 2006 - 2007 Nokia Corporation.
00010 *  This material, including documentation and any related
00011 *  computer programs, is protected by copyright controlled by
00012 *  Nokia Corporation.
00013 * ==============================================================================
00014 */
00015 
00016 #ifndef __AUDIOSTREAM_PAN__
00017 #define __AUDIOSTREAM_PAN__
00018 
00019 #include <e32std.h>
00020 
00021 inline void Panic(TInt aPanicCode)
00022         {
00023         _LIT(KApplicationName, "AudioStream");
00024         User::Panic(KApplicationName, aPanicCode);
00025         }
00026 
00027 inline void PanicIfError(TInt aPanicCode)
00028         {
00029         if (aPanicCode != KErrNone)
00030                 {
00031                 Panic(aPanicCode);
00032                 }
00033         }
00034 
00035 #endif // __AUDIOSTREAM_PAN__
00036 

© Nokia 2009

Back to top