phoneclientserver/phoneserver/Src/Standard/PhSrvUtils.cpp
changeset 0 ff3b6d0fd310
child 19 7d48bed6ce0c
equal deleted inserted replaced
-1:000000000000 0:ff3b6d0fd310
       
     1 /*
       
     2 * Copyright (c) 2002-2004 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:  Contains utility functions for Phone Server.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // INCLUDES
       
    20 #include <e32base.h>
       
    21 #include "PhSrvUtils.h"
       
    22 
       
    23 
       
    24 // CONSTANTS
       
    25 _LIT( KPhoneServerPanicCategory, "PhSrvFault" );
       
    26 
       
    27 
       
    28 // ============================ MEMBER FUNCTIONS ===============================
       
    29 
       
    30 // -----------------------------------------------------------------------------
       
    31 // PhoneServerUtils::Panic
       
    32 // 
       
    33 // Panic the server.
       
    34 // -----------------------------------------------------------------------------
       
    35 //
       
    36 void PhoneServerUtils::Panic( TPhoneServerPanic aPanic ) 
       
    37     {
       
    38     User::Panic( KPhoneServerPanicCategory, aPanic );
       
    39     }
       
    40 
       
    41 
       
    42 // -----------------------------------------------------------------------------
       
    43 // PhoneServerUtils::PanicClient
       
    44 // 
       
    45 // Panic the client using server.
       
    46 // -----------------------------------------------------------------------------
       
    47 //
       
    48 void PhoneServerUtils::PanicClient( 
       
    49     TPhoneServerPanic aPanic,
       
    50     const RMessage2& aMessage ) 
       
    51     {
       
    52     aMessage.Panic(
       
    53         KPhoneServerPanicCategory,
       
    54         aPanic );
       
    55     }
       
    56 
       
    57 //  End of File