call: Add call-type property
The designs for the call details show information on the type of the call: https://gitlab.gnome.org/Teams/Design/app-mockups/blob/master/calls/calls.png So f.e. "Cellular", "Matrix WebRTC Video Call". These properties can potentially also be useful in choosing the mechanism to use for the audio controls from the call display.
This commit is contained in:
@@ -33,8 +33,7 @@ G_BEGIN_DECLS
|
||||
|
||||
G_DECLARE_DERIVABLE_TYPE (CallsCall, calls_call, CALLS, CALL, GObject)
|
||||
|
||||
typedef enum
|
||||
{
|
||||
typedef enum {
|
||||
CALLS_CALL_STATE_UNKNOWN = 0,
|
||||
CALLS_CALL_STATE_ACTIVE,
|
||||
CALLS_CALL_STATE_HELD,
|
||||
@@ -45,6 +44,12 @@ typedef enum
|
||||
CALLS_CALL_STATE_DISCONNECTED
|
||||
} CallsCallState;
|
||||
|
||||
typedef enum {
|
||||
CALLS_CALL_TYPE_UNKNOWN = 0,
|
||||
CALLS_CALL_TYPE_CELLULAR,
|
||||
CALLS_CALL_TYPE_SIP_VOICE,
|
||||
} CallsCallType;
|
||||
|
||||
struct _CallsCallClass
|
||||
{
|
||||
GObjectClass parent_iface;
|
||||
@@ -65,6 +70,7 @@ void calls_call_set_name (CallsCall *self,
|
||||
CallsCallState calls_call_get_state (CallsCall *self);
|
||||
void calls_call_set_state (CallsCall *self,
|
||||
CallsCallState state);
|
||||
CallsCallType calls_call_get_call_type (CallsCall *self);
|
||||
gboolean calls_call_get_inbound (CallsCall *self);
|
||||
const char *calls_call_get_protocol (CallsCall *self);
|
||||
void calls_call_answer (CallsCall *self);
|
||||
|
Reference in New Issue
Block a user