tsrc/mocks/phoneuiqtviewadapter/mock_phonecallheaderutil.cpp
changeset 77 2be0b271d017
child 76 cfea66083b62
equal deleted inserted replaced
72:c76a0b1755b9 77:2be0b271d017
       
     1 /** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     2 * All rights reserved.
       
     3 * This component and the accompanying materials are made available
       
     4 * under the terms of the License "Eclipse Public License v1.0"
       
     5 * which accompanies this distribution, and is available
       
     6 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 *
       
     8 * Initial Contributors:
       
     9 * Nokia Corporation - initial contribution.
       
    10 *
       
    11 * Contributors:
       
    12 *
       
    13 * Description:
       
    14 *
       
    15 */
       
    16 #include <QDebug>
       
    17 #include <smcmockclassincludes.h>
       
    18 #include "phonecallheaderutil.h"
       
    19 
       
    20 // ============================ MEMBER FUNCTIONS ===============================
       
    21 
       
    22 // -----------------------------------------------------------------------------
       
    23 // PhoneCallHeaderUtil::PhoneCallHeaderUtil
       
    24 // -----------------------------------------------------------------------------
       
    25 //
       
    26 PhoneCallHeaderUtil::PhoneCallHeaderUtil( 
       
    27         MPEEngineInfo & engineInfo )
       
    28     : m_engineInfo(engineInfo)
       
    29     {
       
    30     
       
    31     }
       
    32 
       
    33 
       
    34 // -----------------------------------------------------------------------------
       
    35 // PhoneCallHeaderUtil::~PhoneCallHeaderUtil
       
    36 // -----------------------------------------------------------------------------
       
    37 //
       
    38 PhoneCallHeaderUtil::~PhoneCallHeaderUtil(  )
       
    39     {
       
    40     
       
    41     }
       
    42 
       
    43 
       
    44 // -----------------------------------------------------------------------------
       
    45 // PhoneCallHeaderUtil::SetIncomingCallHeaderParams
       
    46 // -----------------------------------------------------------------------------
       
    47 //
       
    48 void PhoneCallHeaderUtil::SetIncomingCallHeaderParams( 
       
    49         const TInt aCallId,
       
    50         const TBool aWaitingCall,
       
    51         const TBool aVideoCall,
       
    52         TPhoneCmdParamCallHeaderData * aCallHeaderData )
       
    53     {
       
    54     SMC_MOCK_METHOD4( void, const TInt, aCallId, 
       
    55         const TBool, aWaitingCall, 
       
    56         const TBool, aVideoCall, 
       
    57         TPhoneCmdParamCallHeaderData *, aCallHeaderData )
       
    58     }
       
    59 
       
    60 
       
    61 // -----------------------------------------------------------------------------
       
    62 // PhoneCallHeaderUtil::SetOutgoingCallHeaderParams
       
    63 // -----------------------------------------------------------------------------
       
    64 //
       
    65 void PhoneCallHeaderUtil::SetOutgoingCallHeaderParams( 
       
    66         const TInt aCallId,
       
    67         TPhoneCmdParamCallHeaderData * aCallHeaderData )
       
    68     {
       
    69     SMC_MOCK_METHOD2( void, const TInt, aCallId, 
       
    70         TPhoneCmdParamCallHeaderData *, aCallHeaderData )
       
    71     }
       
    72 
       
    73 
       
    74 // -----------------------------------------------------------------------------
       
    75 // PhoneCallHeaderUtil::UpdateCallHeaderInfo
       
    76 // -----------------------------------------------------------------------------
       
    77 //
       
    78 void PhoneCallHeaderUtil::UpdateCallHeaderInfo( 
       
    79         const TInt aCallId,
       
    80         const TBool aWaitingCall,
       
    81         const TBool aVideoCall,
       
    82         TPhoneCmdParamCallHeaderData * aCallHeaderData )
       
    83     {
       
    84     SMC_MOCK_METHOD4( void, const TInt, aCallId, 
       
    85         const TBool, aWaitingCall, 
       
    86         const TBool, aVideoCall, 
       
    87         TPhoneCmdParamCallHeaderData *, aCallHeaderData )
       
    88     }
       
    89 
       
    90 
       
    91 // -----------------------------------------------------------------------------
       
    92 // PhoneCallHeaderUtil::SetCallHeaderType
       
    93 // -----------------------------------------------------------------------------
       
    94 //
       
    95 void PhoneCallHeaderUtil::SetCallHeaderType( 
       
    96         TInt aCallHeaderType )
       
    97     {
       
    98     SMC_MOCK_METHOD1( void, TInt, aCallHeaderType )
       
    99     }
       
   100 
       
   101 
       
   102 // -----------------------------------------------------------------------------
       
   103 // PhoneCallHeaderUtil::CallHeaderType
       
   104 // -----------------------------------------------------------------------------
       
   105 //
       
   106 TInt PhoneCallHeaderUtil::CallHeaderType(  ) const
       
   107     {
       
   108     SMC_MOCK_METHOD0( TInt )
       
   109     }
       
   110 
       
   111 
       
   112 // -----------------------------------------------------------------------------
       
   113 // PhoneCallHeaderUtil::SetDivertIndication
       
   114 // -----------------------------------------------------------------------------
       
   115 //
       
   116 void PhoneCallHeaderUtil::SetDivertIndication( 
       
   117         const TBool aDivertIndication )
       
   118     {
       
   119     SMC_MOCK_METHOD1( void, const TBool, aDivertIndication )
       
   120     }
       
   121 
       
   122 
       
   123 // -----------------------------------------------------------------------------
       
   124 // PhoneCallHeaderUtil::GetRemoteInfoData
       
   125 // -----------------------------------------------------------------------------
       
   126 //
       
   127 TBool PhoneCallHeaderUtil::GetRemoteInfoData( 
       
   128         const TInt aCallId,
       
   129         TDes & aData ) const
       
   130     {
       
   131     SMC_MOCK_METHOD2( TBool, const TInt, aCallId, 
       
   132         TDes &, aData )
       
   133     }
       
   134 
       
   135 
       
   136 // -----------------------------------------------------------------------------
       
   137 // PhoneCallHeaderUtil::SetCallHeaderTexts
       
   138 // -----------------------------------------------------------------------------
       
   139 //
       
   140 void PhoneCallHeaderUtil::SetCallHeaderTexts( 
       
   141         const TInt aCallId,
       
   142         const TBool aWaitingCall,
       
   143         const TBool aVideoCall,
       
   144         TPhoneCmdParamCallHeaderData * aCallHeaderData )
       
   145     {
       
   146     SMC_MOCK_METHOD4( void, const TInt, aCallId, 
       
   147         const TBool, aWaitingCall, 
       
   148         const TBool, aVideoCall, 
       
   149         TPhoneCmdParamCallHeaderData *, aCallHeaderData )
       
   150     }
       
   151 
       
   152 
       
   153 // -----------------------------------------------------------------------------
       
   154 // PhoneCallHeaderUtil::LabelText
       
   155 // -----------------------------------------------------------------------------
       
   156 //
       
   157 const TDesC & PhoneCallHeaderUtil::LabelText( 
       
   158         TInt aCallId )
       
   159     {
       
   160     SMC_MOCK_METHOD1( const TDesC &, TInt, aCallId )
       
   161     }
       
   162 
       
   163 
       
   164 // -----------------------------------------------------------------------------
       
   165 // PhoneCallHeaderUtil::EmergencyHeaderText
       
   166 // -----------------------------------------------------------------------------
       
   167 //
       
   168 const TDesC & PhoneCallHeaderUtil::EmergencyHeaderText(  )
       
   169     {
       
   170     SMC_MOCK_METHOD0( const TDesC & )
       
   171     }
       
   172 
       
   173 
       
   174 // -----------------------------------------------------------------------------
       
   175 // PhoneCallHeaderUtil::AttemptingEmergencyText
       
   176 // -----------------------------------------------------------------------------
       
   177 //
       
   178 const TDesC & PhoneCallHeaderUtil::AttemptingEmergencyText(  )
       
   179     {
       
   180     SMC_MOCK_METHOD0( const TDesC & )
       
   181     }
       
   182 
       
   183 
       
   184 // -----------------------------------------------------------------------------
       
   185 // PhoneCallHeaderUtil::CallState
       
   186 // -----------------------------------------------------------------------------
       
   187 //
       
   188 TInt PhoneCallHeaderUtil::CallState( 
       
   189         TInt aCallId ) const
       
   190     {
       
   191     SMC_MOCK_METHOD1( TInt, TInt, aCallId )
       
   192     }
       
   193 
       
   194 
       
   195 // -----------------------------------------------------------------------------
       
   196 // PhoneCallHeaderUtil::LoadResource
       
   197 // -----------------------------------------------------------------------------
       
   198 //
       
   199 void PhoneCallHeaderUtil::LoadResource( 
       
   200         TDes & aData,
       
   201         const TInt aResource ) const
       
   202     {
       
   203     SMC_MOCK_METHOD2( void, TDes &, aData, 
       
   204         const TInt, aResource )
       
   205     }
       
   206 
       
   207 
       
   208 // -----------------------------------------------------------------------------
       
   209 // PhoneCallHeaderUtil::LoadResource
       
   210 // -----------------------------------------------------------------------------
       
   211 //
       
   212 HBufC * PhoneCallHeaderUtil::LoadResource( 
       
   213         const TInt aResource ) const
       
   214     {
       
   215     SMC_MOCK_METHOD1( HBufC *, const TInt, aResource )
       
   216     }
       
   217 
       
   218