Top |
MmGdbusBearerMmGdbusBearer — Generated C code for the org.freedesktop.ModemManager1.Bearer D-Bus interface |
guint | bearer-type | Read / Write |
gboolean | connected | Read / Write |
GVariant * | connection-error | Read / Write |
char * | interface | Read / Write |
guint | ip-timeout | Read / Write |
GVariant * | ip4-config | Read / Write |
GVariant * | ip6-config | Read / Write |
gboolean | multiplexed | Read / Write |
int | profile-id | Read / Write |
GVariant * | properties | Read / Write |
gboolean | reload-stats-supported | Read / Write |
GVariant * | stats | Read / Write |
gboolean | suspended | Read / Write |
MmGdbusBearer is implemented by MMBearer, MmGdbusBearerProxy and MmGdbusBearerSkeleton.
This section contains code for working with the org.freedesktop.ModemManager1.Bearer D-Bus interface in C.
const gchar *
mm_gdbus_bearer_get_interface (MmGdbusBearer *object
);
Gets the value of the "Interface" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where object
was constructed. Use mm_gdbus_bearer_dup_interface()
if on another thread.
[skip]
The property value or NULL
if the property is not set. Do not free the returned value, it belongs to object
.
[transfer none][nullable]
gchar *
mm_gdbus_bearer_dup_interface (MmGdbusBearer *object
);
Gets a copy of the "Interface" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
[skip]
GVariant *
mm_gdbus_bearer_get_ip4_config (MmGdbusBearer *object
);
Gets the value of the "Ip4Config" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where object
was constructed. Use mm_gdbus_bearer_dup_ip4_config()
if on another thread.
[skip]
The property value or NULL
if the property is not set. Do not free the returned value, it belongs to object
.
[transfer none][nullable]
GVariant *
mm_gdbus_bearer_dup_ip4_config (MmGdbusBearer *object
);
Gets a copy of the "Ip4Config" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
[skip]
The property value or NULL
if the property is not set. The returned value should be freed with g_variant_unref()
.
[transfer full][nullable]
GVariant *
mm_gdbus_bearer_get_ip6_config (MmGdbusBearer *object
);
Gets the value of the "Ip6Config" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where object
was constructed. Use mm_gdbus_bearer_dup_ip6_config()
if on another thread.
[skip]
The property value or NULL
if the property is not set. Do not free the returned value, it belongs to object
.
[transfer none][nullable]
GVariant *
mm_gdbus_bearer_dup_ip6_config (MmGdbusBearer *object
);
Gets a copy of the "Ip6Config" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
[skip]
The property value or NULL
if the property is not set. The returned value should be freed with g_variant_unref()
.
[transfer full][nullable]
guint
mm_gdbus_bearer_get_ip_timeout (MmGdbusBearer *object
);
Gets the value of the "IpTimeout" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
[skip]
GVariant *
mm_gdbus_bearer_get_properties (MmGdbusBearer *object
);
Gets the value of the "Properties" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where object
was constructed. Use mm_gdbus_bearer_dup_properties()
if on another thread.
[skip]
The property value or NULL
if the property is not set. Do not free the returned value, it belongs to object
.
[transfer none][nullable]
GVariant *
mm_gdbus_bearer_dup_properties (MmGdbusBearer *object
);
Gets a copy of the "Properties" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
[skip]
The property value or NULL
if the property is not set. The returned value should be freed with g_variant_unref()
.
[transfer full][nullable]
gboolean
mm_gdbus_bearer_get_connected (MmGdbusBearer *object
);
Gets the value of the "Connected" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
[skip]
GVariant *
mm_gdbus_bearer_get_connection_error (MmGdbusBearer *object
);
Gets the value of the "ConnectionError" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where object
was constructed. Use mm_gdbus_bearer_dup_connection_error()
if on another thread.
[skip]
The property value or NULL
if the property is not set. Do not free the returned value, it belongs to object
.
[transfer none][nullable]
GVariant *
mm_gdbus_bearer_dup_connection_error (MmGdbusBearer *object
);
Gets a copy of the "ConnectionError" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
[skip]
The property value or NULL
if the property is not set. The returned value should be freed with g_variant_unref()
.
[transfer full][nullable]
gboolean
mm_gdbus_bearer_get_suspended (MmGdbusBearer *object
);
Gets the value of the "Suspended" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
[skip]
gboolean
mm_gdbus_bearer_get_multiplexed (MmGdbusBearer *object
);
Gets the value of the "Multiplexed" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
[skip]
guint
mm_gdbus_bearer_get_bearer_type (MmGdbusBearer *object
);
Gets the value of the "BearerType" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
[skip]
gint
mm_gdbus_bearer_get_profile_id (MmGdbusBearer *object
);
Gets the value of the "ProfileId" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
[skip]
GVariant *
mm_gdbus_bearer_get_stats (MmGdbusBearer *object
);
Gets the value of the "Stats" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where object
was constructed. Use mm_gdbus_bearer_dup_stats()
if on another thread.
[skip]
The property value or NULL
if the property is not set. Do not free the returned value, it belongs to object
.
[transfer none][nullable]
GVariant *
mm_gdbus_bearer_dup_stats (MmGdbusBearer *object
);
Gets a copy of the "Stats" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
[skip]
The property value or NULL
if the property is not set. The returned value should be freed with g_variant_unref()
.
[transfer full][nullable]
gboolean
mm_gdbus_bearer_get_reload_stats_supported
(MmGdbusBearer *object
);
Gets the value of the "ReloadStatsSupported" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
[skip]
void mm_gdbus_bearer_call_connect (MmGdbusBearer *proxy
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously invokes the Connect()
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_bearer_call_connect_finish()
to get the result of the operation.
See mm_gdbus_bearer_call_connect_sync()
for the synchronous, blocking version of this method.
proxy |
||
cancellable |
A GCancellable or |
[nullable] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or |
|
user_data |
User data to pass to |
gboolean mm_gdbus_bearer_call_connect_finish (MmGdbusBearer *proxy
,GAsyncResult *res
,GError **error
);
Finishes an operation started with mm_gdbus_bearer_call_connect()
.
proxy |
||
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
gboolean mm_gdbus_bearer_call_connect_sync (MmGdbusBearer *proxy
,GCancellable *cancellable
,GError **error
);
Synchronously invokes the Connect()
proxy
. The calling thread is blocked until a reply is received.
See mm_gdbus_bearer_call_connect()
for the asynchronous version of this method.
proxy |
||
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
void mm_gdbus_bearer_call_disconnect (MmGdbusBearer *proxy
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously invokes the Disconnect()
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_bearer_call_disconnect_finish()
to get the result of the operation.
See mm_gdbus_bearer_call_disconnect_sync()
for the synchronous, blocking version of this method.
proxy |
||
cancellable |
A GCancellable or |
[nullable] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or |
|
user_data |
User data to pass to |
gboolean mm_gdbus_bearer_call_disconnect_finish (MmGdbusBearer *proxy
,GAsyncResult *res
,GError **error
);
Finishes an operation started with mm_gdbus_bearer_call_disconnect()
.
proxy |
||
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
gboolean mm_gdbus_bearer_call_disconnect_sync (MmGdbusBearer *proxy
,GCancellable *cancellable
,GError **error
);
Synchronously invokes the Disconnect()
proxy
. The calling thread is blocked until a reply is received.
See mm_gdbus_bearer_call_disconnect()
for the asynchronous version of this method.
proxy |
||
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
typedef struct _MmGdbusBearer MmGdbusBearer;
Abstract interface type for the D-Bus interface org.freedesktop.ModemManager1.Bearer.
struct MmGdbusBearerIface { GTypeInterface parent_iface; gboolean (*handle_connect) ( MmGdbusBearer *object, GDBusMethodInvocation *invocation); gboolean (*handle_disconnect) ( MmGdbusBearer *object, GDBusMethodInvocation *invocation); guint (*get_bearer_type) (MmGdbusBearer *object); gboolean (*get_connected) (MmGdbusBearer *object); GVariant * (*get_connection_error) (MmGdbusBearer *object); const gchar * (*get_interface) (MmGdbusBearer *object); GVariant * (*get_ip4_config) (MmGdbusBearer *object); GVariant * (*get_ip6_config) (MmGdbusBearer *object); guint (*get_ip_timeout) (MmGdbusBearer *object); gboolean (*get_multiplexed) (MmGdbusBearer *object); gint (*get_profile_id) (MmGdbusBearer *object); GVariant * (*get_properties) (MmGdbusBearer *object); gboolean (*get_reload_stats_supported) (MmGdbusBearer *object); GVariant * (*get_stats) (MmGdbusBearer *object); gboolean (*get_suspended) (MmGdbusBearer *object); };
Virtual table for the D-Bus interface org.freedesktop.ModemManager1.Bearer.
GTypeInterface |
The parent interface. |
|
Handler for the “handle-connect” signal. |
||
Handler for the “handle-disconnect” signal. |
||
Getter for the “bearer-type” property. |
||
Getter for the “connected” property. |
||
Getter for the “connection-error” property. |
||
Getter for the “interface” property. |
||
Getter for the “ip4-config” property. |
||
Getter for the “ip6-config” property. |
||
Getter for the “ip-timeout” property. |
||
Getter for the “multiplexed” property. |
||
Getter for the “profile-id” property. |
||
Getter for the “properties” property. |
||
Getter for the “reload-stats-supported” property. |
||
Getter for the “stats” property. |
||
Getter for the “suspended” property. |
“bearer-type”
property“bearer-type” guint
Represents the D-Bus property "BearerType".
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.
Owner: MmGdbusBearer
Flags: Read / Write
Default value: 0
“connected”
property“connected” gboolean
Represents the D-Bus property "Connected".
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.
Owner: MmGdbusBearer
Flags: Read / Write
Default value: FALSE
“connection-error”
property“connection-error” GVariant *
Represents the D-Bus property "ConnectionError".
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.
Owner: MmGdbusBearer
Flags: Read / Write
Allowed values: GVariant<(ss)>
Default value: NULL
“interface”
property “interface” char *
Represents the D-Bus property "Interface".
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.
Owner: MmGdbusBearer
Flags: Read / Write
Default value: NULL
“ip-timeout”
property“ip-timeout” guint
Represents the D-Bus property "IpTimeout".
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.
Owner: MmGdbusBearer
Flags: Read / Write
Default value: 0
“ip4-config”
property“ip4-config” GVariant *
Represents the D-Bus property "Ip4Config".
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.
Owner: MmGdbusBearer
Flags: Read / Write
Allowed values: GVariant<a{sv}>
Default value: NULL
“ip6-config”
property“ip6-config” GVariant *
Represents the D-Bus property "Ip6Config".
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.
Owner: MmGdbusBearer
Flags: Read / Write
Allowed values: GVariant<a{sv}>
Default value: NULL
“multiplexed”
property“multiplexed” gboolean
Represents the D-Bus property "Multiplexed".
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.
Owner: MmGdbusBearer
Flags: Read / Write
Default value: FALSE
“profile-id”
property “profile-id” int
Represents the D-Bus property "ProfileId".
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.
Owner: MmGdbusBearer
Flags: Read / Write
Default value: 0
“properties”
property“properties” GVariant *
Represents the D-Bus property "Properties".
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.
Owner: MmGdbusBearer
Flags: Read / Write
Allowed values: GVariant<a{sv}>
Default value: NULL
“reload-stats-supported”
property“reload-stats-supported” gboolean
Represents the D-Bus property "ReloadStatsSupported".
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.
Owner: MmGdbusBearer
Flags: Read / Write
Default value: FALSE
“stats”
property“stats” GVariant *
Represents the D-Bus property "Stats".
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.
Owner: MmGdbusBearer
Flags: Read / Write
Allowed values: GVariant<a{sv}>
Default value: NULL
“suspended”
property“suspended” gboolean
Represents the D-Bus property "Suspended".
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.
Owner: MmGdbusBearer
Flags: Read / Write
Default value: FALSE
“handle-connect”
signalgboolean user_function (MmGdbusBearer *object, GDBusMethodInvocation *invocation, gpointer user_data)
Signal emitted when a remote caller is invoking the Connect()
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_bearer_complete_connect()
or e.g. g_dbus_method_invocation_return_error()
on it) and no other signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD
error is returned.
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
“handle-disconnect”
signalgboolean user_function (MmGdbusBearer *object, GDBusMethodInvocation *invocation, gpointer user_data)
Signal emitted when a remote caller is invoking the Disconnect()
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_bearer_complete_disconnect()
or e.g. g_dbus_method_invocation_return_error()
on it) and no other signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD
error is returned.
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