![]() |
![]() |
![]() |
libmm-glib Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Prerequisites | Known Implementations | Properties | Signals |
MmGdbusModemVoiceMmGdbusModemVoice — Generated C code for the org.freedesktop.ModemManager1.Modem.Voice D-Bus interface |
MmGdbusModemVoice; struct MmGdbusModemVoiceIface; const gchar *const * mm_gdbus_modem_voice_get_calls (MmGdbusModemVoice *object
); gchar ** mm_gdbus_modem_voice_dup_calls (MmGdbusModemVoice *object
); void mm_gdbus_modem_voice_call_create_call (MmGdbusModemVoice *proxy
,GVariant *arg_properties
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); gboolean mm_gdbus_modem_voice_call_create_call_finish (MmGdbusModemVoice *proxy
,gchar **out_path
,GAsyncResult *res
,GError **error
); gboolean mm_gdbus_modem_voice_call_create_call_sync (MmGdbusModemVoice *proxy
,GVariant *arg_properties
,gchar **out_path
,GCancellable *cancellable
,GError **error
); void mm_gdbus_modem_voice_call_delete_call (MmGdbusModemVoice *proxy
,const gchar *arg_path
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); gboolean mm_gdbus_modem_voice_call_delete_call_finish (MmGdbusModemVoice *proxy
,GAsyncResult *res
,GError **error
); gboolean mm_gdbus_modem_voice_call_delete_call_sync (MmGdbusModemVoice *proxy
,const gchar *arg_path
,GCancellable *cancellable
,GError **error
); void mm_gdbus_modem_voice_call_list_calls (MmGdbusModemVoice *proxy
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); gboolean mm_gdbus_modem_voice_call_list_calls_finish (MmGdbusModemVoice *proxy
,gchar ***out_result
,GAsyncResult *res
,GError **error
); gboolean mm_gdbus_modem_voice_call_list_calls_sync (MmGdbusModemVoice *proxy
,gchar ***out_result
,GCancellable *cancellable
,GError **error
);
MmGdbusModemVoice is implemented by MMModemVoice, MmGdbusModemVoiceProxy and MmGdbusModemVoiceSkeleton.
"call-added" :Run Last
"call-deleted" :Run Last
"handle-create-call" :Run Last
"handle-delete-call" :Run Last
"handle-list-calls" :Run Last
This section contains code for working with the org.freedesktop.ModemManager1.Modem.Voice D-Bus interface in C.
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.
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. |
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.
|
A MmGdbusModemVoice. |
Returns : |
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.
|
A MmGdbusModemVoice. |
Returns : |
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.
|
A MmGdbusModemVoiceProxy. |
|
Argument to pass with the method invocation. |
|
A GCancellable or NULL . [allow-none]
|
|
A GAsyncReadyCallback to call when the request is satisfied or NULL . |
|
User data to pass to callback . |
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()
.
|
A MmGdbusModemVoiceProxy. |
|
Return location for return parameter or NULL to ignore. [out]
|
|
The GAsyncResult obtained from the GAsyncReadyCallback passed to mm_gdbus_modem_voice_call_create_call() . |
|
Return location for error or NULL . |
Returns : |
TRUE if the call succeded, FALSE if error is set. [skip]
|
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.
|
A MmGdbusModemVoiceProxy. |
|
Argument to pass with the method invocation. |
|
Return location for return parameter or NULL to ignore. [out]
|
|
A GCancellable or NULL . [allow-none]
|
|
Return location for error or NULL . |
Returns : |
TRUE if the call succeded, FALSE if error is set. [skip]
|
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.
|
A MmGdbusModemVoiceProxy. |
|
Argument to pass with the method invocation. |
|
A GCancellable or NULL . [allow-none]
|
|
A GAsyncReadyCallback to call when the request is satisfied or NULL . |
|
User data to pass to callback . |
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()
.
|
A MmGdbusModemVoiceProxy. |
|
The GAsyncResult obtained from the GAsyncReadyCallback passed to mm_gdbus_modem_voice_call_delete_call() . |
|
Return location for error or NULL . |
Returns : |
TRUE if the call succeded, FALSE if error is set. [skip]
|
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.
|
A MmGdbusModemVoiceProxy. |
|
Argument to pass with the method invocation. |
|
A GCancellable or NULL . [allow-none]
|
|
Return location for error or NULL . |
Returns : |
TRUE if the call succeded, FALSE if error is set. [skip]
|
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.
|
A MmGdbusModemVoiceProxy. |
|
A GCancellable or NULL . [allow-none]
|
|
A GAsyncReadyCallback to call when the request is satisfied or NULL . |
|
User data to pass to callback . |
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()
.
|
A MmGdbusModemVoiceProxy. |
|
Return location for return parameter or NULL to ignore. [out]
|
|
The GAsyncResult obtained from the GAsyncReadyCallback passed to mm_gdbus_modem_voice_call_list_calls() . |
|
Return location for error or NULL . |
Returns : |
TRUE if the call succeded, FALSE if error is set. [skip]
|
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.
|
A MmGdbusModemVoiceProxy. |
|
Return location for return parameter or NULL to ignore. [out]
|
|
A GCancellable or NULL . [allow-none]
|
|
Return location for error or NULL . |
Returns : |
TRUE if the call succeded, FALSE if error is set. [skip]
|
"calls"
property "calls" GStrv : Read / Write
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.
"call-added"
signalvoid user_function (MmGdbusModemVoice *object,
gchar *arg_path,
gpointer user_data) : Run Last
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.
|
A MmGdbusModemVoice. |
|
Argument. |
|
user data set when the signal handler was connected. |
"call-deleted"
signalvoid user_function (MmGdbusModemVoice *object,
gchar *arg_path,
gpointer user_data) : Run Last
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.
|
A MmGdbusModemVoice. |
|
Argument. |
|
user data set when the signal handler was connected. |
"handle-create-call"
signalgboolean user_function (MmGdbusModemVoice *object,
GDBusMethodInvocation *invocation,
GVariant *arg_properties,
gpointer user_data) : Run Last
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.
|
A MmGdbusModemVoice. |
|
A GDBusMethodInvocation. |
|
Argument passed by remote caller. |
|
user data set when the signal handler was connected. |
Returns : |
TRUE if the invocation was handled, FALSE to let other signal handlers run. |
"handle-delete-call"
signalgboolean user_function (MmGdbusModemVoice *object,
GDBusMethodInvocation *invocation,
gchar *arg_path,
gpointer user_data) : Run Last
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.
|
A MmGdbusModemVoice. |
|
A GDBusMethodInvocation. |
|
Argument passed by remote caller. |
|
user data set when the signal handler was connected. |
Returns : |
TRUE if the invocation was handled, FALSE to let other signal handlers run. |
"handle-list-calls"
signalgboolean user_function (MmGdbusModemVoice *object,
GDBusMethodInvocation *invocation,
gpointer user_data) : Run Last
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.
|
A MmGdbusModemVoice. |
|
A GDBusMethodInvocation. |
|
user data set when the signal handler was connected. |
Returns : |
TRUE if the invocation was handled, FALSE to let other signal handlers run. |