wvuing/IMPSConnectionUI/ServiceSrc/CnUiDll.cpp
branchRCL_3
changeset 13 a941bc465d9f
parent 0 094583676ce7
equal deleted inserted replaced
12:6ca72c0fe49a 13:a941bc465d9f
       
     1 /*
       
     2 * Copyright (c) 2003 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:  Connection UI dll implementation.
       
    15 *
       
    16 */
       
    17 
       
    18 // INCLUDE FILES
       
    19 #include <E32std.h>
       
    20 #include "CnUiPanics.h"
       
    21 
       
    22 EXPORT_C void Reserved_1() {}
       
    23 
       
    24 /**
       
    25  * Connection UI panic handler.
       
    26  * @param aReason The reason for panic.
       
    27  *
       
    28  * @since 1.2
       
    29  */
       
    30 GLDEF_C void CnUiPanic( TIMPSConnectionUiPanicReason aReason )
       
    31     {
       
    32     User::Panic( KIMPSConnUi_PanicCat, aReason );
       
    33     }
       
    34 
       
    35 
       
    36 /**
       
    37  * Connection UI panic & leave handler.
       
    38  * Ugly ifdefs to suppress unused formal
       
    39  * parameter warnings.
       
    40  * @param aPanicReason The reason for panic.
       
    41  * @param aLeaveCode The reason for leave.
       
    42  * @since 1.2
       
    43  */
       
    44 #if defined(_DEBUG)
       
    45 GLDEF_C void CnUiPanicOrLeaveL( TIMPSConnectionUiPanicReason aReason,  TInt /*aLeaveCode*/ )
       
    46 #else
       
    47 GLDEF_C void CnUiPanicOrLeaveL( TIMPSConnectionUiPanicReason /*aReason*/, TInt aLeaveCode )
       
    48 #endif
       
    49     {
       
    50 #if defined(_DEBUG)
       
    51     //in debug builds panic with asked reason
       
    52     User::Panic( KIMPSConnUi_PanicCat, aReason );
       
    53 #else
       
    54     //in release builds leave
       
    55     User::Leave( aLeaveCode );
       
    56 #endif
       
    57     }
       
    58 
       
    59 
       
    60 //  End of File
       
    61 
       
    62 
       
    63