libmm-glib Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy | Prerequisites | Known Implementations | Properties | Signals |
MmGdbusModemMessagingMmGdbusModemMessaging — Generated C code for the org.freedesktop.ModemManager1.Modem.Messaging D-Bus interface |
MmGdbusModemMessaging; struct MmGdbusModemMessagingIface; GVariant * mm_gdbus_modem_messaging_get_supported_storages (MmGdbusModemMessaging *object
); GVariant * mm_gdbus_modem_messaging_dup_supported_storages (MmGdbusModemMessaging *object
); guint mm_gdbus_modem_messaging_get_default_storage (MmGdbusModemMessaging *object
); void mm_gdbus_modem_messaging_call_create (MmGdbusModemMessaging *proxy
,GVariant *arg_properties
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); gboolean mm_gdbus_modem_messaging_call_create_finish (MmGdbusModemMessaging *proxy
,gchar **out_path
,GAsyncResult *res
,GError **error
); gboolean mm_gdbus_modem_messaging_call_create_sync (MmGdbusModemMessaging *proxy
,GVariant *arg_properties
,gchar **out_path
,GCancellable *cancellable
,GError **error
); void mm_gdbus_modem_messaging_call_delete (MmGdbusModemMessaging *proxy
,const gchar *arg_path
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); gboolean mm_gdbus_modem_messaging_call_delete_finish (MmGdbusModemMessaging *proxy
,GAsyncResult *res
,GError **error
); gboolean mm_gdbus_modem_messaging_call_delete_sync (MmGdbusModemMessaging *proxy
,const gchar *arg_path
,GCancellable *cancellable
,GError **error
); void mm_gdbus_modem_messaging_call_list (MmGdbusModemMessaging *proxy
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); gboolean mm_gdbus_modem_messaging_call_list_finish (MmGdbusModemMessaging *proxy
,gchar ***out_result
,GAsyncResult *res
,GError **error
); gboolean mm_gdbus_modem_messaging_call_list_sync (MmGdbusModemMessaging *proxy
,gchar ***out_result
,GCancellable *cancellable
,GError **error
);
MmGdbusModemMessaging is implemented by MMModemMessaging, MmGdbusModemMessagingProxy and MmGdbusModemMessagingSkeleton.
"added" :Run Last
"deleted" :Run Last
"handle-create" :Run Last
"handle-delete" :Run Last
"handle-list" :Run Last
This section contains code for working with the org.freedesktop.ModemManager1.Modem.Messaging D-Bus interface in C.
typedef struct _MmGdbusModemMessaging MmGdbusModemMessaging;
Abstract interface type for the D-Bus interface org.freedesktop.ModemManager1.Modem.Messaging.
struct MmGdbusModemMessagingIface { GTypeInterface parent_iface; gboolean (*handle_create) ( MmGdbusModemMessaging *object, GDBusMethodInvocation *invocation, GVariant *arg_properties); gboolean (*handle_delete) ( MmGdbusModemMessaging *object, GDBusMethodInvocation *invocation, const gchar *arg_path); gboolean (*handle_list) ( MmGdbusModemMessaging *object, GDBusMethodInvocation *invocation); guint (*get_default_storage) (MmGdbusModemMessaging *object); GVariant * (*get_supported_storages) (MmGdbusModemMessaging *object); void (*added) ( MmGdbusModemMessaging *object, const gchar *arg_path, gboolean arg_received); void (*deleted) ( MmGdbusModemMessaging *object, const gchar *arg_path); };
Virtual table for the D-Bus interface org.freedesktop.ModemManager1.Modem.Messaging.
GTypeInterface |
The parent interface. |
Handler for the "handle-create" signal. | |
Handler for the "handle-delete" signal. | |
Handler for the "handle-list" signal. | |
Getter for the "default-storage" property. | |
Getter for the "supported-storages" property. | |
Handler for the "added" signal. | |
Handler for the "deleted" signal. |
GVariant * mm_gdbus_modem_messaging_get_supported_storages
(MmGdbusModemMessaging *object
);
Gets the value of the "SupportedStorages" 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_messaging_dup_supported_storages()
if on another thread.
|
A MmGdbusModemMessaging. |
Returns : |
The property value or NULL if the property is not set. Do not free the returned value, it belongs to object . [transfer none]
|
GVariant * mm_gdbus_modem_messaging_dup_supported_storages
(MmGdbusModemMessaging *object
);
Gets a copy of the "SupportedStorages" 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 MmGdbusModemMessaging. |
Returns : |
The property value or NULL if the property is not set. The returned value should be freed with g_variant_unref() . [transfer full]
|
guint mm_gdbus_modem_messaging_get_default_storage
(MmGdbusModemMessaging *object
);
Gets the value of the "DefaultStorage" 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 MmGdbusModemMessaging. |
Returns : |
The property value. |
void mm_gdbus_modem_messaging_call_create (MmGdbusModemMessaging *proxy
,GVariant *arg_properties
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously invokes the Create()
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_messaging_call_create_finish()
to get the result of the operation.
See mm_gdbus_modem_messaging_call_create_sync()
for the synchronous, blocking version of this method.
|
A MmGdbusModemMessagingProxy. |
|
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_messaging_call_create_finish (MmGdbusModemMessaging *proxy
,gchar **out_path
,GAsyncResult *res
,GError **error
);
Finishes an operation started with mm_gdbus_modem_messaging_call_create()
.
|
A MmGdbusModemMessagingProxy. |
|
Return location for return parameter or NULL to ignore. [out]
|
|
The GAsyncResult obtained from the GAsyncReadyCallback passed to mm_gdbus_modem_messaging_call_create() . |
|
Return location for error or NULL . |
Returns : |
TRUE if the call succeded, FALSE if error is set. [skip]
|
gboolean mm_gdbus_modem_messaging_call_create_sync (MmGdbusModemMessaging *proxy
,GVariant *arg_properties
,gchar **out_path
,GCancellable *cancellable
,GError **error
);
Synchronously invokes the Create()
proxy
. The calling thread is blocked until a reply is received.
See mm_gdbus_modem_messaging_call_create()
for the asynchronous version of this method.
|
A MmGdbusModemMessagingProxy. |
|
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_messaging_call_delete (MmGdbusModemMessaging *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.
You can then call mm_gdbus_modem_messaging_call_delete_finish()
to get the result of the operation.
See mm_gdbus_modem_messaging_call_delete_sync()
for the synchronous, blocking version of this method.
|
A MmGdbusModemMessagingProxy. |
|
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_messaging_call_delete_finish (MmGdbusModemMessaging *proxy
,GAsyncResult *res
,GError **error
);
Finishes an operation started with mm_gdbus_modem_messaging_call_delete()
.
|
A MmGdbusModemMessagingProxy. |
|
The GAsyncResult obtained from the GAsyncReadyCallback passed to mm_gdbus_modem_messaging_call_delete() . |
|
Return location for error or NULL . |
Returns : |
TRUE if the call succeded, FALSE if error is set. [skip]
|
gboolean mm_gdbus_modem_messaging_call_delete_sync (MmGdbusModemMessaging *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_messaging_call_delete()
for the asynchronous version of this method.
|
A MmGdbusModemMessagingProxy. |
|
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_messaging_call_list (MmGdbusModemMessaging *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.
You can then call mm_gdbus_modem_messaging_call_list_finish()
to get the result of the operation.
See mm_gdbus_modem_messaging_call_list_sync()
for the synchronous, blocking version of this method.
|
A MmGdbusModemMessagingProxy. |
|
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_messaging_call_list_finish (MmGdbusModemMessaging *proxy
,gchar ***out_result
,GAsyncResult *res
,GError **error
);
Finishes an operation started with mm_gdbus_modem_messaging_call_list()
.
|
A MmGdbusModemMessagingProxy. |
|
Return location for return parameter or NULL to ignore. [out]
|
|
The GAsyncResult obtained from the GAsyncReadyCallback passed to mm_gdbus_modem_messaging_call_list() . |
|
Return location for error or NULL . |
Returns : |
TRUE if the call succeded, FALSE if error is set. [skip]
|
gboolean mm_gdbus_modem_messaging_call_list_sync (MmGdbusModemMessaging *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_messaging_call_list()
for the asynchronous version of this method.
|
A MmGdbusModemMessagingProxy. |
|
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]
|
"default-storage"
property"default-storage" guint : Read / Write
Represents the D-Bus property "DefaultStorage".
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.
Default value: 0
"supported-storages"
property"supported-storages" GVariant* : Read / Write
Represents the D-Bus property "SupportedStorages".
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.
Allowed values: GVariant<au>
Default value: NULL
"added"
signalvoid user_function (MmGdbusModemMessaging *object,
gchar *arg_path,
gboolean arg_received,
gpointer user_data) : Run Last
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.
|
A MmGdbusModemMessaging. |
|
Argument. |
|
Argument. |
|
user data set when the signal handler was connected. |
"deleted"
signalvoid user_function (MmGdbusModemMessaging *object,
gchar *arg_path,
gpointer user_data) : Run Last
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.
|
A MmGdbusModemMessaging. |
|
Argument. |
|
user data set when the signal handler was connected. |
"handle-create"
signalgboolean user_function (MmGdbusModemMessaging *object,
GDBusMethodInvocation *invocation,
GVariant *arg_properties,
gpointer user_data) : Run Last
Signal emitted when a remote caller is invoking the Create()
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_messaging_complete_create()
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 MmGdbusModemMessaging. |
|
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"
signalgboolean user_function (MmGdbusModemMessaging *object,
GDBusMethodInvocation *invocation,
gchar *arg_path,
gpointer user_data) : Run Last
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_messaging_complete_delete()
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 MmGdbusModemMessaging. |
|
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"
signalgboolean user_function (MmGdbusModemMessaging *object,
GDBusMethodInvocation *invocation,
gpointer user_data) : Run Last
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_messaging_complete_list()
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 MmGdbusModemMessaging. |
|
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. |