libmm-glib Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy | Prerequisites | Known Implementations | Signals |
MmGdbusModemContactsMmGdbusModemContacts — Generated C code for the org.freedesktop.ModemManager1.Modem.Contacts D-Bus interface |
Synopsis
MmGdbusModemContacts; struct MmGdbusModemContactsIface; void mm_gdbus_modem_contacts_call_add (MmGdbusModemContacts *proxy
,GVariant *arg_properties
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); gboolean mm_gdbus_modem_contacts_call_add_finish (MmGdbusModemContacts *proxy
,guint *out_index
,GAsyncResult *res
,GError **error
); gboolean mm_gdbus_modem_contacts_call_add_sync (MmGdbusModemContacts *proxy
,GVariant *arg_properties
,guint *out_index
,GCancellable *cancellable
,GError **error
); void mm_gdbus_modem_contacts_call_delete (MmGdbusModemContacts *proxy
,guint arg_index
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); gboolean mm_gdbus_modem_contacts_call_delete_finish (MmGdbusModemContacts *proxy
,GAsyncResult *res
,GError **error
); gboolean mm_gdbus_modem_contacts_call_delete_sync (MmGdbusModemContacts *proxy
,guint arg_index
,GCancellable *cancellable
,GError **error
); void mm_gdbus_modem_contacts_call_find (MmGdbusModemContacts *proxy
,const gchar *arg_pattern
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); gboolean mm_gdbus_modem_contacts_call_find_finish (MmGdbusModemContacts *proxy
,GVariant **out_results
,GAsyncResult *res
,GError **error
); gboolean mm_gdbus_modem_contacts_call_find_sync (MmGdbusModemContacts *proxy
,const gchar *arg_pattern
,GVariant **out_results
,GCancellable *cancellable
,GError **error
); void mm_gdbus_modem_contacts_call_get (MmGdbusModemContacts *proxy
,guint arg_index
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); gboolean mm_gdbus_modem_contacts_call_get_finish (MmGdbusModemContacts *proxy
,GVariant **out_properties
,GAsyncResult *res
,GError **error
); gboolean mm_gdbus_modem_contacts_call_get_sync (MmGdbusModemContacts *proxy
,guint arg_index
,GVariant **out_properties
,GCancellable *cancellable
,GError **error
); void mm_gdbus_modem_contacts_call_get_count (MmGdbusModemContacts *proxy
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); gboolean mm_gdbus_modem_contacts_call_get_count_finish (MmGdbusModemContacts *proxy
,guint *out_count
,GAsyncResult *res
,GError **error
); gboolean mm_gdbus_modem_contacts_call_get_count_sync (MmGdbusModemContacts *proxy
,guint *out_count
,GCancellable *cancellable
,GError **error
); void mm_gdbus_modem_contacts_call_list (MmGdbusModemContacts *proxy
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); gboolean mm_gdbus_modem_contacts_call_list_finish (MmGdbusModemContacts *proxy
,GVariant **out_results
,GAsyncResult *res
,GError **error
); gboolean mm_gdbus_modem_contacts_call_list_sync (MmGdbusModemContacts *proxy
,GVariant **out_results
,GCancellable *cancellable
,GError **error
);
Known Implementations
MmGdbusModemContacts is implemented by MmGdbusModemContactsProxy and MmGdbusModemContactsSkeleton.
Signals
"added" :Run Last
"deleted" :Run Last
"handle-add" :Run Last
"handle-delete" :Run Last
"handle-find" :Run Last
"handle-get" :Run Last
"handle-get-count" :Run Last
"handle-list" :Run Last
Description
This section contains code for working with the org.freedesktop.ModemManager1.Modem.Contacts D-Bus interface in C.
Details
MmGdbusModemContacts
typedef struct _MmGdbusModemContacts MmGdbusModemContacts;
Abstract interface type for the D-Bus interface org.freedesktop.ModemManager1.Modem.Contacts.
struct MmGdbusModemContactsIface
struct MmGdbusModemContactsIface { GTypeInterface parent_iface; gboolean (*handle_add) ( MmGdbusModemContacts *object, GDBusMethodInvocation *invocation, GVariant *arg_properties); gboolean (*handle_delete) ( MmGdbusModemContacts *object, GDBusMethodInvocation *invocation, guint arg_index); gboolean (*handle_find) ( MmGdbusModemContacts *object, GDBusMethodInvocation *invocation, const gchar *arg_pattern); gboolean (*handle_get) ( MmGdbusModemContacts *object, GDBusMethodInvocation *invocation, guint arg_index); gboolean (*handle_get_count) ( MmGdbusModemContacts *object, GDBusMethodInvocation *invocation); gboolean (*handle_list) ( MmGdbusModemContacts *object, GDBusMethodInvocation *invocation); void (*added) ( MmGdbusModemContacts *object, guint arg_index, GVariant *arg_properties); void (*deleted) ( MmGdbusModemContacts *object, guint arg_index); };
Virtual table for the D-Bus interface org.freedesktop.ModemManager1.Modem.Contacts.
GTypeInterface |
The parent interface. |
Handler for the "handle-add" signal. | |
Handler for the "handle-delete" signal. | |
Handler for the "handle-find" signal. | |
Handler for the "handle-get" signal. | |
Handler for the "handle-get-count" signal. | |
Handler for the "handle-list" signal. | |
Handler for the "added" signal. | |
Handler for the "deleted" signal. |
mm_gdbus_modem_contacts_call_add ()
void mm_gdbus_modem_contacts_call_add (MmGdbusModemContacts *proxy
,GVariant *arg_properties
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously invokes the Add()
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_contacts_call_add_finish()
to get the result of the operation.
See mm_gdbus_modem_contacts_call_add_sync()
for the synchronous, blocking version of this method.
|
A MmGdbusModemContactsProxy. |
|
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 . |
mm_gdbus_modem_contacts_call_add_finish ()
gboolean mm_gdbus_modem_contacts_call_add_finish (MmGdbusModemContacts *proxy
,guint *out_index
,GAsyncResult *res
,GError **error
);
Finishes an operation started with mm_gdbus_modem_contacts_call_add()
.
|
A MmGdbusModemContactsProxy. |
|
Return location for return parameter or NULL to ignore. [out]
|
|
The GAsyncResult obtained from the GAsyncReadyCallback passed to mm_gdbus_modem_contacts_call_add() . |
|
Return location for error or NULL . |
Returns : |
TRUE if the call succeded, FALSE if error is set. [skip]
|
mm_gdbus_modem_contacts_call_add_sync ()
gboolean mm_gdbus_modem_contacts_call_add_sync (MmGdbusModemContacts *proxy
,GVariant *arg_properties
,guint *out_index
,GCancellable *cancellable
,GError **error
);
Synchronously invokes the Add()
proxy
. The calling thread is blocked until a reply is received.
See mm_gdbus_modem_contacts_call_add()
for the asynchronous version of this method.
|
A MmGdbusModemContactsProxy. |
|
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]
|
mm_gdbus_modem_contacts_call_delete ()
void mm_gdbus_modem_contacts_call_delete (MmGdbusModemContacts *proxy
,guint arg_index
,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_contacts_call_delete_finish()
to get the result of the operation.
See mm_gdbus_modem_contacts_call_delete_sync()
for the synchronous, blocking version of this method.
|
A MmGdbusModemContactsProxy. |
|
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 . |
mm_gdbus_modem_contacts_call_delete_finish ()
gboolean mm_gdbus_modem_contacts_call_delete_finish (MmGdbusModemContacts *proxy
,GAsyncResult *res
,GError **error
);
Finishes an operation started with mm_gdbus_modem_contacts_call_delete()
.
|
A MmGdbusModemContactsProxy. |
|
The GAsyncResult obtained from the GAsyncReadyCallback passed to mm_gdbus_modem_contacts_call_delete() . |
|
Return location for error or NULL . |
Returns : |
TRUE if the call succeded, FALSE if error is set. [skip]
|
mm_gdbus_modem_contacts_call_delete_sync ()
gboolean mm_gdbus_modem_contacts_call_delete_sync (MmGdbusModemContacts *proxy
,guint arg_index
,GCancellable *cancellable
,GError **error
);
Synchronously invokes the Delete()
proxy
. The calling thread is blocked until a reply is received.
See mm_gdbus_modem_contacts_call_delete()
for the asynchronous version of this method.
|
A MmGdbusModemContactsProxy. |
|
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]
|
mm_gdbus_modem_contacts_call_find ()
void mm_gdbus_modem_contacts_call_find (MmGdbusModemContacts *proxy
,const gchar *arg_pattern
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously invokes the Find()
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_contacts_call_find_finish()
to get the result of the operation.
See mm_gdbus_modem_contacts_call_find_sync()
for the synchronous, blocking version of this method.
|
A MmGdbusModemContactsProxy. |
|
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 . |
mm_gdbus_modem_contacts_call_find_finish ()
gboolean mm_gdbus_modem_contacts_call_find_finish (MmGdbusModemContacts *proxy
,GVariant **out_results
,GAsyncResult *res
,GError **error
);
Finishes an operation started with mm_gdbus_modem_contacts_call_find()
.
|
A MmGdbusModemContactsProxy. |
|
Return location for return parameter or NULL to ignore. [out]
|
|
The GAsyncResult obtained from the GAsyncReadyCallback passed to mm_gdbus_modem_contacts_call_find() . |
|
Return location for error or NULL . |
Returns : |
TRUE if the call succeded, FALSE if error is set. [skip]
|
mm_gdbus_modem_contacts_call_find_sync ()
gboolean mm_gdbus_modem_contacts_call_find_sync (MmGdbusModemContacts *proxy
,const gchar *arg_pattern
,GVariant **out_results
,GCancellable *cancellable
,GError **error
);
Synchronously invokes the Find()
proxy
. The calling thread is blocked until a reply is received.
See mm_gdbus_modem_contacts_call_find()
for the asynchronous version of this method.
|
A MmGdbusModemContactsProxy. |
|
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]
|
mm_gdbus_modem_contacts_call_get ()
void mm_gdbus_modem_contacts_call_get (MmGdbusModemContacts *proxy
,guint arg_index
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously invokes the Get()
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_contacts_call_get_finish()
to get the result of the operation.
See mm_gdbus_modem_contacts_call_get_sync()
for the synchronous, blocking version of this method.
|
A MmGdbusModemContactsProxy. |
|
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 . |
mm_gdbus_modem_contacts_call_get_finish ()
gboolean mm_gdbus_modem_contacts_call_get_finish (MmGdbusModemContacts *proxy
,GVariant **out_properties
,GAsyncResult *res
,GError **error
);
Finishes an operation started with mm_gdbus_modem_contacts_call_get()
.
|
A MmGdbusModemContactsProxy. |
|
Return location for return parameter or NULL to ignore. [out]
|
|
The GAsyncResult obtained from the GAsyncReadyCallback passed to mm_gdbus_modem_contacts_call_get() . |
|
Return location for error or NULL . |
Returns : |
TRUE if the call succeded, FALSE if error is set. [skip]
|
mm_gdbus_modem_contacts_call_get_sync ()
gboolean mm_gdbus_modem_contacts_call_get_sync (MmGdbusModemContacts *proxy
,guint arg_index
,GVariant **out_properties
,GCancellable *cancellable
,GError **error
);
Synchronously invokes the Get()
proxy
. The calling thread is blocked until a reply is received.
See mm_gdbus_modem_contacts_call_get()
for the asynchronous version of this method.
|
A MmGdbusModemContactsProxy. |
|
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]
|
mm_gdbus_modem_contacts_call_get_count ()
void mm_gdbus_modem_contacts_call_get_count (MmGdbusModemContacts *proxy
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously invokes the GetCount()
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_contacts_call_get_count_finish()
to get the result of the operation.
See mm_gdbus_modem_contacts_call_get_count_sync()
for the synchronous, blocking version of this method.
|
A MmGdbusModemContactsProxy. |
|
A GCancellable or NULL . [allow-none]
|
|
A GAsyncReadyCallback to call when the request is satisfied or NULL . |
|
User data to pass to callback . |
mm_gdbus_modem_contacts_call_get_count_finish ()
gboolean mm_gdbus_modem_contacts_call_get_count_finish (MmGdbusModemContacts *proxy
,guint *out_count
,GAsyncResult *res
,GError **error
);
Finishes an operation started with mm_gdbus_modem_contacts_call_get_count()
.
|
A MmGdbusModemContactsProxy. |
|
Return location for return parameter or NULL to ignore. [out]
|
|
The GAsyncResult obtained from the GAsyncReadyCallback passed to mm_gdbus_modem_contacts_call_get_count() . |
|
Return location for error or NULL . |
Returns : |
TRUE if the call succeded, FALSE if error is set. [skip]
|
mm_gdbus_modem_contacts_call_get_count_sync ()
gboolean mm_gdbus_modem_contacts_call_get_count_sync (MmGdbusModemContacts *proxy
,guint *out_count
,GCancellable *cancellable
,GError **error
);
Synchronously invokes the GetCount()
proxy
. The calling thread is blocked until a reply is received.
See mm_gdbus_modem_contacts_call_get_count()
for the asynchronous version of this method.
|
A MmGdbusModemContactsProxy. |
|
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]
|
mm_gdbus_modem_contacts_call_list ()
void mm_gdbus_modem_contacts_call_list (MmGdbusModemContacts *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_contacts_call_list_finish()
to get the result of the operation.
See mm_gdbus_modem_contacts_call_list_sync()
for the synchronous, blocking version of this method.
|
A MmGdbusModemContactsProxy. |
|
A GCancellable or NULL . [allow-none]
|
|
A GAsyncReadyCallback to call when the request is satisfied or NULL . |
|
User data to pass to callback . |
mm_gdbus_modem_contacts_call_list_finish ()
gboolean mm_gdbus_modem_contacts_call_list_finish (MmGdbusModemContacts *proxy
,GVariant **out_results
,GAsyncResult *res
,GError **error
);
Finishes an operation started with mm_gdbus_modem_contacts_call_list()
.
|
A MmGdbusModemContactsProxy. |
|
Return location for return parameter or NULL to ignore. [out]
|
|
The GAsyncResult obtained from the GAsyncReadyCallback passed to mm_gdbus_modem_contacts_call_list() . |
|
Return location for error or NULL . |
Returns : |
TRUE if the call succeded, FALSE if error is set. [skip]
|
mm_gdbus_modem_contacts_call_list_sync ()
gboolean mm_gdbus_modem_contacts_call_list_sync (MmGdbusModemContacts *proxy
,GVariant **out_results
,GCancellable *cancellable
,GError **error
);
Synchronously invokes the List()
proxy
. The calling thread is blocked until a reply is received.
See mm_gdbus_modem_contacts_call_list()
for the asynchronous version of this method.
|
A MmGdbusModemContactsProxy. |
|
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]
|
Signal Details
The "added"
signal
void user_function (MmGdbusModemContacts *object,
guint arg_index,
GVariant *arg_properties,
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 MmGdbusModemContacts. |
|
Argument. |
|
Argument. |
|
user data set when the signal handler was connected. |
The "deleted"
signal
void user_function (MmGdbusModemContacts *object,
guint arg_index,
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 MmGdbusModemContacts. |
|
Argument. |
|
user data set when the signal handler was connected. |
The "handle-add"
signal
gboolean user_function (MmGdbusModemContacts *object,
GDBusMethodInvocation *invocation,
GVariant *arg_properties,
gpointer user_data) : Run Last
Signal emitted when a remote caller is invoking the Add()
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_contacts_complete_add()
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 MmGdbusModemContacts. |
|
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. |
The "handle-delete"
signal
gboolean user_function (MmGdbusModemContacts *object,
GDBusMethodInvocation *invocation,
guint arg_index,
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_contacts_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 MmGdbusModemContacts. |
|
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. |
The "handle-find"
signal
gboolean user_function (MmGdbusModemContacts *object,
GDBusMethodInvocation *invocation,
gchar *arg_pattern,
gpointer user_data) : Run Last
Signal emitted when a remote caller is invoking the Find()
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_contacts_complete_find()
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 MmGdbusModemContacts. |
|
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. |
The "handle-get"
signal
gboolean user_function (MmGdbusModemContacts *object,
GDBusMethodInvocation *invocation,
guint arg_index,
gpointer user_data) : Run Last
Signal emitted when a remote caller is invoking the Get()
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_contacts_complete_get()
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 MmGdbusModemContacts. |
|
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. |
The "handle-get-count"
signal
gboolean user_function (MmGdbusModemContacts *object,
GDBusMethodInvocation *invocation,
gpointer user_data) : Run Last
Signal emitted when a remote caller is invoking the GetCount()
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_contacts_complete_get_count()
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 MmGdbusModemContacts. |
|
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. |
The "handle-list"
signal
gboolean user_function (MmGdbusModemContacts *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_contacts_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 MmGdbusModemContacts. |
|
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. |