| Top |
| void | (*CallsOriginForeachCallFunc) () |
| char * | calls_origin_get_name () |
| char * | calls_origin_get_id () |
| GList * | calls_origin_get_calls () |
| void | calls_origin_foreach_call () |
| void | calls_origin_dial () |
| gboolean | calls_origin_supports_protocol () |
| GStrv | calls_origin_get_emergency_numbers () |
| const char * | calls_origin_get_country_code () |
| const char * | calls_origin_get_network_country_code () |
| gpointer | calls | Read |
| char * | country-code | Read |
| GStrv | emergency-numbers | Read |
| char * | id | Read / Write / Construct Only |
| char * | name | Read |
void (*CallsOriginForeachCallFunc) (gpointer param,CallsCall *call,CallsOrigin *origin);
char *
calls_origin_get_name (CallsOrigin *self);
Get the user-presentable name of the origin.
Returns (transfer full): A string containing the name. The string must be freed by the caller.
char *
calls_origin_get_id (CallsOrigin *self);
Get the id of the origin.
Returns (transfer full): A string containing the id. The string must be freed by the caller.
GList *
calls_origin_get_calls (CallsOrigin *self);
Get the list of current calls.
A newly-allocated GList of objects implementing CallsCall or NULL if there was an error.
[transfer container]
void calls_origin_foreach_call (CallsOrigin *self,CallsOriginForeachCallFunc callback,gpointer param);
Iterate over all current calls from this origin
void calls_origin_dial (CallsOrigin *self,const char *number);
Dial a new number from this origin. If a new call is successfully created, the call-added signal will be emitted with the call. If there is an error, an appropriate message signal will be emitted.
gboolean calls_origin_supports_protocol (CallsOrigin *self,const char *protocol);
const char *
calls_origin_get_network_country_code (CallsOrigin *self);
Gets the country code of the mobile network we're currently connected to.
struct CallsOriginInterface {
GTypeInterface parent_iface;
void (*dial) (CallsOrigin *self,
const char *number);
gboolean (*supports_protocol) (CallsOrigin *self,
const char *protocol);
const char * (*get_country_code) (CallsOrigin *self);
/* TODO: should we have an additional CALLS_MODEM_ORIGIN interface for modems? */
const char * (*get_network_country_code) (CallsOrigin *self);
};
“country-code” property “country-code” char *
The country code of the origin, if any.
Owner: CallsOrigin
Flags: Read
Default value: NULL
“emergency-numbers” property “emergency-numbers” GStrv
The available emergency numbers.
Owner: CallsOrigin
Flags: Read
“id” property “id” char *
ID of the origin.
Owner: CallsOrigin
Flags: Read / Write / Construct Only
Default value: NULL
“call-added” signalvoid user_function (CallsOrigin *callsorigin, CallsCall *arg1, gpointer user_data)
Flags: Run Last
“call-removed” signalvoid user_function (CallsOrigin *callsorigin, CallsCall *arg1, char *arg2, gpointer user_data)
Flags: Run Last