MmGdbusModem3gppProfileManager

MmGdbusModem3gppProfileManager — Generated C code for the org.freedesktop.ModemManager1.Modem.Modem3gpp.ProfileManager D-Bus interface

Functions

Signals

Types and Values

Object Hierarchy

    GInterface
    ╰── MmGdbusModem3gppProfileManager

Prerequisites

MmGdbusModem3gppProfileManager requires GObject.

Known Implementations

MmGdbusModem3gppProfileManager is implemented by MMModem3gppProfileManager, MmGdbusModem3gppProfileManagerProxy and MmGdbusModem3gppProfileManagerSkeleton.

Description

This section contains code for working with the org.freedesktop.ModemManager1.Modem.Modem3gpp.ProfileManager D-Bus interface in C.

Functions

mm_gdbus_modem3gpp_profile_manager_call_delete ()

void
mm_gdbus_modem3gpp_profile_manager_call_delete
                               (MmGdbusModem3gppProfileManager *proxy,
                                GVariant *arg_properties,
                                GCancellable *cancellable,
                                GAsyncReadyCallback callback,
                                gpointer user_data);

Asynchronously invokes the Delete() D-Bus method on 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_modem3gpp_profile_manager_call_delete_finish() to get the result of the operation.

See mm_gdbus_modem3gpp_profile_manager_call_delete_sync() for the synchronous, blocking version of this method.

Parameters

proxy

A MmGdbusModem3gppProfileManagerProxy.

 

arg_properties

Argument to pass with the method invocation.

 

cancellable

A GCancellable or NULL.

[nullable]

callback

A GAsyncReadyCallback to call when the request is satisfied or NULL.

 

user_data

User data to pass to callback .

 

mm_gdbus_modem3gpp_profile_manager_call_delete_finish ()

gboolean
mm_gdbus_modem3gpp_profile_manager_call_delete_finish
                               (MmGdbusModem3gppProfileManager *proxy,
                                GAsyncResult *res,
                                GError **error);

Finishes an operation started with mm_gdbus_modem3gpp_profile_manager_call_delete().

Parameters

proxy

A MmGdbusModem3gppProfileManagerProxy.

 

res

The GAsyncResult obtained from the GAsyncReadyCallback passed to mm_gdbus_modem3gpp_profile_manager_call_delete().

 

error

Return location for error or NULL.

 

Returns

TRUE if the call succeeded, FALSE if error is set.

[skip]


mm_gdbus_modem3gpp_profile_manager_call_delete_sync ()

gboolean
mm_gdbus_modem3gpp_profile_manager_call_delete_sync
                               (MmGdbusModem3gppProfileManager *proxy,
                                GVariant *arg_properties,
                                GCancellable *cancellable,
                                GError **error);

Synchronously invokes the Delete() D-Bus method on proxy . The calling thread is blocked until a reply is received.

See mm_gdbus_modem3gpp_profile_manager_call_delete() for the asynchronous version of this method.

Parameters

proxy

A MmGdbusModem3gppProfileManagerProxy.

 

arg_properties

Argument to pass with the method invocation.

 

cancellable

A GCancellable or NULL.

[nullable]

error

Return location for error or NULL.

 

Returns

TRUE if the call succeeded, FALSE if error is set.

[skip]


mm_gdbus_modem3gpp_profile_manager_call_list ()

void
mm_gdbus_modem3gpp_profile_manager_call_list
                               (MmGdbusModem3gppProfileManager *proxy,
                                GCancellable *cancellable,
                                GAsyncReadyCallback callback,
                                gpointer user_data);

Asynchronously invokes the List() D-Bus method on 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_modem3gpp_profile_manager_call_list_finish() to get the result of the operation.

See mm_gdbus_modem3gpp_profile_manager_call_list_sync() for the synchronous, blocking version of this method.

Parameters

proxy

A MmGdbusModem3gppProfileManagerProxy.

 

cancellable

A GCancellable or NULL.

[nullable]

callback

A GAsyncReadyCallback to call when the request is satisfied or NULL.

 

user_data

User data to pass to callback .

 

mm_gdbus_modem3gpp_profile_manager_call_list_finish ()

gboolean
mm_gdbus_modem3gpp_profile_manager_call_list_finish
                               (MmGdbusModem3gppProfileManager *proxy,
                                GVariant **out_profiles,
                                GAsyncResult *res,
                                GError **error);

Finishes an operation started with mm_gdbus_modem3gpp_profile_manager_call_list().

Parameters

proxy

A MmGdbusModem3gppProfileManagerProxy.

 

out_profiles

Return location for return parameter or NULL to ignore.

[out][optional]

res

The GAsyncResult obtained from the GAsyncReadyCallback passed to mm_gdbus_modem3gpp_profile_manager_call_list().

 

error

Return location for error or NULL.

 

Returns

TRUE if the call succeeded, FALSE if error is set.

[skip]


mm_gdbus_modem3gpp_profile_manager_call_list_sync ()

gboolean
mm_gdbus_modem3gpp_profile_manager_call_list_sync
                               (MmGdbusModem3gppProfileManager *proxy,
                                GVariant **out_profiles,
                                GCancellable *cancellable,
                                GError **error);

Synchronously invokes the List() D-Bus method on proxy . The calling thread is blocked until a reply is received.

See mm_gdbus_modem3gpp_profile_manager_call_list() for the asynchronous version of this method.

Parameters

proxy

A MmGdbusModem3gppProfileManagerProxy.

 

out_profiles

Return location for return parameter or NULL to ignore.

[out][optional]

cancellable

A GCancellable or NULL.

[nullable]

error

Return location for error or NULL.

 

Returns

TRUE if the call succeeded, FALSE if error is set.

[skip]


mm_gdbus_modem3gpp_profile_manager_call_set ()

void
mm_gdbus_modem3gpp_profile_manager_call_set
                               (MmGdbusModem3gppProfileManager *proxy,
                                GVariant *arg_requested_properties,
                                GCancellable *cancellable,
                                GAsyncReadyCallback callback,
                                gpointer user_data);

Asynchronously invokes the Set() D-Bus method on 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_modem3gpp_profile_manager_call_set_finish() to get the result of the operation.

See mm_gdbus_modem3gpp_profile_manager_call_set_sync() for the synchronous, blocking version of this method.

Parameters

proxy

A MmGdbusModem3gppProfileManagerProxy.

 

arg_requested_properties

Argument to pass with the method invocation.

 

cancellable

A GCancellable or NULL.

[nullable]

callback

A GAsyncReadyCallback to call when the request is satisfied or NULL.

 

user_data

User data to pass to callback .

 

mm_gdbus_modem3gpp_profile_manager_call_set_finish ()

gboolean
mm_gdbus_modem3gpp_profile_manager_call_set_finish
                               (MmGdbusModem3gppProfileManager *proxy,
                                GVariant **out_stored_properties,
                                GAsyncResult *res,
                                GError **error);

Finishes an operation started with mm_gdbus_modem3gpp_profile_manager_call_set().

Parameters

proxy

A MmGdbusModem3gppProfileManagerProxy.

 

out_stored_properties

Return location for return parameter or NULL to ignore.

[out][optional]

res

The GAsyncResult obtained from the GAsyncReadyCallback passed to mm_gdbus_modem3gpp_profile_manager_call_set().

 

error

Return location for error or NULL.

 

Returns

TRUE if the call succeeded, FALSE if error is set.

[skip]


mm_gdbus_modem3gpp_profile_manager_call_set_sync ()

gboolean
mm_gdbus_modem3gpp_profile_manager_call_set_sync
                               (MmGdbusModem3gppProfileManager *proxy,
                                GVariant *arg_requested_properties,
                                GVariant **out_stored_properties,
                                GCancellable *cancellable,
                                GError **error);

Synchronously invokes the Set() D-Bus method on proxy . The calling thread is blocked until a reply is received.

See mm_gdbus_modem3gpp_profile_manager_call_set() for the asynchronous version of this method.

Parameters

proxy

A MmGdbusModem3gppProfileManagerProxy.

 

arg_requested_properties

Argument to pass with the method invocation.

 

out_stored_properties

Return location for return parameter or NULL to ignore.

[out][optional]

cancellable

A GCancellable or NULL.

[nullable]

error

Return location for error or NULL.

 

Returns

TRUE if the call succeeded, FALSE if error is set.

[skip]

Types and Values

MmGdbusModem3gppProfileManager

typedef struct _MmGdbusModem3gppProfileManager MmGdbusModem3gppProfileManager;

Abstract interface type for the D-Bus interface org.freedesktop.ModemManager1.Modem.Modem3gpp.ProfileManager.


struct MmGdbusModem3gppProfileManagerIface

struct MmGdbusModem3gppProfileManagerIface {
  GTypeInterface parent_iface;

  gboolean (*handle_delete) (
    MmGdbusModem3gppProfileManager *object,
    GDBusMethodInvocation *invocation,
    GVariant *arg_properties);

  gboolean (*handle_list) (
    MmGdbusModem3gppProfileManager *object,
    GDBusMethodInvocation *invocation);

  gboolean (*handle_set) (
    MmGdbusModem3gppProfileManager *object,
    GDBusMethodInvocation *invocation,
    GVariant *arg_requested_properties);

  void (*updated) (
    MmGdbusModem3gppProfileManager *object);
};

Virtual table for the D-Bus interface org.freedesktop.ModemManager1.Modem.Modem3gpp.ProfileManager.

Members

GTypeInterface parent_iface;

The parent interface.

 

handle_delete ()

Handler for the “handle-delete” signal.

 

handle_list ()

Handler for the “handle-list” signal.

 

handle_set ()

Handler for the “handle-set” signal.

 

updated ()

Handler for the “updated” signal.

 

Signal Details

The “handle-delete” signal

gboolean
user_function (MmGdbusModem3gppProfileManager *object,
               GDBusMethodInvocation          *invocation,
               GVariant                       *arg_properties,
               gpointer                        user_data)

Signal emitted when a remote caller is invoking the Delete() D-Bus method.

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_modem3gpp_profile_manager_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.

Parameters

object

A MmGdbusModem3gppProfileManager.

 

invocation

A GDBusMethodInvocation.

 

arg_properties

Argument passed by remote caller.

 

user_data

user data set when the signal handler was connected.

 

Returns

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


The “handle-list” signal

gboolean
user_function (MmGdbusModem3gppProfileManager *object,
               GDBusMethodInvocation          *invocation,
               gpointer                        user_data)

Signal emitted when a remote caller is invoking the List() D-Bus method.

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_modem3gpp_profile_manager_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.

Parameters

object

A MmGdbusModem3gppProfileManager.

 

invocation

A GDBusMethodInvocation.

 

user_data

user data set when the signal handler was connected.

 

Returns

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


The “handle-set” signal

gboolean
user_function (MmGdbusModem3gppProfileManager *object,
               GDBusMethodInvocation          *invocation,
               GVariant                       *arg_requested_properties,
               gpointer                        user_data)

Signal emitted when a remote caller is invoking the Set() D-Bus method.

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_modem3gpp_profile_manager_complete_set() 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.

Parameters

object

A MmGdbusModem3gppProfileManager.

 

invocation

A GDBusMethodInvocation.

 

arg_requested_properties

Argument passed by remote caller.

 

user_data

user data set when the signal handler was connected.

 

Returns

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


The “updated” signal

void
user_function (MmGdbusModem3gppProfileManager *object,
               gpointer                        user_data)

On the client-side, this signal is emitted whenever the D-Bus signal "Updated" 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.

Parameters

object

A MmGdbusModem3gppProfileManager.

 

user_data

user data set when the signal handler was connected.

 

Flags: Run Last