smsprotocols/smsstack/smsprot/Src/smspmain.cpp
branchRCL_3
changeset 65 630d2f34d719
parent 0 3553901f7fa8
child 66 07a122eea281
equal deleted inserted replaced
61:17af172ffa5f 65:630d2f34d719
     1 // Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 1999-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".
    16 //
    16 //
    17 
    17 
    18 /**
    18 /**
    19  @file
    19  @file
    20 */
    20 */
       
    21 
       
    22 
       
    23 #include "OstTraceDefinitions.h"
       
    24 #ifdef OST_TRACE_COMPILER_IN_USE
       
    25 #include "smspmainTraces.h"
       
    26 #endif
    21 
    27 
    22 #include <e32std.h>
    28 #include <e32std.h>
    23 #include "Gsmuelem.h"
    29 #include "Gsmuelem.h"
    24 #include <exterror.h>
    30 #include <exterror.h>
    25 #include "smspmain.h"
    31 #include "smspmain.h"
    60 
    66 
    61 		default:
    67 		default:
    62 			rpError = KErrGsmSMSUnspecifiedProtocolError;
    68 			rpError = KErrGsmSMSUnspecifiedProtocolError;
    63 			break;
    69 			break;
    64 		}
    70 		}
    65 	LOGSMSPROT3("ErrorToRPError (%d->%d)", aError, rpError);
    71 	OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, ERRORTORPERROR_1, "ErrorToRPError (%d->%d)", aError, rpError);
    66 
    72 
    67 	return rpError;
    73 	return rpError;
    68 	} // ErrorToRPError
    74 	} // ErrorToRPError
    69 
    75 
    70 
    76 
    96                 {
   102                 {
    97                 tpError = TSmsFailureCause::ESmsErrorErrorInMS;
   103                 tpError = TSmsFailureCause::ESmsErrorErrorInMS;
    98                 } break;
   104                 } break;
    99             }
   105             }
   100         }
   106         }
   101     LOGSMSPROT3("ErrorToTPError (%d->%d)", aError, tpError);
   107     OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, ERRORTOTPERROR_1, "ErrorToTPError (%d->%d)", aError, tpError);
   102     return tpError;
   108     return tpError;
   103 	}
   109 	}
   104 
   110 
   105 GLREF_C TInt FailureCauseToError(TInt aFailureCause)
   111 GLREF_C TInt FailureCauseToError(TInt aFailureCause)
   106     {
   112     {
   113  */
   119  */
   114 GLDEF_C void SmspPanic(TSmspPanic aPanic)
   120 GLDEF_C void SmspPanic(TSmspPanic aPanic)
   115     {
   121     {
   116     // Ignore in code coverage  - panic method
   122     // Ignore in code coverage  - panic method
   117     BULLSEYE_OFF
   123     BULLSEYE_OFF
   118     LOGSMSPROT2("SMSPPANIC %d", aPanic);
   124     OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, SMSPPANIC_1, "SMSPPANIC %d", aPanic);
   119     _LIT(KSmsprotPanic, "SMSP");
   125     _LIT(KSmsprotPanic, "SMSP");
   120     User::Panic(KSmsprotPanic,aPanic);
   126     User::Panic(KSmsprotPanic,aPanic);
   121     BULLSEYE_RESTORE
   127     BULLSEYE_RESTORE
   122     }
   128     }