phoneapp/phoneringingtoneplayer/tsrc/ut_cphoneringingtonecontroller/mocks/mock_cphonettsplayer.cpp
changeset 78 baacf668fe89
parent 76 cfea66083b62
equal deleted inserted replaced
76:cfea66083b62 78:baacf668fe89
     1 /*
       
     2 * Copyright (c) 2009 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:
       
    15 *
       
    16 */
       
    17 
       
    18 #include <smcmockclassincludes.h>
       
    19 #include "cphonettsplayer.h"
       
    20 #include "cphoneringingtone.h"
       
    21 #include "cphoneringingtoneplayer.h"
       
    22 
       
    23 // ============================ MEMBER FUNCTIONS ===============================
       
    24 
       
    25 // -----------------------------------------------------------------------------
       
    26 // CPhoneTTSPlayer::CPhoneTTSPlayer
       
    27 // -----------------------------------------------------------------------------
       
    28 //
       
    29 CPhoneTTSPlayer::CPhoneTTSPlayer( 
       
    30         CPhoneRingingtonePlayer * aRingingtonePlayer )
       
    31     {
       
    32     
       
    33     }
       
    34 
       
    35 
       
    36 // -----------------------------------------------------------------------------
       
    37 // CPhoneTTSPlayer::ConstructL
       
    38 // -----------------------------------------------------------------------------
       
    39 //
       
    40 void CPhoneTTSPlayer::ConstructL(  )
       
    41     {
       
    42     
       
    43     }
       
    44 
       
    45 
       
    46 // -----------------------------------------------------------------------------
       
    47 // CPhoneTTSPlayer::~CPhoneTTSPlayer
       
    48 // -----------------------------------------------------------------------------
       
    49 //
       
    50 CPhoneTTSPlayer::~CPhoneTTSPlayer(  )
       
    51     {
       
    52     
       
    53     }
       
    54 
       
    55 
       
    56 // -----------------------------------------------------------------------------
       
    57 // CPhoneTTSPlayer::NewL
       
    58 // -----------------------------------------------------------------------------
       
    59 //
       
    60 CPhoneTTSPlayer * CPhoneTTSPlayer::NewL( 
       
    61         CPhoneRingingtonePlayer * aRingingtonePlayer )
       
    62     {
       
    63     SMC_MOCK_NEWL1( CPhoneTTSPlayer *, CPhoneRingingtonePlayer *, aRingingtonePlayer )
       
    64 
       
    65     CPhoneTTSPlayer* self = new( ELeave ) CPhoneTTSPlayer(aRingingtonePlayer);
       
    66     CleanupStack::PushL( self );
       
    67     //self->ConstructL()
       
    68     CleanupStack::Pop( self );
       
    69     return self;
       
    70     }
       
    71 
       
    72 
       
    73 // -----------------------------------------------------------------------------
       
    74 // CPhoneTTSPlayer::PlayTtsTone
       
    75 // -----------------------------------------------------------------------------
       
    76 //
       
    77 void CPhoneTTSPlayer::PlayTtsTone( 
       
    78         const TDesC & aTextToSay,
       
    79         CPhoneRingingTone * aAudioVideoRingingTone )
       
    80     {
       
    81     SMC_MOCK_METHOD2( void, const TDesC &, aTextToSay, 
       
    82         CPhoneRingingTone *, aAudioVideoRingingTone )
       
    83     }
       
    84 
       
    85 
       
    86 // -----------------------------------------------------------------------------
       
    87 // CPhoneTTSPlayer::StopPlaying
       
    88 // -----------------------------------------------------------------------------
       
    89 //
       
    90 void CPhoneTTSPlayer::StopPlaying(  )
       
    91     {
       
    92     SMC_MOCK_METHOD0( void )
       
    93     }
       
    94 
       
    95 
       
    96 // -----------------------------------------------------------------------------
       
    97 // CPhoneTTSPlayer::AddTtsPlaybackIfNeeded
       
    98 // -----------------------------------------------------------------------------
       
    99 //
       
   100 void CPhoneTTSPlayer::AddTtsPlaybackIfNeeded(  )
       
   101     {
       
   102     SMC_MOCK_METHOD0( void )
       
   103     }
       
   104 
       
   105 
       
   106 // -----------------------------------------------------------------------------
       
   107 // CPhoneTTSPlayer::HandleAudioPlayerError
       
   108 // -----------------------------------------------------------------------------
       
   109 //
       
   110 void CPhoneTTSPlayer::HandleAudioPlayerError( 
       
   111         TPhoneAudioPlayerErrorEvent aEvent,
       
   112         TInt aError,
       
   113         TInt aId )
       
   114     {
       
   115     SMC_MOCK_METHOD3( void, TPhoneAudioPlayerErrorEvent, aEvent, 
       
   116         TInt, aError, 
       
   117         TInt, aId )
       
   118     }
       
   119 
       
   120 
       
   121 // -----------------------------------------------------------------------------
       
   122 // CPhoneTTSPlayer::HandleAudioPlayerInitComplete
       
   123 // -----------------------------------------------------------------------------
       
   124 //
       
   125 void CPhoneTTSPlayer::HandleAudioPlayerInitComplete( 
       
   126         TInt aId )
       
   127     {
       
   128     SMC_MOCK_METHOD1( void, TInt, aId )
       
   129     }
       
   130 
       
   131 
       
   132 // -----------------------------------------------------------------------------
       
   133 // CPhoneTTSPlayer::HandlePlayingComplete
       
   134 // -----------------------------------------------------------------------------
       
   135 //
       
   136 void CPhoneTTSPlayer::HandlePlayingComplete( 
       
   137         TInt aId )
       
   138     {
       
   139     SMC_MOCK_METHOD1( void, TInt, aId )
       
   140     }
       
   141 
       
   142 
       
   143 // -----------------------------------------------------------------------------
       
   144 // CPhoneTTSPlayer::HandleTtsDelayTimeout
       
   145 // -----------------------------------------------------------------------------
       
   146 //
       
   147 TInt CPhoneTTSPlayer::HandleTtsDelayTimeout( 
       
   148         TAny * object )
       
   149     {
       
   150     //SMC_MOCK_METHOD1( TInt, TAny *, object )
       
   151     }
       
   152 
       
   153 
       
   154 // -----------------------------------------------------------------------------
       
   155 // CPhoneTTSPlayer::DoHandleTtsDelayTimeout
       
   156 // -----------------------------------------------------------------------------
       
   157 //
       
   158 void CPhoneTTSPlayer::DoHandleTtsDelayTimeout(  )
       
   159     {
       
   160     SMC_MOCK_METHOD0( void )
       
   161     }
       
   162 
       
   163 
       
   164 // -----------------------------------------------------------------------------
       
   165 // CPhoneTTSPlayer::GetCurrentlyActiveAudioPlayerWithTTs
       
   166 // -----------------------------------------------------------------------------
       
   167 //
       
   168 CPhoneAudioPlayer * CPhoneTTSPlayer::GetCurrentlyActiveAudioPlayerWithTTs(  )
       
   169     {
       
   170     SMC_MOCK_METHOD0( CPhoneAudioPlayer * )
       
   171     }
       
   172 
       
   173 
       
   174 // -----------------------------------------------------------------------------
       
   175 // CPhoneTTSPlayer::SolveNewVolumeAndRamptime
       
   176 // -----------------------------------------------------------------------------
       
   177 //
       
   178 void CPhoneTTSPlayer::SolveNewVolumeAndRamptime( 
       
   179         TTtsStatus aStatus )
       
   180     {
       
   181     SMC_MOCK_METHOD1( void, TTtsStatus, aStatus )
       
   182     }
       
   183 
       
   184 
       
   185 // -----------------------------------------------------------------------------
       
   186 // CPhoneTTSPlayer::ReStartRingingTonePlayer
       
   187 // -----------------------------------------------------------------------------
       
   188 //
       
   189 void CPhoneTTSPlayer::ReStartRingingTonePlayer(  )
       
   190     {
       
   191     SMC_MOCK_METHOD0( void )
       
   192     }
       
   193 
       
   194 
       
   195 // -----------------------------------------------------------------------------
       
   196 // CPhoneTTSPlayer::ConvertRingingType
       
   197 // -----------------------------------------------------------------------------
       
   198 //
       
   199 CPhoneAudioPlayer::TRingingType CPhoneTTSPlayer::ConvertRingingType( 
       
   200         TProfileRingingType aRingingType )
       
   201     {
       
   202     SMC_MOCK_METHOD1( CPhoneAudioPlayer::TRingingType, TProfileRingingType, aRingingType )
       
   203     }
       
   204 
       
   205