16 */ |
16 */ |
17 |
17 |
18 #include "phoneservices.h" |
18 #include "phoneservices.h" |
19 #include "dialservice.h" |
19 #include "dialservice.h" |
20 #include "dtmfservice.h" |
20 #include "dtmfservice.h" |
|
21 #include "mpekeysequencerecognitionif.h" |
|
22 #include "keysequencerecognitionservice.h" |
21 #include "qtphonelog.h" |
23 #include "qtphonelog.h" |
22 |
24 |
23 PhoneServices::PhoneServices(MPECallControlIF &call, MPECallSettersIF ¶meters, QObject* parent) : |
25 // Depricated APIs |
24 QObject(parent) |
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) |
25 { |
44 { |
26 PHONE_DEBUG("PhoneServices::PhoneServices"); |
45 PHONE_DEBUG("PhoneServices::PhoneServices"); |
27 dialService = new DialService(call, parameters, this); |
46 dialService.reset(new DialService(call, parameters)); |
28 dtmfService = new DTMFService(call, parameters, this); |
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)); |
29 } |
56 } |
30 |
57 |
31 PhoneServices::~PhoneServices() |
58 PhoneServices::~PhoneServices() |
32 { |
59 { |
33 } |
60 } |