| Top |
MmGdbusCallMmGdbusCall — Generated C code for the org.freedesktop.ModemManager1.Call D-Bus interface |
| GVariant * | audio-format | Read / Write |
| gchar * | audio-port | Read / Write |
| gint | direction | Read / Write |
| gboolean | multiparty | Read / Write |
| gchar * | number | Read / Write |
| gint | state | Read / Write |
| gint | state-reason | Read / Write |
| void | dtmf-received | Run Last |
| gboolean | handle-accept | Run Last |
| gboolean | handle-deflect | Run Last |
| gboolean | handle-hangup | Run Last |
| gboolean | handle-join-multiparty | Run Last |
| gboolean | handle-leave-multiparty | Run Last |
| gboolean | handle-send-dtmf | Run Last |
| gboolean | handle-start | Run Last |
| void | state-changed | Run Last |
MmGdbusCall is implemented by MMCall, MmGdbusCallProxy and MmGdbusCallSkeleton.
This section contains code for working with the org.freedesktop.ModemManager1.Call D-Bus interface in C.
gint
mm_gdbus_call_get_direction (MmGdbusCall *object);
Gets the value of the "Direction" 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]
const gchar *
mm_gdbus_call_get_number (MmGdbusCall *object);
Gets the value of the "Number" 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_call_dup_number() if on another thread.[skip]
gchar *
mm_gdbus_call_dup_number (MmGdbusCall *object);
Gets a copy of the "Number" 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]
gint
mm_gdbus_call_get_state (MmGdbusCall *object);
Gets the value of the "State" 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]
gint
mm_gdbus_call_get_state_reason (MmGdbusCall *object);
Gets the value of the "StateReason" 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]
GVariant *
mm_gdbus_call_dup_audio_format (MmGdbusCall *object);
Gets a copy of the "AudioFormat" 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]
gchar *
mm_gdbus_call_dup_audio_port (MmGdbusCall *object);
Gets a copy of the "AudioPort" 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]
GVariant *
mm_gdbus_call_get_audio_format (MmGdbusCall *object);
Gets the value of the "AudioFormat" 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_call_dup_audio_format() if on another thread.[skip]
const gchar *
mm_gdbus_call_get_audio_port (MmGdbusCall *object);
Gets the value of the "AudioPort" 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_call_dup_audio_port() if on another thread.[skip]
gboolean
mm_gdbus_call_get_multiparty (MmGdbusCall *object);
Gets the value of the "Multiparty" 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]
void mm_gdbus_call_call_accept (MmGdbusCall *proxy,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
Asynchronously invokes the Accept()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_call_call_accept_finish() to get the result of the operation.
See mm_gdbus_call_call_accept_sync() for the synchronous, blocking version of this method.
gboolean mm_gdbus_call_call_accept_finish (MmGdbusCall *proxy,GAsyncResult *res,GError **error);
Finishes an operation started with mm_gdbus_call_call_accept().
proxy |
||
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
gboolean mm_gdbus_call_call_accept_sync (MmGdbusCall *proxy,GCancellable *cancellable,GError **error);
Synchronously invokes the Accept()proxy
. The calling thread is blocked until a reply is received.
See mm_gdbus_call_call_accept() for the asynchronous version of this method.
void mm_gdbus_call_call_start (MmGdbusCall *proxy,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
Asynchronously invokes the Start()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_call_call_start_finish() to get the result of the operation.
See mm_gdbus_call_call_start_sync() for the synchronous, blocking version of this method.
gboolean mm_gdbus_call_call_start_finish (MmGdbusCall *proxy,GAsyncResult *res,GError **error);
Finishes an operation started with mm_gdbus_call_call_start().
proxy |
||
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
gboolean mm_gdbus_call_call_start_sync (MmGdbusCall *proxy,GCancellable *cancellable,GError **error);
Synchronously invokes the Start()proxy
. The calling thread is blocked until a reply is received.
See mm_gdbus_call_call_start() for the asynchronous version of this method.
void mm_gdbus_call_call_hangup (MmGdbusCall *proxy,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
Asynchronously invokes the Hangup()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_call_call_hangup_finish() to get the result of the operation.
See mm_gdbus_call_call_hangup_sync() for the synchronous, blocking version of this method.
gboolean mm_gdbus_call_call_hangup_finish (MmGdbusCall *proxy,GAsyncResult *res,GError **error);
Finishes an operation started with mm_gdbus_call_call_hangup().
proxy |
||
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
gboolean mm_gdbus_call_call_hangup_sync (MmGdbusCall *proxy,GCancellable *cancellable,GError **error);
Synchronously invokes the Hangup()proxy
. The calling thread is blocked until a reply is received.
See mm_gdbus_call_call_hangup() for the asynchronous version of this method.
void mm_gdbus_call_call_send_dtmf (MmGdbusCall *proxy,const gchar *arg_dtmf,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
Asynchronously invokes the SendDtmf()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_call_call_send_dtmf_finish() to get the result of the operation.
See mm_gdbus_call_call_send_dtmf_sync() for the synchronous, blocking version of this method.
gboolean mm_gdbus_call_call_send_dtmf_finish (MmGdbusCall *proxy,GAsyncResult *res,GError **error);
Finishes an operation started with mm_gdbus_call_call_send_dtmf().
proxy |
||
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
gboolean mm_gdbus_call_call_send_dtmf_sync (MmGdbusCall *proxy,const gchar *arg_dtmf,GCancellable *cancellable,GError **error);
Synchronously invokes the SendDtmf()proxy
. The calling thread is blocked until a reply is received.
See mm_gdbus_call_call_send_dtmf() for the asynchronous version of this method.
void mm_gdbus_call_call_deflect (MmGdbusCall *proxy,const gchar *arg_number,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
Asynchronously invokes the Deflect()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_call_call_deflect_finish() to get the result of the operation.
See mm_gdbus_call_call_deflect_sync() for the synchronous, blocking version of this method.
gboolean mm_gdbus_call_call_deflect_finish (MmGdbusCall *proxy,GAsyncResult *res,GError **error);
Finishes an operation started with mm_gdbus_call_call_deflect().
proxy |
||
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
gboolean mm_gdbus_call_call_deflect_sync (MmGdbusCall *proxy,const gchar *arg_number,GCancellable *cancellable,GError **error);
Synchronously invokes the Deflect()proxy
. The calling thread is blocked until a reply is received.
See mm_gdbus_call_call_deflect() for the asynchronous version of this method.
void mm_gdbus_call_call_join_multiparty (MmGdbusCall *proxy,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
Asynchronously invokes the JoinMultiparty()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_call_call_join_multiparty_finish() to get the result of the operation.
See mm_gdbus_call_call_join_multiparty_sync() for the synchronous, blocking version of this method.
gboolean mm_gdbus_call_call_join_multiparty_finish (MmGdbusCall *proxy,GAsyncResult *res,GError **error);
Finishes an operation started with mm_gdbus_call_call_join_multiparty().
proxy |
||
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
gboolean mm_gdbus_call_call_join_multiparty_sync (MmGdbusCall *proxy,GCancellable *cancellable,GError **error);
Synchronously invokes the JoinMultiparty()proxy
. The calling thread is blocked until a reply is received.
See mm_gdbus_call_call_join_multiparty() for the asynchronous version of this method.
void mm_gdbus_call_call_leave_multiparty (MmGdbusCall *proxy,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
Asynchronously invokes the LeaveMultiparty()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_call_call_leave_multiparty_finish() to get the result of the operation.
See mm_gdbus_call_call_leave_multiparty_sync() for the synchronous, blocking version of this method.
gboolean mm_gdbus_call_call_leave_multiparty_finish (MmGdbusCall *proxy,GAsyncResult *res,GError **error);
Finishes an operation started with mm_gdbus_call_call_leave_multiparty().
proxy |
||
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
gboolean mm_gdbus_call_call_leave_multiparty_sync (MmGdbusCall *proxy,GCancellable *cancellable,GError **error);
Synchronously invokes the LeaveMultiparty()proxy
. The calling thread is blocked until a reply is received.
See mm_gdbus_call_call_leave_multiparty() for the asynchronous version of this method.
typedef struct _MmGdbusCall MmGdbusCall;
Abstract interface type for the D-Bus interface org.freedesktop.ModemManager1.Call.
struct MmGdbusCallIface {
GTypeInterface parent_iface;
gboolean (*handle_accept) (
MmGdbusCall *object,
GDBusMethodInvocation *invocation);
gboolean (*handle_deflect) (
MmGdbusCall *object,
GDBusMethodInvocation *invocation,
const gchar *arg_number);
gboolean (*handle_hangup) (
MmGdbusCall *object,
GDBusMethodInvocation *invocation);
gboolean (*handle_join_multiparty) (
MmGdbusCall *object,
GDBusMethodInvocation *invocation);
gboolean (*handle_leave_multiparty) (
MmGdbusCall *object,
GDBusMethodInvocation *invocation);
gboolean (*handle_send_dtmf) (
MmGdbusCall *object,
GDBusMethodInvocation *invocation,
const gchar *arg_dtmf);
gboolean (*handle_start) (
MmGdbusCall *object,
GDBusMethodInvocation *invocation);
GVariant * (*get_audio_format) (MmGdbusCall *object);
const gchar * (*get_audio_port) (MmGdbusCall *object);
gint (*get_direction) (MmGdbusCall *object);
gboolean (*get_multiparty) (MmGdbusCall *object);
const gchar * (*get_number) (MmGdbusCall *object);
gint (*get_state) (MmGdbusCall *object);
gint (*get_state_reason) (MmGdbusCall *object);
void (*dtmf_received) (
MmGdbusCall *object,
const gchar *arg_dtmf);
void (*state_changed) (
MmGdbusCall *object,
gint arg_old,
gint arg_new,
guint arg_reason);
};
Virtual table for the D-Bus interface org.freedesktop.ModemManager1.Call.
The parent interface. |
||
Handler for the “handle-accept” signal. |
||
Handler for the “handle-deflect” signal. |
||
Handler for the “handle-hangup” signal. |
||
Handler for the “handle-join-multiparty” signal. |
||
Handler for the “handle-leave-multiparty” signal. |
||
Handler for the “handle-send-dtmf” signal. |
||
Handler for the “handle-start” signal. |
||
Getter for the “audio-format” property. |
||
Getter for the “audio-port” property. |
||
Getter for the “direction” property. |
||
Getter for the “multiparty” property. |
||
Getter for the “number” property. |
||
Getter for the “state” property. |
||
Getter for the “state-reason” property. |
||
Handler for the “dtmf-received” signal. |
||
Handler for the “state-changed” signal. |
“audio-format” property “audio-format” GVariant *
Represents the D-Bus property "AudioFormat".
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.
Owner: MmGdbusCall
Flags: Read / Write
Allowed values: GVariant<a{sv}>
Default value: NULL
“audio-port” property “audio-port” gchar *
Represents the D-Bus property "AudioPort".
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.
Owner: MmGdbusCall
Flags: Read / Write
Default value: NULL
“direction” property “direction” gint
Represents the D-Bus property "Direction".
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.
Owner: MmGdbusCall
Flags: Read / Write
Default value: 0
“multiparty” property “multiparty” gboolean
Represents the D-Bus property "Multiparty".
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.
Owner: MmGdbusCall
Flags: Read / Write
Default value: FALSE
“number” property “number” gchar *
Represents the D-Bus property "Number".
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.
Owner: MmGdbusCall
Flags: Read / Write
Default value: NULL
“state” property “state” gint
Represents the D-Bus property "State".
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.
Owner: MmGdbusCall
Flags: Read / Write
Default value: 0
“state-reason” property “state-reason” gint
Represents the D-Bus property "StateReason".
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.
Owner: MmGdbusCall
Flags: Read / Write
Default value: 0
“dtmf-received” signalvoid user_function (MmGdbusCall *object, gchar *arg_dtmf, gpointer user_data)
On the client-side, this signal is emitted whenever the D-Bus signal "DtmfReceived" 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.
object |
A MmGdbusCall. |
|
arg_dtmf |
Argument. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“handle-accept” signalgboolean user_function (MmGdbusCall *object, GDBusMethodInvocation *invocation, gpointer user_data)
Signal emitted when a remote caller is invoking the Accept()
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_call_complete_accept() 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 |
A MmGdbusCall. |
|
invocation |
A GDBusMethodInvocation. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“handle-deflect” signalgboolean user_function (MmGdbusCall *object, GDBusMethodInvocation *invocation, gchar *arg_number, gpointer user_data)
Signal emitted when a remote caller is invoking the Deflect()
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_call_complete_deflect() 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 |
A MmGdbusCall. |
|
invocation |
A GDBusMethodInvocation. |
|
arg_number |
Argument passed by remote caller. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“handle-hangup” signalgboolean user_function (MmGdbusCall *object, GDBusMethodInvocation *invocation, gpointer user_data)
Signal emitted when a remote caller is invoking the Hangup()
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_call_complete_hangup() 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 |
A MmGdbusCall. |
|
invocation |
A GDBusMethodInvocation. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“handle-join-multiparty” signalgboolean user_function (MmGdbusCall *object, GDBusMethodInvocation *invocation, gpointer user_data)
Signal emitted when a remote caller is invoking the JoinMultiparty()
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_call_complete_join_multiparty() 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 |
A MmGdbusCall. |
|
invocation |
A GDBusMethodInvocation. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“handle-leave-multiparty” signalgboolean user_function (MmGdbusCall *object, GDBusMethodInvocation *invocation, gpointer user_data)
Signal emitted when a remote caller is invoking the LeaveMultiparty()
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_call_complete_leave_multiparty() 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 |
A MmGdbusCall. |
|
invocation |
A GDBusMethodInvocation. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“handle-send-dtmf” signalgboolean user_function (MmGdbusCall *object, GDBusMethodInvocation *invocation, gchar *arg_dtmf, gpointer user_data)
Signal emitted when a remote caller is invoking the SendDtmf()
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_call_complete_send_dtmf() 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 |
A MmGdbusCall. |
|
invocation |
A GDBusMethodInvocation. |
|
arg_dtmf |
Argument passed by remote caller. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“handle-start” signalgboolean user_function (MmGdbusCall *object, GDBusMethodInvocation *invocation, gpointer user_data)
Signal emitted when a remote caller is invoking the Start()
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_call_complete_start() 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 |
A MmGdbusCall. |
|
invocation |
A GDBusMethodInvocation. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“state-changed” signalvoid user_function (MmGdbusCall *object, gint arg_old, gint arg_new, guint arg_reason, gpointer user_data)
On the client-side, this signal is emitted whenever the D-Bus signal "StateChanged" 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.
object |
A MmGdbusCall. |
|
arg_old |
Argument. |
|
arg_new |
Argument. |
|
arg_reason |
Argument. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last