locationmapnavfw/library/inc/mninternal.inl
changeset 0 667063e416a2
equal deleted inserted replaced
-1:000000000000 0:667063e416a2
       
     1 /*
       
     2 * Copyright (c) 2005-2006 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Internal inline methods
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // -----------------------------------------------------------------------------
       
    20 //  Used to panic server implementation
       
    21 // -----------------------------------------------------------------------------
       
    22 //
       
    23 inline void PanicServer( TInt aReason )
       
    24     {
       
    25     User::Panic( KMnPanicServerFault, aReason );
       
    26     }
       
    27 
       
    28 // -----------------------------------------------------------------------------
       
    29 //  Used to panic client from server side
       
    30 // -----------------------------------------------------------------------------
       
    31 //
       
    32 inline void PanicClient( const RMessage2& aMessage, TInt aReason )
       
    33     {
       
    34     aMessage.Panic( KMnPanicClientFault, aReason );
       
    35     }
       
    36 
       
    37 // -----------------------------------------------------------------------------
       
    38 //  Used for internal panic, debugging time only
       
    39 // -----------------------------------------------------------------------------
       
    40 //
       
    41 inline void PanicSelf( TInt aReason )
       
    42     {
       
    43     User::Panic( KMnPanicInternal, aReason );
       
    44     }