|
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: Telephony Multimedia Service |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CPEAUDIOTONEUTILITY_H |
|
19 #define CPEAUDIOTONEUTILITY_H |
|
20 |
|
21 #include <mdaaudiotoneplayer.h> |
|
22 |
|
23 namespace TMS { |
|
24 |
|
25 /** |
|
26 * Interface to wrap CMdaAudioToneUtility. |
|
27 * |
|
28 */ |
|
29 class TMSAudioToneUtility |
|
30 { |
|
31 |
|
32 public: |
|
33 /** |
|
34 * See CMdaAudioToneUtility::PrepareToPlayDesSequence. |
|
35 */ |
|
36 virtual void PrepareToPlayDesSequence(const TDesC8& aSequence ) = 0; |
|
37 |
|
38 /** |
|
39 * See CMdaAudioToneUtility::State. |
|
40 */ |
|
41 virtual TMdaAudioToneUtilityState State() = 0; |
|
42 |
|
43 /** |
|
44 * See CMdaAudioToneUtility::CancelPlay. |
|
45 */ |
|
46 virtual void CancelPlay() = 0; |
|
47 |
|
48 /** |
|
49 * See CMdaAudioToneUtility::MaxVolume. |
|
50 */ |
|
51 virtual TInt MaxVolume() = 0; |
|
52 |
|
53 /** |
|
54 * See CMdaAudioToneUtility::SetVolume. |
|
55 */ |
|
56 virtual void SetVolume( TInt aVolume ) = 0; |
|
57 |
|
58 /** |
|
59 * See CMdaAudioToneUtility::SetRepeats. |
|
60 */ |
|
61 virtual void SetRepeats( |
|
62 TInt aRepeatNumberOfTimes, |
|
63 const TTimeIntervalMicroSeconds& aTrailingSilence ) = 0; |
|
64 |
|
65 /** |
|
66 * See CMdaAudioToneUtility::SetPriority. |
|
67 */ |
|
68 virtual void SetPriority( |
|
69 TInt aPriority, |
|
70 TMdaPriorityPreference aPref) = 0; |
|
71 |
|
72 /** |
|
73 * See CMdaAudioToneUtility::SetVolumeRamp. |
|
74 */ |
|
75 virtual void SetVolumeRamp( |
|
76 const TTimeIntervalMicroSeconds& aRampDuration) = 0; |
|
77 |
|
78 /** |
|
79 * See CMdaAudioToneUtility::SetVolumeRamp. |
|
80 */ |
|
81 virtual void Play() = 0; |
|
82 |
|
83 /** |
|
84 * See CMdaAudioToneUtility::CancelPrepare. |
|
85 */ |
|
86 virtual void CancelPrepare() = 0; |
|
87 |
|
88 }; |
|
89 |
|
90 } //namespace TMS |
|
91 |
|
92 #endif // CPEAUDIOTONEUTILITY_H |