telephonyserverplugins/simatktsy/src/CSatNotifyMoreTime.cpp
branchRCL_3
changeset 65 630d2f34d719
parent 0 3553901f7fa8
child 66 07a122eea281
equal deleted inserted replaced
61:17af172ffa5f 65:630d2f34d719
     1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2005-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".
    18 //
    18 //
    19 
    19 
    20 
    20 
    21 
    21 
    22 //INCLUDES
    22 //INCLUDES
       
    23 
       
    24 #include "OstTraceDefinitions.h"
       
    25 #ifdef OST_TRACE_COMPILER_IN_USE
       
    26 #include "CSatNotifyMoreTimeTraces.h"
       
    27 #endif
       
    28 
    23 #include <satcs.h>                  // Etel SAT IPC definitions
    29 #include <satcs.h>                  // Etel SAT IPC definitions
    24 #include "CSatTsy.h"                // Tsy class header
    30 #include "CSatTsy.h"                // Tsy class header
    25 #include "CSatNotifyMoreTime.h"  	// Class header
    31 #include "CSatNotifyMoreTime.h"  	// Class header
    26 #include "CSatNotificationsTsy.h"   // Tsy class header
    32 #include "CSatNotificationsTsy.h"   // Tsy class header
    27 #include "CBerTlv.h"                // Ber Tlv data handling
    33 #include "CBerTlv.h"                // Ber Tlv data handling
    28 #include "TTlv.h"					// TTlv class
    34 #include "TTlv.h"					// TTlv class
    29 #include "CSatDataPackage.h"        // Parameter packing 
    35 #include "CSatDataPackage.h"        // Parameter packing 
    30 #include "TfLogger.h"               // For TFLOGSTRING
       
    31 #include "TSatUtility.h"            // Utilities
    36 #include "TSatUtility.h"            // Utilities
    32 #include "CSatTsyReqHandleStore.h"  // Request handle class
    37 #include "CSatTsyReqHandleStore.h"  // Request handle class
    33 #include "cmmmessagemanagerbase.h"  // Message manager class for forwarding req.
    38 #include "cmmmessagemanagerbase.h"  // Message manager class for forwarding req.
    34 
    39 
    35 // -----------------------------------------------------------------------------
    40 // -----------------------------------------------------------------------------
    40 CSatNotifyMoreTime* CSatNotifyMoreTime::NewL
    45 CSatNotifyMoreTime* CSatNotifyMoreTime::NewL
    41         ( 
    46         ( 
    42         CSatNotificationsTsy* aNotificationsTsy 
    47         CSatNotificationsTsy* aNotificationsTsy 
    43         )
    48         )
    44     {
    49     {
    45     TFLOGSTRING("CSAT: CSatNotifyMoreTime::NewL");
    50     OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYMORETIME_NEWL_1, "CSAT: CSatNotifyMoreTime::NewL");
    46    	CSatNotifyMoreTime* const satNotifyMoreTime = 
    51    	CSatNotifyMoreTime* const satNotifyMoreTime = 
    47         new ( ELeave ) CSatNotifyMoreTime( aNotificationsTsy );
    52         new ( ELeave ) CSatNotifyMoreTime( aNotificationsTsy );
    48     CleanupStack::PushL( satNotifyMoreTime );
    53     CleanupStack::PushL( satNotifyMoreTime );
    49     satNotifyMoreTime->ConstructL();
    54     satNotifyMoreTime->ConstructL();
    50     CleanupStack::Pop( satNotifyMoreTime );
    55     CleanupStack::Pop( satNotifyMoreTime );
    51     TFLOGSTRING("CSAT: CSatNotifyMoreTime::NewL, end of method");
    56     OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYMORETIME_NEWL_2, "CSAT: CSatNotifyMoreTime::NewL, end of method");
    52     return satNotifyMoreTime;
    57     return satNotifyMoreTime;
    53     }
    58     }
    54 
    59 
    55 // -----------------------------------------------------------------------------
    60 // -----------------------------------------------------------------------------
    56 // CSatNotifyMoreTime::~CSatNotifyMoreTime
    61 // CSatNotifyMoreTime::~CSatNotifyMoreTime
    60 CSatNotifyMoreTime::~CSatNotifyMoreTime
    65 CSatNotifyMoreTime::~CSatNotifyMoreTime
    61         ( 
    66         ( 
    62 		// None
    67 		// None
    63         )
    68         )
    64     {
    69     {
    65     TFLOGSTRING("CSAT: CSatNotifyMoreTime::~CSatNotifyMoreTime");
    70     OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYMORETIME_DTOR_1, "CSAT: CSatNotifyMoreTime::~CSatNotifyMoreTime");
    66     }
    71     }
    67     
    72     
    68 // -----------------------------------------------------------------------------
    73 // -----------------------------------------------------------------------------
    69 // CSatNotifyMoreTime::CSatNotifyMoreTime
    74 // CSatNotifyMoreTime::CSatNotifyMoreTime
    70 // Default C++ constructor
    75 // Default C++ constructor
    86 void CSatNotifyMoreTime::ConstructL
    91 void CSatNotifyMoreTime::ConstructL
    87         (
    92         (
    88         // None
    93         // None
    89         )
    94         )
    90     {
    95     {
    91     TFLOGSTRING("CSAT: CSatNotifyMoreTime::ConstructL, does nothing");
    96     OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYMORETIME_CONSTRUCTL_1, "CSAT: CSatNotifyMoreTime::ConstructL, does nothing");
    92     }
    97     }
    93 
    98 
    94 // -----------------------------------------------------------------------------
    99 // -----------------------------------------------------------------------------
    95 // CSatNotifyMoreTime::CompleteNotifyL
   100 // CSatNotifyMoreTime::CompleteNotifyL
    96 // This method completes an outstanding asynchronous NotifyMoreTime request. 
   101 // This method completes an outstanding asynchronous NotifyMoreTime request. 
   100         (
   105         (
   101         CSatDataPackage* aDataPackage,
   106         CSatDataPackage* aDataPackage,
   102         TInt /*aErrorCode*/              
   107         TInt /*aErrorCode*/              
   103         )
   108         )
   104     {
   109     {
   105     TFLOGSTRING("CSAT: CSatNotifyMoreTime::CompleteNotifyL");
   110     OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYMORETIME_COMPLETENOTIFYL_1, "CSAT: CSatNotifyMoreTime::CompleteNotifyL");
   106     TInt ret( KErrNone );
   111     TInt ret( KErrNone );
   107     // Unpack parameters
   112     // Unpack parameters
   108     TPtrC8* data;
   113     TPtrC8* data;
   109     aDataPackage->UnPackData( &data );    
   114     aDataPackage->UnPackData( &data );    
   110     // Get ber tlv 
   115     // Get ber tlv 
   134         ( 
   139         ( 
   135         TUint8 aPCmdNumber,         
   140         TUint8 aPCmdNumber,         
   136         TUint8 aGeneralResult			 
   141         TUint8 aGeneralResult			 
   137 		)
   142 		)
   138     {
   143     {
   139     TFLOGSTRING("CSAT: CSatNotifyMoreTime::CreateTerminalRespL");
   144     OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYMORETIME_CREATETERMINALRESPL_1, "CSAT: CSatNotifyMoreTime::CreateTerminalRespL");
   140     // Create and append response data
   145     // Create and append response data
   141     TTlv tlvSpecificData;
   146     TTlv tlvSpecificData;
   142 	// General result
   147 	// General result
   143     tlvSpecificData.AddTag( KTlvResultTag );   
   148     tlvSpecificData.AddTag( KTlvResultTag );   
   144     tlvSpecificData.AddByte( aGeneralResult );	
   149     tlvSpecificData.AddByte( aGeneralResult );