libmm-glib Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces |
struct MMManager; GDBusProxy * mm_manager_peek_proxy (MMManager *manager
); GDBusProxy * mm_manager_get_proxy (MMManager *manager
); void mm_manager_new (GDBusConnection *connection
,GDBusObjectManagerClientFlags flags
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); MMManager * mm_manager_new_finish (GAsyncResult *res
,GError **error
); MMManager * mm_manager_new_sync (GDBusConnection *connection
,GDBusObjectManagerClientFlags flags
,GCancellable *cancellable
,GError **error
); void mm_manager_scan_devices (MMManager *manager
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); gboolean mm_manager_scan_devices_finish (MMManager *manager
,GAsyncResult *res
,GError **error
); gboolean mm_manager_scan_devices_sync (MMManager *manager
,GCancellable *cancellable
,GError **error
); void mm_manager_set_logging (MMManager *manager
,const gchar *level
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); gboolean mm_manager_set_logging_finish (MMManager *manager
,GAsyncResult *res
,GError **error
); gboolean mm_manager_set_logging_sync (MMManager *manager
,const gchar *level
,GCancellable *cancellable
,GError **error
);
GObject +----GDBusObjectManagerClient +----MmGdbusObjectManagerClient +----MMManager
The MMManager is the object allowing access to the Manager interface.
This object is also a GDBusObjectManagerClient, and therefore it allows to use the standard ObjectManager interface to list and handle the managed modem objects.
struct MMManager;
The MMManager structure contains private data and should only be accessed using the provided API.
GDBusProxy * mm_manager_peek_proxy (MMManager *manager
);
Gets the GDBusProxy interface of the manager
.
|
A MMManager. |
Returns : |
The GDBusProxy interface of manager , or NULL if none. Do not free the returned object, it is owned by manager . [transfer none]
|
GDBusProxy * mm_manager_get_proxy (MMManager *manager
);
Gets the GDBusProxy interface of the manager
.
|
A MMManager. |
Returns : |
The GDBusProxy interface of manager , or NULL if none. The returned object must be freed with g_object_unref() . [transfer full]
|
void mm_manager_new (GDBusConnection *connection
,GDBusObjectManagerClientFlags flags
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously creates a MMManager.
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_manager_new_finish()
to get the result of the operation.
See mm_manager_new_sync()
for the synchronous, blocking version of this constructor.
|
A GDBusConnection. |
|
Flags from the GDBusObjectManagerClientFlags enumeration. |
|
A GCancellable or NULL . [allow-none]
|
|
A GAsyncReadyCallback to call when the request is satisfied. |
|
User data to pass to callback . |
MMManager * mm_manager_new_finish (GAsyncResult *res
,GError **error
);
Finishes an operation started with mm_manager_new()
.
|
The GAsyncResult obtained from the GAsyncReadyCallback passed to mm_manager_new() . |
|
Return location for error or NULL
|
Returns : |
The constructed object manager client or NULL if error is set. [transfer full][type MMManager]
|
MMManager * mm_manager_new_sync (GDBusConnection *connection
,GDBusObjectManagerClientFlags flags
,GCancellable *cancellable
,GError **error
);
Synchronously creates a MMManager.
The calling thread is blocked until a reply is received.
See mm_manager_new()
for the asynchronous version of this constructor.
|
A GDBusConnection. |
|
Flags from the GDBusObjectManagerClientFlags enumeration. |
|
A GCancellable or NULL . [allow-none]
|
|
Return location for error or NULL
|
Returns : |
The constructed object manager client or NULL if error is set. [transfer full][type MMManager]
|
void mm_manager_scan_devices (MMManager *manager
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously requests to scan looking for devices.
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_manager_scan_devices_finish()
to get the result of the operation.
See mm_manager_scan_devices_sync()
for the synchronous, blocking version of this method.
|
A MMManager. |
|
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_manager_scan_devices_finish (MMManager *manager
,GAsyncResult *res
,GError **error
);
Finishes an operation started with mm_manager_scan_devices()
.
|
A MMManager. |
|
The GAsyncResult obtained from the GAsyncReadyCallback passed to mm_manager_scan_devices() . |
|
Return location for error or NULL . |
Returns : |
TRUE if the call succeded, FALSE if error is set. |
gboolean mm_manager_scan_devices_sync (MMManager *manager
,GCancellable *cancellable
,GError **error
);
Synchronously requests to scan looking for devices.
The calling thread is blocked until a reply is received.
See mm_manager_scan_devices()
for the asynchronous version of this method.
void mm_manager_set_logging (MMManager *manager
,const gchar *level
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously requests to set the specified logging level in the daemon.
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_manager_set_logging_finish()
to get the result of the operation.
See mm_manager_set_logging_sync()
for the synchronous, blocking version of this method.
|
A MMManager. |
|
the login level to set. |
|
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_manager_set_logging_finish (MMManager *manager
,GAsyncResult *res
,GError **error
);
Finishes an operation started with mm_manager_set_logging()
.
|
A MMManager. |
|
The GAsyncResult obtained from the GAsyncReadyCallback passed to mm_manager_set_logging() . |
|
Return location for error or NULL . |
Returns : |
TRUE if the call succeded, FALSE if error is set. |
gboolean mm_manager_set_logging_sync (MMManager *manager
,const gchar *level
,GCancellable *cancellable
,GError **error
);
Synchronously requests to set the specified logging level in the daemon..
The calling thread is blocked until a reply is received.
See mm_manager_set_logging()
for the asynchronous version of this method.