equal
deleted
inserted
replaced
39 |
39 |
40 int DTMFService::playDTMFTone(const QChar& keyToPlay) |
40 int DTMFService::playDTMFTone(const QChar& keyToPlay) |
41 { |
41 { |
42 PHONE_TRACE2("keyToPlay:", keyToPlay); |
42 PHONE_TRACE2("keyToPlay:", keyToPlay); |
43 if (!hasCapability()) { |
43 if (!hasCapability()) { |
44 return; |
44 return KErrPermissionDenied; |
45 } |
45 } |
46 m_parameters.SetKeyCode(keyToPlay.unicode()); |
46 m_parameters.SetKeyCode(keyToPlay.unicode()); |
47 TRAPD(ret, m_call.HandlePlayDTMFL() ); |
47 TRAPD(ret, m_call.HandlePlayDTMFL() ); |
48 return ret; |
48 return ret; |
49 } |
49 } |
50 |
50 |
51 int DTMFService::stopDTMFPlay() |
51 int DTMFService::stopDTMFPlay() |
52 { |
52 { |
53 PHONE_TRACE; |
53 PHONE_TRACE; |
54 if (!hasCapability()) { |
54 if (!hasCapability()) { |
55 return; |
55 return KErrPermissionDenied; |
56 } |
56 } |
57 return m_call.HandleEndDTMF(); |
57 return m_call.HandleEndDTMF(); |
58 } |
58 } |
59 |
59 |
60 bool DTMFService::hasCapability() |
60 bool DTMFService::hasCapability() |