Top |
MmGdbusModemVoiceMmGdbusModemVoice — Generated C code for the org.freedesktop.ModemManager1.Modem.Voice D-Bus interface |
MmGdbusModemVoice is implemented by MMModemVoice, MmGdbusModemVoiceProxy and MmGdbusModemVoiceSkeleton.
This section contains code for working with the org.freedesktop.ModemManager1.Modem.Voice D-Bus interface in C.
const gchar *const *
mm_gdbus_modem_voice_get_calls (MmGdbusModemVoice *object
);
Gets the value of the "Calls" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
object
was constructed. Use mm_gdbus_modem_voice_dup_calls()
if on another thread.[skip]
The property value or NULL
if the property is not set. Do not free the returned value, it belongs to object
.
[transfer none]
gchar **
mm_gdbus_modem_voice_dup_calls (MmGdbusModemVoice *object
);
Gets a copy of the "Calls" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
[skip]
The property value or NULL
if the property is not set. The returned value should be freed with g_strfreev()
.
[transfer full]
void mm_gdbus_modem_voice_call_create_call (MmGdbusModemVoice *proxy
,GVariant *arg_properties
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously invokes the CreateCall()
proxy
.
When the operation is finished, callback
will be invoked in the thread-default main loop of the thread you are calling this method from.
You can then call mm_gdbus_modem_voice_call_create_call_finish()
to get the result of the operation.
See mm_gdbus_modem_voice_call_create_call_sync()
for the synchronous, blocking version of this method.
proxy |
||
arg_properties |
Argument to pass with the method invocation. |
|
cancellable |
A GCancellable or |
[allow-none] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or |
|
user_data |
User data to pass to |
gboolean mm_gdbus_modem_voice_call_create_call_finish (MmGdbusModemVoice *proxy
,gchar **out_path
,GAsyncResult *res
,GError **error
);
Finishes an operation started with mm_gdbus_modem_voice_call_create_call()
.
proxy |
||
out_path |
Return location for return parameter or |
[out] |
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
gboolean mm_gdbus_modem_voice_call_create_call_sync (MmGdbusModemVoice *proxy
,GVariant *arg_properties
,gchar **out_path
,GCancellable *cancellable
,GError **error
);
Synchronously invokes the CreateCall()
proxy
. The calling thread is blocked until a reply is received.
See mm_gdbus_modem_voice_call_create_call()
for the asynchronous version of this method.
proxy |
||
arg_properties |
Argument to pass with the method invocation. |
|
out_path |
Return location for return parameter or |
[out] |
cancellable |
A GCancellable or |
[allow-none] |
error |
Return location for error or |
void mm_gdbus_modem_voice_call_delete_call (MmGdbusModemVoice *proxy
,const gchar *arg_path
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously invokes the DeleteCall()
proxy
.
When the operation is finished, callback
will be invoked in the thread-default main loop of the thread you are calling this method from.
You can then call mm_gdbus_modem_voice_call_delete_call_finish()
to get the result of the operation.
See mm_gdbus_modem_voice_call_delete_call_sync()
for the synchronous, blocking version of this method.
proxy |
||
arg_path |
Argument to pass with the method invocation. |
|
cancellable |
A GCancellable or |
[allow-none] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or |
|
user_data |
User data to pass to |
gboolean mm_gdbus_modem_voice_call_delete_call_finish (MmGdbusModemVoice *proxy
,GAsyncResult *res
,GError **error
);
Finishes an operation started with mm_gdbus_modem_voice_call_delete_call()
.
proxy |
||
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
gboolean mm_gdbus_modem_voice_call_delete_call_sync (MmGdbusModemVoice *proxy
,const gchar *arg_path
,GCancellable *cancellable
,GError **error
);
Synchronously invokes the DeleteCall()
proxy
. The calling thread is blocked until a reply is received.
See mm_gdbus_modem_voice_call_delete_call()
for the asynchronous version of this method.
proxy |
||
arg_path |
Argument to pass with the method invocation. |
|
cancellable |
A GCancellable or |
[allow-none] |
error |
Return location for error or |
void mm_gdbus_modem_voice_call_list_calls (MmGdbusModemVoice *proxy
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously invokes the ListCalls()
proxy
.
When the operation is finished, callback
will be invoked in the thread-default main loop of the thread you are calling this method from.
You can then call mm_gdbus_modem_voice_call_list_calls_finish()
to get the result of the operation.
See mm_gdbus_modem_voice_call_list_calls_sync()
for the synchronous, blocking version of this method.
proxy |
||
cancellable |
A GCancellable or |
[allow-none] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or |
|
user_data |
User data to pass to |
gboolean mm_gdbus_modem_voice_call_list_calls_finish (MmGdbusModemVoice *proxy
,gchar ***out_result
,GAsyncResult *res
,GError **error
);
Finishes an operation started with mm_gdbus_modem_voice_call_list_calls()
.
proxy |
||
out_result |
Return location for return parameter or |
[out] |
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
gboolean mm_gdbus_modem_voice_call_list_calls_sync (MmGdbusModemVoice *proxy
,gchar ***out_result
,GCancellable *cancellable
,GError **error
);
Synchronously invokes the ListCalls()
proxy
. The calling thread is blocked until a reply is received.
See mm_gdbus_modem_voice_call_list_calls()
for the asynchronous version of this method.
proxy |
||
out_result |
Return location for return parameter or |
[out] |
cancellable |
A GCancellable or |
[allow-none] |
error |
Return location for error or |
typedef struct _MmGdbusModemVoice MmGdbusModemVoice;
Abstract interface type for the D-Bus interface org.freedesktop.ModemManager1.Modem.Voice.
struct MmGdbusModemVoiceIface { GTypeInterface parent_iface; gboolean (*handle_create_call) ( MmGdbusModemVoice *object, GDBusMethodInvocation *invocation, GVariant *arg_properties); gboolean (*handle_delete_call) ( MmGdbusModemVoice *object, GDBusMethodInvocation *invocation, const gchar *arg_path); gboolean (*handle_list_calls) ( MmGdbusModemVoice *object, GDBusMethodInvocation *invocation); const gchar *const * (*get_calls) (MmGdbusModemVoice *object); void (*call_added) ( MmGdbusModemVoice *object, const gchar *arg_path); void (*call_deleted) ( MmGdbusModemVoice *object, const gchar *arg_path); };
Virtual table for the D-Bus interface org.freedesktop.ModemManager1.Modem.Voice.
GTypeInterface |
The parent interface. |
|
Handler for the “handle-create-call” signal. |
||
Handler for the “handle-delete-call” signal. |
||
Handler for the “handle-list-calls” signal. |
||
Getter for the “calls” property. |
||
Handler for the “call-added” signal. |
||
Handler for the “call-deleted” signal. |
“calls”
property“calls” GStrv
Represents the D-Bus property "Calls".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
Flags: Read / Write
“call-added”
signalvoid user_function (MmGdbusModemVoice *object, gchar *arg_path, gpointer user_data)
On the client-side, this signal is emitted whenever the D-Bus signal "CallAdded" is received.
On the service-side, this signal can be used with e.g. g_signal_emit_by_name()
to make the object emit the D-Bus signal.
Flags: Run Last
“call-deleted”
signalvoid user_function (MmGdbusModemVoice *object, gchar *arg_path, gpointer user_data)
On the client-side, this signal is emitted whenever the D-Bus signal "CallDeleted" is received.
On the service-side, this signal can be used with e.g. g_signal_emit_by_name()
to make the object emit the D-Bus signal.
Flags: Run Last
“handle-create-call”
signalgboolean user_function (MmGdbusModemVoice *object, GDBusMethodInvocation *invocation, GVariant *arg_properties, gpointer user_data)
Signal emitted when a remote caller is invoking the CreateCall()
If a signal handler returns TRUE
, it means the signal handler will handle the invocation (e.g. take a reference to invocation
and eventually call mm_gdbus_modem_voice_complete_create_call()
or e.g. g_dbus_method_invocation_return_error()
on it) and no order signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD
error is returned.
object |
||
invocation |
||
arg_properties |
Argument passed by remote caller. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“handle-delete-call”
signalgboolean user_function (MmGdbusModemVoice *object, GDBusMethodInvocation *invocation, gchar *arg_path, gpointer user_data)
Signal emitted when a remote caller is invoking the DeleteCall()
If a signal handler returns TRUE
, it means the signal handler will handle the invocation (e.g. take a reference to invocation
and eventually call mm_gdbus_modem_voice_complete_delete_call()
or e.g. g_dbus_method_invocation_return_error()
on it) and no order signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD
error is returned.
object |
||
invocation |
||
arg_path |
Argument passed by remote caller. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“handle-list-calls”
signalgboolean user_function (MmGdbusModemVoice *object, GDBusMethodInvocation *invocation, gpointer user_data)
Signal emitted when a remote caller is invoking the ListCalls()
If a signal handler returns TRUE
, it means the signal handler will handle the invocation (e.g. take a reference to invocation
and eventually call mm_gdbus_modem_voice_complete_list_calls()
or e.g. g_dbus_method_invocation_return_error()
on it) and no order signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD
error is returned.
Flags: Run Last