tsrc/mocks/phoneuiqtviewadapter/mock_phoneuiqtviewadapter.cpp
changeset 77 2be0b271d017
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 
       
    19 #include "phoneuiqtviewadapter.h"
       
    20 #include "phoneuiqtviewif.h"
       
    21 #include "tphonecmdparaminteger.h"
       
    22 #include "tphonecmdparamboolean.h"
       
    23 #include "tphonecmdparamaudioavailability.h"
       
    24 #include "tphonecmdparamaudiooutput.h"
       
    25 #include "tphonecmdparamcallstatedata.h"
       
    26 #include "tphonecmdparamcallheaderdata.h"
       
    27 #include "tphonecmdparamemergencycallheaderdata.h"
       
    28 #include "tphonecmdparamstring.h"
       
    29 #include "tphonecmdparamkeycapture.h"
       
    30 #include "cphonepubsubproxy.h"
       
    31 
       
    32 #include <mpeengineinfo.h>
       
    33 // ============================ MEMBER FUNCTIONS ===============================
       
    34 
       
    35 // -----------------------------------------------------------------------------
       
    36 // PhoneUIQtViewAdapter::PhoneUIQtViewAdapter
       
    37 // -----------------------------------------------------------------------------
       
    38 //
       
    39 PhoneUIQtViewAdapter::PhoneUIQtViewAdapter( 
       
    40         PhoneUIQtViewIF & view,
       
    41         QObject * parent ) : QObject(parent), m_view(view)
       
    42     {
       
    43     
       
    44     }
       
    45 
       
    46 
       
    47 // -----------------------------------------------------------------------------
       
    48 // PhoneUIQtViewAdapter::~PhoneUIQtViewAdapter
       
    49 // -----------------------------------------------------------------------------
       
    50 //
       
    51 PhoneUIQtViewAdapter::~PhoneUIQtViewAdapter(  )
       
    52     {
       
    53     
       
    54     }
       
    55 
       
    56 
       
    57 // -----------------------------------------------------------------------------
       
    58 // PhoneUIQtViewAdapter::ExecuteCommandL
       
    59 // -----------------------------------------------------------------------------
       
    60 //
       
    61 void PhoneUIQtViewAdapter::ExecuteCommandL( 
       
    62         TPhoneViewCommandId aCmdId )
       
    63     {
       
    64     SMC_MOCK_METHOD1( void, TPhoneViewCommandId, aCmdId )
       
    65     }
       
    66 
       
    67 
       
    68 // -----------------------------------------------------------------------------
       
    69 // PhoneUIQtViewAdapter::ExecuteCommandL
       
    70 // -----------------------------------------------------------------------------
       
    71 //
       
    72 void PhoneUIQtViewAdapter::ExecuteCommandL( 
       
    73         TPhoneViewCommandId aCmdId,
       
    74         TInt aCallId )
       
    75     {
       
    76     SMC_MOCK_METHOD2( void, TPhoneViewCommandId, aCmdId, 
       
    77         TInt, aCallId )
       
    78     }
       
    79 
       
    80 
       
    81 // -----------------------------------------------------------------------------
       
    82 // PhoneUIQtViewAdapter::ExecuteCommandL
       
    83 // -----------------------------------------------------------------------------
       
    84 //
       
    85 void PhoneUIQtViewAdapter::ExecuteCommandL( 
       
    86         TPhoneViewCommandId aCmdId,
       
    87         TPhoneCommandParam * aCommandParam )
       
    88     {
       
    89     SMC_MOCK_METHOD2( void, TPhoneViewCommandId, aCmdId, 
       
    90         TPhoneCommandParam *, aCommandParam )
       
    91     }
       
    92 
       
    93 
       
    94 // -----------------------------------------------------------------------------
       
    95 // PhoneUIQtViewAdapter::ExecuteCommandL
       
    96 // -----------------------------------------------------------------------------
       
    97 //
       
    98 void PhoneUIQtViewAdapter::ExecuteCommandL( 
       
    99         TPhoneViewCommandId aCmdId,
       
   100         TInt aCallId,
       
   101         TPhoneCommandParam * aCommandParam )
       
   102     {
       
   103     SMC_MOCK_METHOD3( void, TPhoneViewCommandId, aCmdId, 
       
   104         TInt, aCallId, 
       
   105         TPhoneCommandParam *, aCommandParam )
       
   106     }
       
   107 
       
   108 
       
   109 // -----------------------------------------------------------------------------
       
   110 // PhoneUIQtViewAdapter::ExecuteCommandL
       
   111 // -----------------------------------------------------------------------------
       
   112 //
       
   113 void PhoneUIQtViewAdapter::ExecuteCommandL( 
       
   114         TPhoneViewCommandId aCmdId,
       
   115         TInt aCallId,
       
   116         TDesC & aMessage )
       
   117     {
       
   118     SMC_MOCK_METHOD3( void, TPhoneViewCommandId, aCmdId, 
       
   119         TInt, aCallId, 
       
   120         TDesC &, aMessage )
       
   121     }
       
   122 
       
   123 
       
   124 // -----------------------------------------------------------------------------
       
   125 // PhoneUIQtViewAdapter::HandleCommandL
       
   126 // -----------------------------------------------------------------------------
       
   127 //
       
   128 TPhoneViewResponseId PhoneUIQtViewAdapter::HandleCommandL( 
       
   129         TPhoneViewCommandId aCmdId )
       
   130     {
       
   131     SMC_MOCK_METHOD1( TPhoneViewResponseId, TPhoneViewCommandId, aCmdId )
       
   132     }
       
   133 
       
   134 
       
   135 // -----------------------------------------------------------------------------
       
   136 // PhoneUIQtViewAdapter::HandleCommandL
       
   137 // -----------------------------------------------------------------------------
       
   138 //
       
   139 TPhoneViewResponseId PhoneUIQtViewAdapter::HandleCommandL( 
       
   140         TPhoneViewCommandId aCmdId,
       
   141         TPhoneCommandParam * aCommandParam )
       
   142     {
       
   143     SMC_MOCK_METHOD2( TPhoneViewResponseId, TPhoneViewCommandId, aCmdId, 
       
   144         TPhoneCommandParam *, aCommandParam )
       
   145     }
       
   146 
       
   147 
       
   148 // -----------------------------------------------------------------------------
       
   149 // PhoneUIQtViewAdapter::ExecuteCommand
       
   150 // -----------------------------------------------------------------------------
       
   151 //
       
   152 void PhoneUIQtViewAdapter::ExecuteCommand( 
       
   153         TPhoneViewCommandId aCmdId )
       
   154     {
       
   155     SMC_MOCK_METHOD1( void, TPhoneViewCommandId, aCmdId )
       
   156     }
       
   157 
       
   158 
       
   159 // -----------------------------------------------------------------------------
       
   160 // PhoneUIQtViewAdapter::ExecuteCommand
       
   161 // -----------------------------------------------------------------------------
       
   162 //
       
   163 void PhoneUIQtViewAdapter::ExecuteCommand( 
       
   164         TPhoneViewCommandId aCmdId,
       
   165         TPhoneCommandParam * aCommandParam )
       
   166     {
       
   167     SMC_MOCK_METHOD2( void, TPhoneViewCommandId, aCmdId, 
       
   168         TPhoneCommandParam *, aCommandParam )
       
   169     }
       
   170 
       
   171 
       
   172 // -----------------------------------------------------------------------------
       
   173 // PhoneUIQtViewAdapter::FetchContent
       
   174 // -----------------------------------------------------------------------------
       
   175 //
       
   176 const TDesC & PhoneUIQtViewAdapter::FetchContent(  )
       
   177     {
       
   178     SMC_MOCK_METHOD0( const TDesC & )
       
   179     }
       
   180 
       
   181 
       
   182 // -----------------------------------------------------------------------------
       
   183 // PhoneUIQtViewAdapter::noteController
       
   184 // -----------------------------------------------------------------------------
       
   185 //
       
   186 PhoneNoteController * PhoneUIQtViewAdapter::noteController(  ) const
       
   187     {
       
   188     SMC_MOCK_METHOD0( PhoneNoteController * )
       
   189     }
       
   190 
       
   191 
       
   192 // -----------------------------------------------------------------------------
       
   193 // PhoneUIQtViewAdapter::setEngineInfo
       
   194 // -----------------------------------------------------------------------------
       
   195 //
       
   196 void PhoneUIQtViewAdapter::setEngineInfo( 
       
   197         MPEEngineInfo * engineInfo )
       
   198     {
       
   199     SMC_MOCK_METHOD1( void, MPEEngineInfo *, engineInfo )
       
   200     }
       
   201 
       
   202 void PhoneUIQtViewAdapter::dialpadClosed()
       
   203 {
       
   204 
       
   205 }
       
   206 
       
   207 void PhoneUIQtViewAdapter::keyReleased(QKeyEvent *event)
       
   208 {
       
   209 
       
   210 }
       
   211 
       
   212 void PhoneUIQtViewAdapter::handleWindowActivated()
       
   213 {
       
   214 
       
   215 }
       
   216 
       
   217 void PhoneUIQtViewAdapter::handleWindowDeactivated()
       
   218 {
       
   219 
       
   220 }
       
   221 
       
   222 void PhoneUIQtViewAdapter::onFocusLost()
       
   223 {
       
   224 
       
   225 }
       
   226 
       
   227 void PhoneUIQtViewAdapter::onFocusGained()
       
   228 {
       
   229 
       
   230 }
       
   231 
       
   232