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: Phone Services manages all Phone Engine's Qt Highway services. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef PHONESERVICES_H |
|
19 #define PHONESERVICES_H |
|
20 |
|
21 #include <QObject> |
|
22 #include "mpecallcontrolif.h" |
|
23 #include "mpecallsettersif.h" |
|
24 |
|
25 class DialService; |
|
26 class DTMFService; |
|
27 class MPEKeySequenceRecognitionIF; |
|
28 class KeySequenceRecognitionService; |
|
29 |
|
30 // Depricated APIs |
|
31 class DialServiceDepricated; |
|
32 class DTMFServiceDepricated; |
|
33 class KeySequenceRecognitionServiceDepricated; |
|
34 |
|
35 #ifdef BUILD_PHONESERVICES |
|
36 #define PHONESERVICES_EXPORT Q_DECL_EXPORT |
|
37 #else |
|
38 #define PHONESERVICES_EXPORT Q_DECL_IMPORT |
|
39 #endif |
|
40 |
|
41 class PHONESERVICES_EXPORT PhoneServices : public QObject |
|
42 { |
|
43 Q_OBJECT |
|
44 public: |
|
45 PhoneServices( |
|
46 MPECallControlIF &call, |
|
47 MPECallSettersIF ¶meters, |
|
48 MPEKeySequenceRecognitionIF &keySequenceRecognition, |
|
49 QObject *parent = 0); |
|
50 ~PhoneServices(); |
|
51 |
|
52 private: |
|
53 QScopedPointer<DialService> dialService; |
|
54 QScopedPointer<DTMFService> dtmfService; |
|
55 QScopedPointer<KeySequenceRecognitionService> m_keySequenceRecognitionService; |
|
56 |
|
57 // Depricated |
|
58 QScopedPointer<DialServiceDepricated> dialServiceDepricated; |
|
59 QScopedPointer<DTMFServiceDepricated> dtmfServiceDepricated; |
|
60 QScopedPointer<KeySequenceRecognitionServiceDepricated> m_keySequenceRecognitionServiceDepricated; |
|
61 }; |
|
62 |
|
63 #endif // PHONESERVICES_H |
|