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 #include "phoneservices.h" |
|
19 #include "dialservice.h" |
|
20 #include "dtmfservice.h" |
|
21 #include "mpekeysequencerecognitionif.h" |
|
22 #include "keysequencerecognitionservice.h" |
|
23 #include "qtphonelog.h" |
|
24 |
|
25 // Depricated APIs |
|
26 #include "dialservicedepricated.h" |
|
27 #include "dtmfservicedepricated.h" |
|
28 #include "keysequencerecognitionservicedepricated.h" |
|
29 |
|
30 PhoneServices::PhoneServices( |
|
31 MPECallControlIF &call, |
|
32 MPECallSettersIF ¶meters, |
|
33 MPEKeySequenceRecognitionIF &keySequenceRecognition, |
|
34 QObject* parent) |
|
35 : |
|
36 QObject(parent), |
|
37 dialService(0), |
|
38 dtmfService(0), |
|
39 m_keySequenceRecognitionService(0) |
|
40 // Depricated |
|
41 , dialServiceDepricated(0) |
|
42 , dtmfServiceDepricated(0) |
|
43 , m_keySequenceRecognitionServiceDepricated(0) |
|
44 { |
|
45 PHONE_DEBUG("PhoneServices::PhoneServices"); |
|
46 dialService.reset(new DialService(call, parameters)); |
|
47 dtmfService.reset(new DTMFService(call, parameters)); |
|
48 m_keySequenceRecognitionService.reset( |
|
49 new KeySequenceRecognitionService(keySequenceRecognition)); |
|
50 |
|
51 // Depricated |
|
52 dialServiceDepricated.reset(new DialServiceDepricated(call, parameters)); |
|
53 dtmfServiceDepricated.reset(new DTMFServiceDepricated(call, parameters)); |
|
54 m_keySequenceRecognitionServiceDepricated.reset( |
|
55 new KeySequenceRecognitionServiceDepricated(keySequenceRecognition)); |
|
56 } |
|
57 |
|
58 PhoneServices::~PhoneServices() |
|
59 { |
|
60 } |
|