telephonyserverplugins/simatktsy/src/cmmmessagemanagerbase.cpp
branchRCL_3
changeset 19 630d2f34d719
parent 0 3553901f7fa8
child 20 07a122eea281
equal deleted inserted replaced
18:17af172ffa5f 19: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 "cmmmessagemanagerbaseTraces.h"
       
    23 #endif
       
    24 
    19 #include "cmmmessagemanagerbase.h"
    25 #include "cmmmessagemanagerbase.h"
    20 #include "tflogger.h"
       
    21 #include "ctsydelegates.h"
    26 #include "ctsydelegates.h"
    22 #include "csatmessagerouterproxy.h"
    27 #include "csatmessagerouterproxy.h"
    23 #include <ctsy/pluginapi/mmessagerouter.h>
    28 #include <ctsy/pluginapi/mmessagerouter.h>
    24 
    29 
    25 // ======== MEMBER FUNCTIONS ========
    30 // ======== MEMBER FUNCTIONS ========
    69 // ---------------------------------------------------------------------------
    74 // ---------------------------------------------------------------------------
    70 //
    75 //
    71 TInt CMmMessageManagerBase::HandleRequestL(    
    76 TInt CMmMessageManagerBase::HandleRequestL(    
    72     const TInt aIpc )        
    77     const TInt aIpc )        
    73     {
    78     {
    74 TFLOGSTRING2("TSY: CMmMessageManagerBase::HandleRequestL. IPC = %d", aIpc );
    79 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMMESSAGEMANAGERBASE_HANDLEREQUESTL_1, "TSY: CMmMessageManagerBase::HandleRequestL. IPC = %d", aIpc );
    75     return HandleRequestL( 
    80     return HandleRequestL( 
    76         aIpc, REINTERPRET_CAST( const CMmDataPackage*, NULL ) );
    81         aIpc, REINTERPRET_CAST( const CMmDataPackage*, NULL ) );
    77     }
    82     }
    78 
    83 
    79 // ---------------------------------------------------------------------------
    84 // ---------------------------------------------------------------------------
    84 //
    89 //
    85 TInt CMmMessageManagerBase::HandleRequestL(    
    90 TInt CMmMessageManagerBase::HandleRequestL(    
    86     const TInt aIpc,      
    91     const TInt aIpc,      
    87     const CMmDataPackage* aDataPackage )
    92     const CMmDataPackage* aDataPackage )
    88     {
    93     {
    89 TFLOGSTRING2("TSY: CMmMessageManagerBase::HandleRequestL. IPC = %d", aIpc );
    94 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMMESSAGEMANAGERBASE_HANDLEREQUESTL1_1, "TSY: CMmMessageManagerBase::HandleRequestL. IPC = %d", aIpc );
    90    
    95    
    91     return iMessageRouter.ExtFuncL( aIpc, aDataPackage );
    96     return iMessageRouter.ExtFuncL( aIpc, aDataPackage );
    92     }
    97     }
    93 
    98 
    94 // ---------------------------------------------------------------------------
    99 // ---------------------------------------------------------------------------
    99 //
   104 //
   100 TInt CMmMessageManagerBase::HandleRequestL(    
   105 TInt CMmMessageManagerBase::HandleRequestL(    
   101     const TInt aIpc,        
   106     const TInt aIpc,        
   102     const TDataPackage* aDataPackage )
   107     const TDataPackage* aDataPackage )
   103     {
   108     {
   104 TFLOGSTRING2("TSY: CMmMessageManagerBase::HandleRequestL. IPC = %d", aIpc );
   109 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMMESSAGEMANAGERBASE_HANDLEREQUESTL2_1, "TSY: CMmMessageManagerBase::HandleRequestL. IPC = %d", aIpc );
   105 
   110 
   106     // map the TDataPackage into a CMmDataPackage
   111     // map the TDataPackage into a CMmDataPackage
   107     // Non-core Methods from the SOS layer using the DOS layer will perforn
   112     // Non-core Methods from the SOS layer using the DOS layer will perforn
   108     // always this mapping.
   113     // always this mapping.
   109     // TSY core methods will call directly the overloaded HandleRequest method 
   114     // TSY core methods will call directly the overloaded HandleRequest method