mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2025-01-06 11:35:32 +00:00
dummy: Add dummy send_dtmf_tone function
This will allow DTMF to be tested UI wise when running the dummy plugin.
This commit is contained in:
parent
acec33bb6c
commit
4c2717c362
1 changed files with 8 additions and 0 deletions
|
@ -124,6 +124,13 @@ calls_dummy_call_hang_up (CallsCall *call)
|
|||
change_state (self, CALLS_CALL_STATE_DISCONNECTED);
|
||||
}
|
||||
|
||||
static void
|
||||
calls_dummy_call_send_dtmf_tone (CallsCall *call,
|
||||
char key)
|
||||
{
|
||||
g_debug ("Beep! (%c)", key);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
outbound_timeout_cb (CallsDummyCall *self)
|
||||
{
|
||||
|
@ -231,6 +238,7 @@ calls_dummy_call_class_init (CallsDummyCallClass *klass)
|
|||
call_class->get_protocol = calls_dummy_call_get_protocol;
|
||||
call_class->answer = calls_dummy_call_answer;
|
||||
call_class->hang_up = calls_dummy_call_hang_up;
|
||||
call_class->send_dtmf_tone = calls_dummy_call_send_dtmf_tone;
|
||||
|
||||
props[PROP_NUMBER_CONSTRUCTOR] =
|
||||
g_param_spec_string ("number-constructor",
|
||||
|
|
Loading…
Reference in a new issue