cbsref/telephonyrefplugins/atltsy/atcommand/generic/src/panic.cpp
branchRCL_3
changeset 20 07a122eea281
parent 19 630d2f34d719
child 21 4814c5a49428
equal deleted inserted replaced
19:630d2f34d719 20:07a122eea281
     1 // Copyright (c) 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 // @file panic.cpp
       
    15 // Panic codes and panic function. This header should be kept private and not exported to
       
    16 // /epoc32/include/
       
    17 
       
    18 #include <e32std.h>		/// for GLDEF_C and User::
       
    19 #include "panic.h"		/// Header for this file
       
    20 
       
    21 //
       
    22 // Panic Function
       
    23 //
       
    24 GLDEF_C void Panic(TTSYPanic aPanicNumber)
       
    25 	{
       
    26 	_LIT(panicText,"PhoneTsy");
       
    27 	_LIT(extension,".TSY");
       
    28 
       
    29 	TName myTsyName(panicText);
       
    30 
       
    31 	#ifdef TSY_INSTANCE
       
    32 		TBuf16<16> tgt;
       
    33 		tgt.Num(TSY_INSTANCE);
       
    34 		myTsyName.Append(tgt);
       
    35 	#endif
       
    36 	myTsyName.Append(extension);
       
    37 
       
    38 	User::Panic(myTsyName,aPanicNumber);
       
    39 	}