1 /*! |
|
2 * Copyright (c) 2009-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: DTMF API to be used through Qt Highway. |
|
15 * THIS IS DEPRICATED API - DO NOT USE! |
|
16 * (use DTMFService instead) |
|
17 * |
|
18 */ |
|
19 |
|
20 #ifndef DTMFSERVICEDEPRICATED_H |
|
21 #define DTMFSERVICEDEPRICATED_H |
|
22 |
|
23 #include <QObject> |
|
24 #include <QString> |
|
25 #include <xqserviceprovider.h> |
|
26 #include "mpecallcontrolif.h" |
|
27 #include "mpecallsettersif.h" |
|
28 |
|
29 class DTMFServiceDepricated : public XQServiceProvider |
|
30 { |
|
31 Q_OBJECT |
|
32 public: |
|
33 DTMFServiceDepricated( |
|
34 MPECallControlIF &call, |
|
35 MPECallSettersIF ¶meters, |
|
36 QObject *parent = 0); |
|
37 ~DTMFServiceDepricated(); |
|
38 |
|
39 public slots: |
|
40 /*! |
|
41 \fn playDTMFTone(const QChar& keyToPlay) |
|
42 |
|
43 This method plays DTMF tone matching given character. |
|
44 If character doesn't match any supported DTMF tone |
|
45 it is ignored. |
|
46 |
|
47 Usage example: |
|
48 XQServiceRequest snd("com.nokia.services.telephony","playDTMFTone(QChar)"); |
|
49 snd << "5"; |
|
50 */ |
|
51 void playDTMFTone(const QChar& keyToPlay); |
|
52 |
|
53 /*! |
|
54 \fn stopDTMFPlay() |
|
55 |
|
56 This method stops playing DTMF tone if it is currently played. |
|
57 */ |
|
58 void stopDTMFPlay(); |
|
59 |
|
60 |
|
61 private: |
|
62 MPECallControlIF &m_call; |
|
63 MPECallSettersIF &m_parameters; |
|
64 }; |
|
65 |
|
66 #endif // DTMFSERVICE_H |
|