|
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 FILES |
|
19 |
|
20 bool m_EPhoneViewMuteRingToneOnAnswer_called; |
|
21 bool m_EPhoneViewStopRingTone_called; |
|
22 bool m_EPhoneViewMuteRingTone_called; |
|
23 bool m_EPhoneViewPlayRingTone_called; |
|
24 |
|
25 |
|
26 // INCLUDE FILES |
|
27 #include <e32base.h> |
|
28 #include <e32std.h> |
|
29 #include <e32svr.h> |
|
30 |
|
31 #include "rphonetoneclient.h" |
|
32 #include "tphonecmdparamringtone.h" |
|
33 |
|
34 |
|
35 |
|
36 // ----------------------------------------------------------------------------- |
|
37 // RPhoneToneClient::RPhoneToneClient |
|
38 // ----------------------------------------------------------------------------- |
|
39 // |
|
40 EXPORT_C RPhoneToneClient::RPhoneToneClient() |
|
41 { |
|
42 } |
|
43 |
|
44 // ----------------------------------------------------------------------------- |
|
45 // RPhoneToneClient::~RPhoneToneClient |
|
46 // ----------------------------------------------------------------------------- |
|
47 // |
|
48 EXPORT_C RPhoneToneClient::~RPhoneToneClient() |
|
49 { |
|
50 m_EPhoneViewMuteRingToneOnAnswer_called = false; |
|
51 m_EPhoneViewStopRingTone_called = false; |
|
52 m_EPhoneViewMuteRingTone_called = false; |
|
53 m_EPhoneViewPlayRingTone_called = false; |
|
54 |
|
55 } |
|
56 |
|
57 // ----------------------------------------------------------------------------- |
|
58 // RPhoneToneClient::Connect |
|
59 // ----------------------------------------------------------------------------- |
|
60 // |
|
61 EXPORT_C TInt RPhoneToneClient::Connect() |
|
62 { |
|
63 return KErrNone; |
|
64 } |
|
65 |
|
66 |
|
67 // ----------------------------------------------------------------------------- |
|
68 // RPhoneToneClient::PlayRingingToneL |
|
69 // ----------------------------------------------------------------------------- |
|
70 // |
|
71 EXPORT_C void RPhoneToneClient::PlayRingingToneL( TPhoneCommandParam *aCommandParam ) |
|
72 { |
|
73 if ( aCommandParam->ParamId() == TPhoneCommandParam::EPhoneParamIdRingTone ) |
|
74 { |
|
75 m_EPhoneViewPlayRingTone_called = true; |
|
76 } |
|
77 } |
|
78 |
|
79 // ----------------------------------------------------------------------------- |
|
80 // RPhoneToneClient::StopPlaying |
|
81 // ----------------------------------------------------------------------------- |
|
82 // |
|
83 EXPORT_C void RPhoneToneClient::StopPlayingL() |
|
84 { |
|
85 m_EPhoneViewStopRingTone_called = true; |
|
86 } |
|
87 |
|
88 // End of file |