Commit 46e3e992 authored by Stepan Salenikovich's avatar Stepan Salenikovich Committed by Guillaume Roguez

gnome: support for new LRC call states

Refs #69340
Refs #67238

Change-Id: Ia1765a4e1d9cc6738b3d286639f43f713fa14d41
parent fec17d2b
...@@ -173,6 +173,12 @@ update_state(CurrentCallView *view, Call *call) ...@@ -173,6 +173,12 @@ update_state(CurrentCallView *view, Call *call)
Call::State state = call->state(); Call::State state = call->state();
switch(state) { switch(state) {
case Call::State::NEW:
gtk_label_set_text(GTK_LABEL(priv->label_status), "New.");
break;
case Call::State::ABORTED:
gtk_label_set_text(GTK_LABEL(priv->label_status), "Aborted.");
break;
case Call::State::INCOMING: case Call::State::INCOMING:
gtk_label_set_text(GTK_LABEL(priv->label_status), "Incoming..."); gtk_label_set_text(GTK_LABEL(priv->label_status), "Incoming...");
break; break;
......
...@@ -114,6 +114,12 @@ update_state(IncomingCallView *view, Call *call) ...@@ -114,6 +114,12 @@ update_state(IncomingCallView *view, Call *call)
Call::State state = call->state(); Call::State state = call->state();
switch(state) { switch(state) {
case Call::State::NEW:
gtk_label_set_text(GTK_LABEL(priv->label_status), "New.");
break;
case Call::State::ABORTED:
gtk_label_set_text(GTK_LABEL(priv->label_status), "Aborted.");
break;
case Call::State::INCOMING: case Call::State::INCOMING:
gtk_label_set_text(GTK_LABEL(priv->label_status), "Incoming..."); gtk_label_set_text(GTK_LABEL(priv->label_status), "Incoming...");
break; break;
...@@ -177,6 +183,8 @@ update_state(IncomingCallView *view, Call *call) ...@@ -177,6 +183,8 @@ update_state(IncomingCallView *view, Call *call)
gtk_widget_show(priv->button_accept_incoming); gtk_widget_show(priv->button_accept_incoming);
gtk_widget_show(priv->button_reject_incoming); gtk_widget_show(priv->button_reject_incoming);
break; break;
case Call::State::NEW:
case Call::State::ABORTED:
case Call::State::RINGING: case Call::State::RINGING:
case Call::State::CURRENT: case Call::State::CURRENT:
case Call::State::DIALING: case Call::State::DIALING:
......
...@@ -168,6 +168,7 @@ call_selection_changed(GtkTreeSelection *selection, gpointer win) ...@@ -168,6 +168,7 @@ call_selection_changed(GtkTreeSelection *selection, gpointer win)
* switch(state.value<Call::LifeCycleState>()) { */ * switch(state.value<Call::LifeCycleState>()) { */
Call::LifeCycleState lifecyclestate = (Call::LifeCycleState)state.toUInt(); Call::LifeCycleState lifecyclestate = (Call::LifeCycleState)state.toUInt();
switch(lifecyclestate) { switch(lifecyclestate) {
case Call::LifeCycleState::CREATION:
case Call::LifeCycleState::INITIALIZATION: case Call::LifeCycleState::INITIALIZATION:
case Call::LifeCycleState::FINISHED: case Call::LifeCycleState::FINISHED:
new_call_view = incoming_call_view_new(); new_call_view = incoming_call_view_new();
...@@ -234,6 +235,7 @@ call_state_changed(Call *call, gpointer win) ...@@ -234,6 +235,7 @@ call_state_changed(Call *call, gpointer win)
* switch(state.value<Call::LifeCycleState>()) { */ * switch(state.value<Call::LifeCycleState>()) { */
Call::LifeCycleState lifecyclestate = (Call::LifeCycleState)state.toUInt(); Call::LifeCycleState lifecyclestate = (Call::LifeCycleState)state.toUInt();
switch(lifecyclestate) { switch(lifecyclestate) {
case Call::LifeCycleState::CREATION:
case Call::LifeCycleState::INITIALIZATION: case Call::LifeCycleState::INITIALIZATION:
/* LifeCycleState cannot go backwards, so it should not be possible /* LifeCycleState cannot go backwards, so it should not be possible
* that the call is displayed as current (meaning that its in progress) * that the call is displayed as current (meaning that its in progress)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment