telephonyserverplugins/multimodetsy/hayes/panic.cpp
changeset 0 3553901f7fa8
equal deleted inserted replaced
-1:000000000000 0:3553901f7fa8
       
     1 // Copyright (c) 1997-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 #include <e32std.h>		// for GLDEF_C and User::
       
    17 #include "panic.h"		// Header for this file
       
    18 
       
    19 //
       
    20 // Panic Function
       
    21 //
       
    22 GLDEF_C void Panic(TTSYPanic aPanicNumber)
       
    23 	{
       
    24 	_LIT(panicText,"MM");
       
    25 	_LIT(extension,".TSY");
       
    26 
       
    27 	TName myTsyName(panicText);
       
    28 
       
    29 	#ifdef TSY_INSTANCE
       
    30 		TBuf16<16> tgt;
       
    31 		tgt.Num(TSY_INSTANCE);
       
    32 		myTsyName.Append(tgt);
       
    33 	#endif
       
    34 	myTsyName.Append(extension);
       
    35 
       
    36 	User::Panic(myTsyName,aPanicNumber);
       
    37 	}