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