1 /* |
|
2 * Copyright (c) 2010 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: QT Bindings for TMS |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef QTMS_INBAND_TONE_H |
|
19 #define QTMS_INBAND_TONE_H |
|
20 |
|
21 #include <glib.h> |
|
22 #include <qtms.h> |
|
23 #include <QObject> |
|
24 #include "qtmswrapperexport.h" |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 namespace TMS |
|
28 { |
|
29 class TMSInbandTone; |
|
30 } |
|
31 |
|
32 namespace QTMS |
|
33 { |
|
34 |
|
35 /** |
|
36 * QTMSInbandTone class |
|
37 * |
|
38 * This class provides Inband tone playback capability to the QTMS clients. |
|
39 * |
|
40 * @lib QTMSapi.lib |
|
41 * |
|
42 */ |
|
43 class QTMS_WRAPPER_DLL_EXPORT QTMSInbandTone : public QObject |
|
44 { |
|
45 Q_OBJECT |
|
46 public: |
|
47 /** |
|
48 * Destructor |
|
49 */ |
|
50 virtual ~QTMSInbandTone(); |
|
51 |
|
52 /** |
|
53 * Starts the inband tone playback. The inband volume will correspond to |
|
54 * the current downlink volume level. |
|
55 * |
|
56 * For CS calltype. |
|
57 * |
|
58 * @return |
|
59 * QTMS_RESULT_SUCCESS if the operation was successful. |
|
60 * |
|
61 */ |
|
62 gint Start(QTMSInbandToneType inbandtonetype); |
|
63 |
|
64 /** |
|
65 * Stops the inband tone playback. |
|
66 * |
|
67 * @return |
|
68 * QTMS_RESULT_SUCCESS if the operation was successful. |
|
69 * |
|
70 */ |
|
71 gint Stop(); |
|
72 |
|
73 Q_SIGNALS: |
|
74 void InbandToneEvent(const QTMSInbandTone& inbandtone, |
|
75 QTMSSignalEvent event); |
|
76 |
|
77 protected: |
|
78 |
|
79 /** |
|
80 * Constructor |
|
81 */ |
|
82 QTMSInbandTone(); |
|
83 |
|
84 protected: |
|
85 TMS::TMSInbandTone* iInbandTone; |
|
86 }; |
|
87 |
|
88 } //namespace QTMS |
|
89 |
|
90 #endif //__QTMS_INBAND_TONE_H__ |
|
91 // End of file |
|