mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2025-01-05 19:15:32 +00:00
calls-call: Add inbound property
This property signifies whether a call is to us from someone on the network (inbound, TRUE) or from us to someone on the network (outbound, FALSE).
This commit is contained in:
parent
3160fbee15
commit
7ed3f5f16c
1 changed files with 18 additions and 0 deletions
|
@ -27,6 +27,8 @@
|
|||
#include "enum-types.h"
|
||||
#include "util.h"
|
||||
|
||||
#include <glib/gi18n.h>
|
||||
|
||||
|
||||
void
|
||||
calls_call_state_to_string (GString *string,
|
||||
|
@ -92,6 +94,13 @@ calls_call_state_parse_nick (CallsCallState *state,
|
|||
|
||||
G_DEFINE_INTERFACE (CallsCall, calls_call, CALLS_TYPE_MESSAGE_SOURCE);
|
||||
|
||||
enum {
|
||||
PROP_0,
|
||||
PROP_INBOUND,
|
||||
PROP_LAST_PROP,
|
||||
};
|
||||
static GParamSpec *props[PROP_LAST_PROP];
|
||||
|
||||
enum {
|
||||
SIGNAL_STATE_CHANGED,
|
||||
SIGNAL_LAST_SIGNAL,
|
||||
|
@ -108,6 +117,15 @@ calls_call_default_init (CallsCallInterface *iface)
|
|||
CALLS_TYPE_CALL_STATE
|
||||
};
|
||||
|
||||
props[PROP_INBOUND] =
|
||||
g_param_spec_boolean ("inbound",
|
||||
_("Inbound"),
|
||||
_("Whether the call is inbound"),
|
||||
FALSE,
|
||||
G_PARAM_READABLE);
|
||||
|
||||
g_object_interface_install_property (iface, props[PROP_INBOUND]);
|
||||
|
||||
/**
|
||||
* CallsCall::state-changed:
|
||||
* @self: The #CallsCall instance.
|
||||
|
|
Loading…
Reference in a new issue