equal
deleted
inserted
replaced
59 if (sts) { |
59 if (sts) { |
60 sts->StopAlarm(contextId); |
60 sts->StopAlarm(contextId); |
61 } |
61 } |
62 } |
62 } |
63 |
63 |
|
64 unsigned int XQSystemToneServicePrivate::playAlarm(XQSystemToneService::ToneType toneType) |
|
65 { |
|
66 unsigned int ctx = 0; |
|
67 if (sts) { |
|
68 sts->PlayAlarm(mapToneType(toneType), ctx, *this); |
|
69 emit q_ptr->alarmStarted(ctx); |
|
70 } |
|
71 return ctx; |
|
72 } |
|
73 |
64 CSystemToneService::TToneType XQSystemToneServicePrivate::mapToneType(XQSystemToneService::ToneType toneType) |
74 CSystemToneService::TToneType XQSystemToneServicePrivate::mapToneType(XQSystemToneService::ToneType toneType) |
65 { |
75 { |
66 return static_cast<CSystemToneService::TToneType>(toneType); |
76 return static_cast<CSystemToneService::TToneType>(toneType); |
67 } |
77 } |
68 |
78 |