78
|
1 |
/** Copyright (c) 2009 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 "Symbian Foundation License v1.0"
|
|
5 |
* which accompanies this distribution, and is available
|
|
6 |
* at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
|
|
7 |
*
|
|
8 |
* Initial Contributors:
|
|
9 |
* Nokia Corporation - initial contribution.
|
|
10 |
*
|
|
11 |
* Contributors:
|
|
12 |
*
|
|
13 |
* Description:
|
|
14 |
*
|
|
15 |
*/
|
|
16 |
#include <smcmockclassincludes.h>
|
|
17 |
#include <telephonyaudiorouting.h>
|
|
18 |
#include <mtelephonyaudioroutingobserver.h>
|
|
19 |
#include <TelephonyAudioRoutingProxy.h>
|
|
20 |
|
|
21 |
|
|
22 |
// ============================ MEMBER FUNCTIONS ===============================
|
|
23 |
|
|
24 |
EXPORT_C CTelephonyAudioRouting* CTelephonyAudioRouting::NewL(
|
|
25 |
MTelephonyAudioRoutingObserver& aObserver )
|
|
26 |
{
|
|
27 |
CTelephonyAudioRoutingProxy* audioRoutingProxy =
|
|
28 |
CTelephonyAudioRoutingProxy::NewL(aObserver);
|
|
29 |
return audioRoutingProxy;
|
|
30 |
}
|
|
31 |
|
|
32 |
// -----------------------------------------------------------------------------
|
|
33 |
// CTelephonyAudioRouting::AvailableOutputs
|
|
34 |
// -----------------------------------------------------------------------------
|
|
35 |
//
|
|
36 |
const TArray<CTelephonyAudioRouting::TAudioOutput>& CTelephonyAudioRouting::AvailableOutputs( )
|
|
37 |
|
|
38 |
//const TArray<TAudioOutput>& CTelephonyAudioRouting::AvailableOutputs( )
|
|
39 |
{
|
|
40 |
SMC_MOCK_METHOD0( const TArray <CTelephonyAudioRouting::TAudioOutput > & )
|
|
41 |
}
|
|
42 |
|
|
43 |
|
|
44 |
// -----------------------------------------------------------------------------
|
|
45 |
// CTelephonyAudioRouting::Output
|
|
46 |
// -----------------------------------------------------------------------------
|
|
47 |
//
|
|
48 |
CTelephonyAudioRouting::TAudioOutput CTelephonyAudioRouting::Output( )
|
|
49 |
{
|
|
50 |
SMC_MOCK_METHOD0( TAudioOutput )
|
|
51 |
}
|
|
52 |
|
|
53 |
|
|
54 |
// -----------------------------------------------------------------------------
|
|
55 |
// CTelephonyAudioRouting::SetOutputL
|
|
56 |
// -----------------------------------------------------------------------------
|
|
57 |
//
|
|
58 |
void CTelephonyAudioRouting::SetOutputL(
|
|
59 |
TAudioOutput aOutput )
|
|
60 |
{
|
|
61 |
SMC_MOCK_METHOD1( void, TAudioOutput, aOutput )
|
|
62 |
}
|
|
63 |
|
|
64 |
|
|
65 |
// -----------------------------------------------------------------------------
|
|
66 |
// CTelephonyAudioRouting::PreviousOutput
|
|
67 |
// -----------------------------------------------------------------------------
|
|
68 |
//
|
|
69 |
CTelephonyAudioRouting::TAudioOutput CTelephonyAudioRouting::PreviousOutput( )
|
|
70 |
{
|
|
71 |
SMC_MOCK_METHOD0( TAudioOutput )
|
|
72 |
}
|
|
73 |
|
|
74 |
|
|
75 |
// -----------------------------------------------------------------------------
|
|
76 |
// CTelephonyAudioRouting::SetShowNote
|
|
77 |
// -----------------------------------------------------------------------------
|
|
78 |
//
|
|
79 |
TInt CTelephonyAudioRouting::SetShowNote(
|
|
80 |
TBool aMode )
|
|
81 |
{
|
|
82 |
SMC_MOCK_METHOD1( TInt, TBool, aMode )
|
|
83 |
}
|
|
84 |
|
|
85 |
|
|
86 |
// -----------------------------------------------------------------------------
|
|
87 |
// CTelephonyAudioRouting::GetShowNote
|
|
88 |
// -----------------------------------------------------------------------------
|
|
89 |
//
|
|
90 |
TInt CTelephonyAudioRouting::GetShowNote(
|
|
91 |
TBool & aMode )
|
|
92 |
{
|
|
93 |
SMC_MOCK_METHOD1( TInt, TBool &, aMode )
|
|
94 |
}
|
|
95 |
|
|
96 |
|