1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-06-30 15:49:31 +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:
Bob Ham 2019-06-28 09:59:02 +01:00
parent 3160fbee15
commit 7ed3f5f16c

View file

@ -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.