phoneengine/loghandling/tsrc/mocks/mock_cpeloghandlingcommand.cpp
changeset 36 2eacb6118286
parent 30 ebdbd102c78a
child 37 ba76fc04e6c2
equal deleted inserted replaced
30:ebdbd102c78a 36:2eacb6118286
     1 /*
       
     2 * Copyright (c) 2002-2005 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  This module contains the implementation of CPELogHandlingCommand class  
       
    15 
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 // INCLUDE FILES
       
    21 #include <smcmockclassincludes.h>
       
    22 #include "CPELogHandlingCommand.h"
       
    23 #include "CPELogHandling.h"
       
    24 #include <PEVirtualEngine.h>
       
    25 #include <TALogger.h>
       
    26 #include <LogWrap.h>
       
    27 #include <LogCli.h>
       
    28 
       
    29 // EXTERNAL DATA STRUCTURES
       
    30 // None.
       
    31 
       
    32 // EXTERNAL FUNCTION PROTOTYPES  
       
    33 // None.
       
    34 
       
    35 // CONSTANTS
       
    36 // None.
       
    37 
       
    38 // MACROS
       
    39 // None.
       
    40 
       
    41 // LOCAL CONSTANTS AND MACROS
       
    42 // None.
       
    43 
       
    44 // MODULE DATA STRUCTURES
       
    45 // None.
       
    46 
       
    47 // LOCAL FUNCTION PROTOTYPES
       
    48 // None.
       
    49 
       
    50 // FORWARD DECLARATIONS
       
    51 // None. 
       
    52 
       
    53 // ==================== LOCAL FUNCTIONS ====================
       
    54 // None.
       
    55 
       
    56 // ================= MEMBER FUNCTIONS =======================
       
    57 
       
    58 // -----------------------------------------------------------------------------
       
    59 // CPELogHandlingCommand::CPELogHandlingCommand
       
    60 // C++ default constructor can NOT contain any code, that
       
    61 // might leave.
       
    62 // -----------------------------------------------------------------------------
       
    63 //
       
    64 /*****************************************************
       
    65 *    Series 60 Customer / LOGENG
       
    66 *    Series 60  LOGENG API
       
    67 *****************************************************/
       
    68 CPELogHandlingCommand::CPELogHandlingCommand
       
    69         ( 
       
    70         CPELogHandling& aOwner,                   //The owner of this object
       
    71         CLogClient& aLogClient                    //The log client
       
    72         ) : CActive( EPriorityStandard ),
       
    73             iOwner( aOwner),
       
    74             iLogClient( aLogClient )
       
    75     {
       
    76     }
       
    77 
       
    78 // Destructor
       
    79 CPELogHandlingCommand::~CPELogHandlingCommand
       
    80     (
       
    81     // None.
       
    82     )
       
    83     {
       
    84     }
       
    85 
       
    86 // -----------------------------------------------------------------------------
       
    87 // CPELogHandlingCommand::AddEvent
       
    88 // Adds an event to the log
       
    89 // (other items were commented in a header).
       
    90 // -----------------------------------------------------------------------------
       
    91 //
       
    92 /*****************************************************
       
    93 *    Series 60 Customer / LOGENG
       
    94 *    Series 60  LOGENG API
       
    95 *****************************************************/
       
    96 TInt CPELogHandlingCommand::AddEvent
       
    97         (
       
    98         CLogEvent& aLogEvent
       
    99         )
       
   100     { 
       
   101     SMC_MOCK_METHOD1( TInt, CLogEvent& , aLogEvent)     
       
   102     }
       
   103 
       
   104 // -----------------------------------------------------------------------------
       
   105 // CPELogHandlingCommand::ChangeEvent
       
   106 // Updates an event in the log
       
   107 // (other items were commented in a header).
       
   108 // -----------------------------------------------------------------------------
       
   109 //
       
   110 /*****************************************************
       
   111 *    Series 60 Customer / LOGENG
       
   112 *    Series 60  LOGENG API
       
   113 *****************************************************/
       
   114 TInt CPELogHandlingCommand::ChangeEvent
       
   115         (
       
   116         const CLogEvent& aLogEvent
       
   117         )
       
   118     { 
       
   119     SMC_MOCK_METHOD1( TInt, CLogEvent& , aLogEvent)     
       
   120     }
       
   121 
       
   122 // -----------------------------------------------------------------------------
       
   123 // CPELogHandlingCommand::RunL
       
   124 // Description: Method gets notification from etel that asyncronous request is completed.
       
   125 // (other items were commented in a header).
       
   126 // -----------------------------------------------------------------------------
       
   127 //
       
   128 void CPELogHandlingCommand::RunL
       
   129         (
       
   130         // None.
       
   131         )
       
   132     {
       
   133     SMC_MOCK_METHOD0( void ) 
       
   134     }
       
   135 
       
   136 // -----------------------------------------------------------------------------
       
   137 // CPELogHandlingCommand::DoCancel
       
   138 // Cancels request to the log client
       
   139 // (other items were commented in a header).
       
   140 // -----------------------------------------------------------------------------
       
   141 //
       
   142 /*****************************************************
       
   143 *    Series 60 Customer / LOGENG
       
   144 *    Series 60  LOGENG API
       
   145 *****************************************************/
       
   146 void CPELogHandlingCommand::DoCancel
       
   147         (
       
   148         // None.
       
   149         )
       
   150     {
       
   151     SMC_MOCK_METHOD0( void ) 
       
   152     }
       
   153 
       
   154 
       
   155 
       
   156 //  End of File