| Top |
MmGdbusModemCellBroadcastMmGdbusModemCellBroadcast — Generated C code for the org.freedesktop.ModemManager1.Modem.CellBroadcast D-Bus interface |
| const gchar *const * | mm_gdbus_modem_cell_broadcast_get_cell_broadcasts () |
| gchar ** | mm_gdbus_modem_cell_broadcast_dup_cell_broadcasts () |
| void | mm_gdbus_modem_cell_broadcast_call_delete () |
| gboolean | mm_gdbus_modem_cell_broadcast_call_delete_finish () |
| gboolean | mm_gdbus_modem_cell_broadcast_call_delete_sync () |
| void | mm_gdbus_modem_cell_broadcast_call_list () |
| gboolean | mm_gdbus_modem_cell_broadcast_call_list_finish () |
| gboolean | mm_gdbus_modem_cell_broadcast_call_list_sync () |
| void | added | Run Last |
| void | deleted | Run Last |
| gboolean | handle-delete | Run Last |
| gboolean | handle-list | Run Last |
| gboolean | handle-set-channels | Run Last |
MmGdbusModemCellBroadcast is implemented by MMModemCellBroadcast, MmGdbusModemCellBroadcastProxy and MmGdbusModemCellBroadcastSkeleton.
This section contains code for working with the org.freedesktop.ModemManager1.Modem.CellBroadcast D-Bus interface in C.
const gchar *const *
mm_gdbus_modem_cell_broadcast_get_cell_broadcasts
(MmGdbusModemCellBroadcast *object);
Gets the value of the "CellBroadcasts" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where object
was constructed. Use mm_gdbus_modem_cell_broadcast_dup_cell_broadcasts() if on another thread.
[skip]
gchar **
mm_gdbus_modem_cell_broadcast_dup_cell_broadcasts
(MmGdbusModemCellBroadcast *object);
Gets a copy of the "CellBroadcasts" 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_modem_cell_broadcast_call_delete (MmGdbusModemCellBroadcast *proxy,const gchar *arg_path,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
Asynchronously invokes the Delete()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 (see g_main_context_push_thread_default()).
You can then call mm_gdbus_modem_cell_broadcast_call_delete_finish() to get the result of the operation.
See mm_gdbus_modem_cell_broadcast_call_delete_sync() for the synchronous, blocking version of this method.
gboolean mm_gdbus_modem_cell_broadcast_call_delete_finish (MmGdbusModemCellBroadcast *proxy,GAsyncResult *res,GError **error);
Finishes an operation started with mm_gdbus_modem_cell_broadcast_call_delete().
proxy |
||
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
gboolean mm_gdbus_modem_cell_broadcast_call_delete_sync (MmGdbusModemCellBroadcast *proxy,const gchar *arg_path,GCancellable *cancellable,GError **error);
Synchronously invokes the Delete()proxy
. The calling thread is blocked until a reply is received.
See mm_gdbus_modem_cell_broadcast_call_delete() for the asynchronous version of this method.
void mm_gdbus_modem_cell_broadcast_call_list (MmGdbusModemCellBroadcast *proxy,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
Asynchronously invokes the List()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 (see g_main_context_push_thread_default()).
You can then call mm_gdbus_modem_cell_broadcast_call_list_finish() to get the result of the operation.
See mm_gdbus_modem_cell_broadcast_call_list_sync() for the synchronous, blocking version of this method.
gboolean mm_gdbus_modem_cell_broadcast_call_list_finish (MmGdbusModemCellBroadcast *proxy,gchar ***out_result,GAsyncResult *res,GError **error);
Finishes an operation started with mm_gdbus_modem_cell_broadcast_call_list().
proxy |
||
out_result |
Return location for return parameter or |
[out][optional][array zero-terminated=1] |
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
gboolean mm_gdbus_modem_cell_broadcast_call_list_sync (MmGdbusModemCellBroadcast *proxy,gchar ***out_result,GCancellable *cancellable,GError **error);
Synchronously invokes the List()proxy
. The calling thread is blocked until a reply is received.
See mm_gdbus_modem_cell_broadcast_call_list() for the asynchronous version of this method.
typedef struct _MmGdbusModemCellBroadcast MmGdbusModemCellBroadcast;
Abstract interface type for the D-Bus interface org.freedesktop.ModemManager1.Modem.CellBroadcast.
struct MmGdbusModemCellBroadcastIface {
GTypeInterface parent_iface;
gboolean (*handle_delete) (
MmGdbusModemCellBroadcast *object,
GDBusMethodInvocation *invocation,
const gchar *arg_path);
gboolean (*handle_list) (
MmGdbusModemCellBroadcast *object,
GDBusMethodInvocation *invocation);
gboolean (*handle_set_channels) (
MmGdbusModemCellBroadcast *object,
GDBusMethodInvocation *invocation,
GVariant *arg_channels);
const gchar *const * (*get_cell_broadcasts) (MmGdbusModemCellBroadcast *object);
GVariant * (*get_channels) (MmGdbusModemCellBroadcast *object);
void (*added) (
MmGdbusModemCellBroadcast *object,
const gchar *arg_path);
void (*deleted) (
MmGdbusModemCellBroadcast *object,
const gchar *arg_path);
};
Virtual table for the D-Bus interface org.freedesktop.ModemManager1.Modem.CellBroadcast.
The parent interface. |
||
Handler for the “handle-delete” signal. |
||
Handler for the “handle-list” signal. |
||
Handler for the “handle-set-channels” signal. |
||
Getter for the “cell-broadcasts” property. |
||
Getter for the “channels” property. |
||
Handler for the “added” signal. |
||
Handler for the “deleted” signal. |
“cell-broadcasts” property “cell-broadcasts” GStrv
Represents the D-Bus property "CellBroadcasts".
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: MmGdbusModemCellBroadcast
Flags: Read / Write
“channels” property “channels” GVariant *
Represents the D-Bus property "Channels".
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: MmGdbusModemCellBroadcast
Flags: Read / Write
Allowed values: GVariant<a(uu)>
Default value: NULL
“added” signalvoid user_function (MmGdbusModemCellBroadcast *object, char *arg_path, gpointer user_data)
On the client-side, this signal is emitted whenever the D-Bus signal "Added" 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
“deleted” signalvoid user_function (MmGdbusModemCellBroadcast *object, char *arg_path, gpointer user_data)
On the client-side, this signal is emitted whenever the D-Bus signal "Deleted" 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-delete” signalgboolean user_function (MmGdbusModemCellBroadcast *object, GDBusMethodInvocation *invocation, char *arg_path, gpointer user_data)
Signal emitted when a remote caller is invoking the Delete()
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_cell_broadcast_complete_delete() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
object |
||
invocation |
A GDBusMethodInvocation. |
|
arg_path |
Argument passed by remote caller. |
|
user_data |
user data set when the signal handler was connected. |
G_DBUS_METHOD_INVOCATION_HANDLED or TRUE if the invocation was handled, G_DBUS_METHOD_INVOCATION_UNHANDLED or FALSE to let other signal handlers run.
Flags: Run Last
“handle-list” signalgboolean user_function (MmGdbusModemCellBroadcast *object, GDBusMethodInvocation *invocation, gpointer user_data)
Signal emitted when a remote caller is invoking the List()
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_cell_broadcast_complete_list() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
object |
||
invocation |
A GDBusMethodInvocation. |
|
user_data |
user data set when the signal handler was connected. |
G_DBUS_METHOD_INVOCATION_HANDLED or TRUE if the invocation was handled, G_DBUS_METHOD_INVOCATION_UNHANDLED or FALSE to let other signal handlers run.
Flags: Run Last
“handle-set-channels” signalgboolean user_function (MmGdbusModemCellBroadcast *object, GDBusMethodInvocation *invocation, GVariant *arg_channels, gpointer user_data)
Signal emitted when a remote caller is invoking the SetChannels()
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_cell_broadcast_complete_set_channels() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
object |
||
invocation |
A GDBusMethodInvocation. |
|
arg_channels |
Argument passed by remote caller. |
|
user_data |
user data set when the signal handler was connected. |
G_DBUS_METHOD_INVOCATION_HANDLED or TRUE if the invocation was handled, G_DBUS_METHOD_INVOCATION_UNHANDLED or FALSE to let other signal handlers run.
Flags: Run Last