| Top |
MmGdbusModemLocationMmGdbusModemLocation — Generated C code for the org.freedesktop.ModemManager1.Modem.Location D-Bus interface |
| guint | mm_gdbus_modem_location_get_enabled () |
| guint | mm_gdbus_modem_location_get_capabilities () |
| gboolean | mm_gdbus_modem_location_get_signals_location () |
| GVariant * | mm_gdbus_modem_location_get_location () |
| GVariant * | mm_gdbus_modem_location_dup_location () |
| void | mm_gdbus_modem_location_call_get_location () |
| gboolean | mm_gdbus_modem_location_call_get_location_finish () |
| gboolean | mm_gdbus_modem_location_call_get_location_sync () |
| void | mm_gdbus_modem_location_call_setup () |
| gboolean | mm_gdbus_modem_location_call_setup_finish () |
| gboolean | mm_gdbus_modem_location_call_setup_sync () |
| guint | capabilities | Read / Write |
| guint | enabled | Read / Write |
| GVariant * | location | Read / Write |
| gboolean | signals-location | Read / Write |
MmGdbusModemLocation is implemented by MMModemLocation, MmGdbusModemLocationProxy and MmGdbusModemLocationSkeleton.
This section contains code for working with the org.freedesktop.ModemManager1.Modem.Location D-Bus interface in C.
guint
mm_gdbus_modem_location_get_enabled (MmGdbusModemLocation *object);
Gets the value of the "Enabled" 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_modem_location_get_capabilities
(MmGdbusModemLocation *object);
Gets the value of the "Capabilities" 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_modem_location_get_signals_location
(MmGdbusModemLocation *object);
Gets the value of the "SignalsLocation" 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_modem_location_get_location (MmGdbusModemLocation *object);
Gets the value of the "Location" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
object was constructed. Use mm_gdbus_modem_location_dup_location() if on another thread.[skip]
GVariant *
mm_gdbus_modem_location_dup_location (MmGdbusModemLocation *object);
Gets a copy of the "Location" 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_modem_location_call_get_location (MmGdbusModemLocation *proxy,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
Asynchronously invokes the GetLocation()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_location_call_get_location_finish() to get the result of the operation.
See mm_gdbus_modem_location_call_get_location_sync() for the synchronous, blocking version of this method.
gboolean mm_gdbus_modem_location_call_get_location_finish (MmGdbusModemLocation *proxy,GVariant **out_Location,GAsyncResult *res,GError **error);
Finishes an operation started with mm_gdbus_modem_location_call_get_location().
proxy |
||
out_Location |
Return location for return parameter or |
[out] |
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
gboolean mm_gdbus_modem_location_call_get_location_sync (MmGdbusModemLocation *proxy,GVariant **out_Location,GCancellable *cancellable,GError **error);
Synchronously invokes the GetLocation()proxy
. The calling thread is blocked until a reply is received.
See mm_gdbus_modem_location_call_get_location() for the asynchronous version of this method.
void mm_gdbus_modem_location_call_setup (MmGdbusModemLocation *proxy,guint arg_sources,gboolean arg_signal_location,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
Asynchronously invokes the Setup()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_location_call_setup_finish() to get the result of the operation.
See mm_gdbus_modem_location_call_setup_sync() for the synchronous, blocking version of this method.
proxy |
||
arg_sources |
Argument to pass with the method invocation. |
|
arg_signal_location |
Argument to pass with the method invocation. |
|
cancellable |
A GCancellable or |
[allow-none] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or |
|
user_data |
User data to pass to |
gboolean mm_gdbus_modem_location_call_setup_finish (MmGdbusModemLocation *proxy,GAsyncResult *res,GError **error);
Finishes an operation started with mm_gdbus_modem_location_call_setup().
proxy |
||
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
gboolean mm_gdbus_modem_location_call_setup_sync (MmGdbusModemLocation *proxy,guint arg_sources,gboolean arg_signal_location,GCancellable *cancellable,GError **error);
Synchronously invokes the Setup()proxy
. The calling thread is blocked until a reply is received.
See mm_gdbus_modem_location_call_setup() for the asynchronous version of this method.
typedef struct _MmGdbusModemLocation MmGdbusModemLocation;
Abstract interface type for the D-Bus interface org.freedesktop.ModemManager1.Modem.Location.
struct MmGdbusModemLocationIface {
GTypeInterface parent_iface;
gboolean (*handle_get_location) (
MmGdbusModemLocation *object,
GDBusMethodInvocation *invocation);
gboolean (*handle_setup) (
MmGdbusModemLocation *object,
GDBusMethodInvocation *invocation,
guint arg_sources,
gboolean arg_signal_location);
guint (*get_capabilities) (MmGdbusModemLocation *object);
guint (*get_enabled) (MmGdbusModemLocation *object);
GVariant * (*get_location) (MmGdbusModemLocation *object);
gboolean (*get_signals_location) (MmGdbusModemLocation *object);
};
Virtual table for the D-Bus interface org.freedesktop.ModemManager1.Modem.Location.
The parent interface. |
||
Handler for the “handle-get-location” signal. |
||
Handler for the “handle-setup” signal. |
||
Getter for the “capabilities” property. |
||
Getter for the “enabled” property. |
||
Getter for the “location” property. |
||
Getter for the “signals-location” property. |
“capabilities” property “capabilities” guint
Represents the D-Bus property "Capabilities".
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.
Flags: Read / Write
Default value: 0
“enabled” property “enabled” guint
Represents the D-Bus property "Enabled".
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.
Flags: Read / Write
Default value: 0
“location” property “location” GVariant *
Represents the D-Bus property "Location".
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.
Flags: Read / Write
Allowed values: GVariant<a{uv}>
Default value: NULL
“signals-location” property “signals-location” gboolean
Represents the D-Bus property "SignalsLocation".
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.
Flags: Read / Write
Default value: FALSE
“handle-get-location” signalgboolean user_function (MmGdbusModemLocation *object, GDBusMethodInvocation *invocation, gpointer user_data)
Signal emitted when a remote caller is invoking the GetLocation()
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_location_complete_get_location() 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.
object |
||
invocation |
A GDBusMethodInvocation. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“handle-setup” signalgboolean user_function (MmGdbusModemLocation *object, GDBusMethodInvocation *invocation, guint arg_sources, gboolean arg_signal_location, gpointer user_data)
Signal emitted when a remote caller is invoking the Setup()
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_location_complete_setup() 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.
object |
||
invocation |
A GDBusMethodInvocation. |
|
arg_sources |
Argument passed by remote caller. |
|
arg_signal_location |
Argument passed by remote caller. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last