libmm-glib Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces |
struct MMModemSimple; const gchar * mm_modem_simple_get_path (MMModemSimple *self
); gchar * mm_modem_simple_dup_path (MMModemSimple *self
); void mm_modem_simple_connect (MMModemSimple *self
,MMSimpleConnectProperties *properties
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); MMBearer * mm_modem_simple_connect_finish (MMModemSimple *self
,GAsyncResult *res
,GError **error
); MMBearer * mm_modem_simple_connect_sync (MMModemSimple *self
,MMSimpleConnectProperties *properties
,GCancellable *cancellable
,GError **error
); void mm_modem_simple_disconnect (MMModemSimple *self
,const gchar *bearer
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); gboolean mm_modem_simple_disconnect_finish (MMModemSimple *self
,GAsyncResult *res
,GError **error
); gboolean mm_modem_simple_disconnect_sync (MMModemSimple *self
,const gchar *bearer
,GCancellable *cancellable
,GError **error
); void mm_modem_simple_get_status (MMModemSimple *self
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); MMSimpleStatus * mm_modem_simple_get_status_finish (MMModemSimple *self
,GAsyncResult *res
,GError **error
); MMSimpleStatus * mm_modem_simple_get_status_sync (MMModemSimple *self
,GCancellable *cancellable
,GError **error
);
MMModemSimple implements GDBusInterface, GInitable, GAsyncInitable and MmGdbusModemSimple.
The MMModemSimple is an object providing access to the methods, signals and properties of the Simple interface.
The Simple interface is exposed on modems which are not in MM_MODEM_STATE_FAILED
state.
struct MMModemSimple;
The MMModemSimple structure contains private data and should only be accessed using the provided API.
const gchar * mm_modem_simple_get_path (MMModemSimple *self
);
Gets the DBus path of the MMObject which implements this interface.
|
A MMModemSimple. |
Returns : |
The DBus path of the MMObject object. [transfer none] |
gchar * mm_modem_simple_dup_path (MMModemSimple *self
);
Gets a copy of the DBus path of the MMObject object which implements this interface.
|
A MMModemSimple. |
Returns : |
The DBus path of the MMObject. The returned value should be freed with g_free() . [transfer full]
|
void mm_modem_simple_connect (MMModemSimple *self
,MMSimpleConnectProperties *properties
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously requests to connect the modem using the given properties
.
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_modem_simple_connect_finish()
to get the result of the operation.
See mm_modem_simple_connect_sync()
for the synchronous, blocking version of this method.
|
A MMModemSimple. |
|
A MMSimpleConnectProperties bundle. [transfer none] |
|
A GCancellable or NULL . [allow-none]
|
|
A GAsyncReadyCallback to call when the request is satisfied or NULL . |
|
User data to pass to callback . |
MMBearer * mm_modem_simple_connect_finish (MMModemSimple *self
,GAsyncResult *res
,GError **error
);
Finishes an operation started with mm_modem_simple_connect()
.
|
A MMModemSimple. |
|
The GAsyncResult obtained from the GAsyncReadyCallback passed to mm_modem_simple_connect() . |
|
Return location for error or NULL . |
Returns : |
A MMBearer, or FALSE if error is set. The returned value must be freed with g_object_ref() . [transfer full]
|
MMBearer * mm_modem_simple_connect_sync (MMModemSimple *self
,MMSimpleConnectProperties *properties
,GCancellable *cancellable
,GError **error
);
Synchronously requests to connect the modem using the given properties
.
The calling thread is blocked until a reply is received. See mm_modem_simple_connect()
for the asynchronous version of this method.
|
A MMModemSimple. |
|
A MMSimpleConnectProperties bundle. [transfer none] |
|
A GCancellable or NULL . [allow-none]
|
|
Return location for error or NULL . |
Returns : |
A MMBearer, or FALSE if error is set. The returned value must be freed with g_object_ref() . [transfer full]
|
void mm_modem_simple_disconnect (MMModemSimple *self
,const gchar *bearer
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously requests to disconnect the modem.
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_modem_simple_disconnect_finish()
to get the result of the operation.
See mm_modem_simple_disconnect_sync()
for the synchronous, blocking version of this method.
|
A MMModemSimple. |
|
Path of the bearer to disconnect, or NULL to disconnect all connected bearers. |
|
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_modem_simple_disconnect_finish (MMModemSimple *self
,GAsyncResult *res
,GError **error
);
Finishes an operation started with mm_modem_simple_disconnect()
.
|
A MMModemSimple. |
|
The GAsyncResult obtained from the GAsyncReadyCallback passed to mm_modem_simple_disconnect() . |
|
Return location for error or NULL . |
Returns : |
TRUE if the modem is successfully disconnected, FALSE if error is set. |
gboolean mm_modem_simple_disconnect_sync (MMModemSimple *self
,const gchar *bearer
,GCancellable *cancellable
,GError **error
);
Synchronously requests to disconnect the modem.
The calling thread is blocked until a reply is received. See mm_modem_simple_disconnect()
for the asynchronous version of this method.
|
A MMModemSimple. |
|
Path of the bearer to disconnect, or NULL to disconnect all connected bearers. |
|
A GCancellable or NULL . [allow-none]
|
|
Return location for error or NULL . |
Returns : |
TRUE if the modem is successfully disconnected, FALSE if error is set. |
void mm_modem_simple_get_status (MMModemSimple *self
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously requests a compilation of the status of the modem.
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_modem_simple_get_status_finish()
to get the result of the operation.
See mm_modem_simple_get_status_sync()
for the synchronous, blocking version of this method.
|
A MMModemSimple. |
|
A GCancellable or NULL . [allow-none]
|
|
A GAsyncReadyCallback to call when the request is satisfied or NULL . |
|
User data to pass to callback . |
MMSimpleStatus * mm_modem_simple_get_status_finish (MMModemSimple *self
,GAsyncResult *res
,GError **error
);
Finishes an operation started with mm_modem_simple_get_status()
.
|
A MMModemSimple. |
|
The GAsyncResult obtained from the GAsyncReadyCallback passed to mm_modem_simple_connect() . |
|
Return location for error or NULL . |
Returns : |
A MMSimpleStatus, or FALSE if error is set. The returned value must be freed with g_object_ref() . [transfer full]
|
MMSimpleStatus * mm_modem_simple_get_status_sync (MMModemSimple *self
,GCancellable *cancellable
,GError **error
);
Synchronously requests a compilation of the status of the modem.
The calling thread is blocked until a reply is received. See mm_modem_simple_get_status()
for the asynchronous version of this method.
|
A MMModemSimple. |
|
A GCancellable or NULL . [allow-none]
|
|
Return location for error or NULL . |
Returns : |
A MMSimpleStatus, or FALSE if error is set. The returned value must be freed with g_object_ref() . [transfer full]
|