telephonyserverplugins/common_tsy/commontsy/src/mmutility/CMmCommonStaticUtility.cpp
branchRCL_3
changeset 65 630d2f34d719
parent 0 3553901f7fa8
child 66 07a122eea281
equal deleted inserted replaced
61:17af172ffa5f 65:630d2f34d719
     1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
    14 //
    14 //
    15 
    15 
    16 
    16 
    17 
    17 
    18 //  INCLUDE FILES
    18 //  INCLUDE FILES
       
    19 
       
    20 #include "OstTraceDefinitions.h"
       
    21 #ifdef OST_TRACE_COMPILER_IN_USE
       
    22 #include "CMmCommonStaticUtilityTraces.h"
       
    23 #endif
       
    24 
    19 #include <etelmm.h>
    25 #include <etelmm.h>
    20 #include <etelmmerr.h>
    26 #include <etelmmerr.h>
    21 #include <exterror.h>
    27 #include <exterror.h>
    22 #include <ctsy/serviceapi/gsmerror.h>
    28 #include <ctsy/serviceapi/gsmerror.h>
    23 #include "CMmCommonStaticUtility.h"
    29 #include "CMmCommonStaticUtility.h"
    24 
    30 
    25 #include <ctsy/tflogger.h>
       
    26 #include <in_sock.h>
    31 #include <in_sock.h>
    27 
    32 
    28 // ======== MEMBER FUNCTIONS ========
    33 // ======== MEMBER FUNCTIONS ========
    29 
    34 
    30 // ---------------------------------------------------------------------------
    35 // ---------------------------------------------------------------------------
    37 //
    42 //
    38 TInt CMmCommonStaticUtility::EpocErrorCode( 
    43 TInt CMmCommonStaticUtility::EpocErrorCode( 
    39     TInt aCoreErrorCode, // core error
    44     TInt aCoreErrorCode, // core error
    40     TInt aExtendedErrorCode ) // extended error
    45     TInt aExtendedErrorCode ) // extended error
    41     {
    46     {
    42 TFLOGSTRING3("TSY: CMmStaticUtility::EpocErrorCode, Error mapping done, \
    47 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCOMMONSTATICUTILITY_EPOCERRORCODE_1, "TSY: CMmStaticUtility::EpocErrorCode, Error mapping done, \Core error: %d, Extended error: %d", aCoreErrorCode, aExtendedErrorCode );
    43 Core error: %d, Extended error: %d", aCoreErrorCode, aExtendedErrorCode );
       
    44 
    48 
    45     TInt errorCode = ( aCoreErrorCode & 0x0000FFFF ) |
    49     TInt errorCode = ( aCoreErrorCode & 0x0000FFFF ) |
    46                      ( aExtendedErrorCode << 16 );
    50                      ( aExtendedErrorCode << 16 );
    47 
    51 
    48 TFLOGSTRING2("TSY: CMmStaticUtility::EpocErrorCode. It was mapped \
    52 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCOMMONSTATICUTILITY_EPOCERRORCODE_2, "TSY: CMmStaticUtility::EpocErrorCode. It was mapped \to the following Symbian OS error: %d", errorCode );
    49 to the following Symbian OS error: %d", errorCode );
       
    50 
    53 
    51     return errorCode;
    54     return errorCode;
    52     }
    55     }
    53 
    56 
    54 // ---------------------------------------------------------------------------
    57 // ---------------------------------------------------------------------------