Top |
MmGdbusModemLocationMmGdbusModemLocation — Generated C code for the org.freedesktop.ModemManager1.Modem.Location D-Bus interface |
GStrv | assistance-data-servers | Read / Write |
guint | capabilities | Read / Write |
guint | enabled | Read / Write |
guint | gps-refresh-rate | Read / Write |
GVariant * | location | Read / Write |
gboolean | signals-location | Read / Write |
char * | supl-server | Read / Write |
guint | supported-assistance-data | 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.
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_modem_location_dup_location()
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_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]
The property value or NULL
if the property is not set. The returned value should be freed with g_variant_unref()
.
[transfer full][nullable]
gchar *
mm_gdbus_modem_location_dup_supl_server
(MmGdbusModemLocation *object
);
Gets a copy of the "SuplServer" 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]
const gchar *
mm_gdbus_modem_location_get_supl_server
(MmGdbusModemLocation *object
);
Gets the value of the "SuplServer" 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_modem_location_dup_supl_server()
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]
guint
mm_gdbus_modem_location_get_gps_refresh_rate
(MmGdbusModemLocation *object
);
Gets the value of the "GpsRefreshRate" 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_supported_assistance_data
(MmGdbusModemLocation *object
);
Gets the value of the "SupportedAssistanceData" 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]
gchar **
mm_gdbus_modem_location_dup_assistance_data_servers
(MmGdbusModemLocation *object
);
Gets a copy of the "AssistanceDataServers" 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_strfreev()
.
[transfer full][nullable]
const gchar *const *
mm_gdbus_modem_location_get_assistance_data_servers
(MmGdbusModemLocation *object
);
Gets the value of the "AssistanceDataServers" 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_modem_location_dup_assistance_data_servers()
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]
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 (see g_main_context_push_thread_default()
).
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.
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_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][optional] |
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.
proxy |
||
out_Location |
Return location for return parameter or |
[out][optional] |
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
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 (see g_main_context_push_thread_default()
).
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 |
[nullable] |
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.
proxy |
||
arg_sources |
Argument to pass with the method invocation. |
|
arg_signal_location |
Argument to pass with the method invocation. |
|
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
void mm_gdbus_modem_location_call_set_supl_server (MmGdbusModemLocation *proxy
,const gchar *arg_supl
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously invokes the SetSuplServer()
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_modem_location_call_set_supl_server_finish()
to get the result of the operation.
See mm_gdbus_modem_location_call_set_supl_server_sync()
for the synchronous, blocking version of this method.
proxy |
||
arg_supl |
Argument to pass with the method invocation. |
|
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_modem_location_call_set_supl_server_finish (MmGdbusModemLocation *proxy
,GAsyncResult *res
,GError **error
);
Finishes an operation started with mm_gdbus_modem_location_call_set_supl_server()
.
proxy |
||
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
gboolean mm_gdbus_modem_location_call_set_supl_server_sync (MmGdbusModemLocation *proxy
,const gchar *arg_supl
,GCancellable *cancellable
,GError **error
);
Synchronously invokes the SetSuplServer()
proxy
. The calling thread is blocked until a reply is received.
See mm_gdbus_modem_location_call_set_supl_server()
for the asynchronous version of this method.
proxy |
||
arg_supl |
Argument to pass with the method invocation. |
|
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
void mm_gdbus_modem_location_call_inject_assistance_data (MmGdbusModemLocation *proxy
,GVariant *arg_data
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously invokes the InjectAssistanceData()
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_modem_location_call_inject_assistance_data_finish()
to get the result of the operation.
See mm_gdbus_modem_location_call_inject_assistance_data_sync()
for the synchronous, blocking version of this method.
proxy |
||
arg_data |
Argument to pass with the method invocation. |
|
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_modem_location_call_inject_assistance_data_finish (MmGdbusModemLocation *proxy
,GAsyncResult *res
,GError **error
);
Finishes an operation started with mm_gdbus_modem_location_call_inject_assistance_data()
.
proxy |
||
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
gboolean mm_gdbus_modem_location_call_inject_assistance_data_sync (MmGdbusModemLocation *proxy
,GVariant *arg_data
,GCancellable *cancellable
,GError **error
);
Synchronously invokes the InjectAssistanceData()
proxy
. The calling thread is blocked until a reply is received.
See mm_gdbus_modem_location_call_inject_assistance_data()
for the asynchronous version of this method.
proxy |
||
arg_data |
Argument to pass with the method invocation. |
|
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
void mm_gdbus_modem_location_call_set_gps_refresh_rate (MmGdbusModemLocation *proxy
,guint arg_rate
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously invokes the SetGpsRefreshRate()
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_modem_location_call_set_gps_refresh_rate_finish()
to get the result of the operation.
See mm_gdbus_modem_location_call_set_gps_refresh_rate_sync()
for the synchronous, blocking version of this method.
proxy |
||
arg_rate |
Argument to pass with the method invocation. |
|
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_modem_location_call_set_gps_refresh_rate_finish (MmGdbusModemLocation *proxy
,GAsyncResult *res
,GError **error
);
Finishes an operation started with mm_gdbus_modem_location_call_set_gps_refresh_rate()
.
proxy |
||
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
gboolean mm_gdbus_modem_location_call_set_gps_refresh_rate_sync (MmGdbusModemLocation *proxy
,guint arg_rate
,GCancellable *cancellable
,GError **error
);
Synchronously invokes the SetGpsRefreshRate()
proxy
. The calling thread is blocked until a reply is received.
See mm_gdbus_modem_location_call_set_gps_refresh_rate()
for the asynchronous version of this method.
proxy |
||
arg_rate |
Argument to pass with the method invocation. |
|
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
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_inject_assistance_data) ( MmGdbusModemLocation *object, GDBusMethodInvocation *invocation, GVariant *arg_data); gboolean (*handle_set_gps_refresh_rate) ( MmGdbusModemLocation *object, GDBusMethodInvocation *invocation, guint arg_rate); gboolean (*handle_set_supl_server) ( MmGdbusModemLocation *object, GDBusMethodInvocation *invocation, const gchar *arg_supl); gboolean (*handle_setup) ( MmGdbusModemLocation *object, GDBusMethodInvocation *invocation, guint arg_sources, gboolean arg_signal_location); const gchar *const * (*get_assistance_data_servers) (MmGdbusModemLocation *object); guint (*get_capabilities) (MmGdbusModemLocation *object); guint (*get_enabled) (MmGdbusModemLocation *object); guint (*get_gps_refresh_rate) (MmGdbusModemLocation *object); GVariant * (*get_location) (MmGdbusModemLocation *object); gboolean (*get_signals_location) (MmGdbusModemLocation *object); const gchar * (*get_supl_server) (MmGdbusModemLocation *object); guint (*get_supported_assistance_data) (MmGdbusModemLocation *object); };
Virtual table for the D-Bus interface org.freedesktop.ModemManager1.Modem.Location.
GTypeInterface |
The parent interface. |
|
Handler for the “handle-get-location” signal. |
||
Handler for the “handle-inject-assistance-data” signal. |
||
Handler for the “handle-set-gps-refresh-rate” signal. |
||
Handler for the “handle-set-supl-server” signal. |
||
Handler for the “handle-setup” signal. |
||
Getter for the “assistance-data-servers” property. |
||
Getter for the “capabilities” property. |
||
Getter for the “enabled” property. |
||
Getter for the “gps-refresh-rate” property. |
||
Getter for the “location” property. |
||
Getter for the “signals-location” property. |
||
Getter for the “supl-server” property. |
||
Getter for the “supported-assistance-data” property. |
“assistance-data-servers”
property“assistance-data-servers” GStrv
Represents the D-Bus property "AssistanceDataServers".
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: MmGdbusModemLocation
Flags: Read / Write
“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.
Owner: MmGdbusModemLocation
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.
Owner: MmGdbusModemLocation
Flags: Read / Write
Default value: 0
“gps-refresh-rate”
property“gps-refresh-rate” guint
Represents the D-Bus property "GpsRefreshRate".
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: MmGdbusModemLocation
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.
Owner: MmGdbusModemLocation
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.
Owner: MmGdbusModemLocation
Flags: Read / Write
Default value: FALSE
“supl-server”
property “supl-server” char *
Represents the D-Bus property "SuplServer".
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: MmGdbusModemLocation
Flags: Read / Write
Default value: NULL
“supported-assistance-data”
property“supported-assistance-data” guint
Represents the D-Bus property "SupportedAssistanceData".
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: MmGdbusModemLocation
Flags: Read / Write
Default value: 0
“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 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-inject-assistance-data”
signalgboolean user_function (MmGdbusModemLocation *object, GDBusMethodInvocation *invocation, GVariant *arg_data, gpointer user_data)
Signal emitted when a remote caller is invoking the InjectAssistanceData()
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_inject_assistance_data()
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.
object |
||
invocation |
||
arg_data |
Argument passed by remote caller. |
|
user_data |
user data set when the signal handler was connected. |
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-set-gps-refresh-rate”
signalgboolean user_function (MmGdbusModemLocation *object, GDBusMethodInvocation *invocation, guint arg_rate, gpointer user_data)
Signal emitted when a remote caller is invoking the SetGpsRefreshRate()
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_set_gps_refresh_rate()
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.
object |
||
invocation |
||
arg_rate |
Argument passed by remote caller. |
|
user_data |
user data set when the signal handler was connected. |
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-set-supl-server”
signalgboolean user_function (MmGdbusModemLocation *object, GDBusMethodInvocation *invocation, char *arg_supl, gpointer user_data)
Signal emitted when a remote caller is invoking the SetSuplServer()
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_set_supl_server()
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.
object |
||
invocation |
||
arg_supl |
Argument passed by remote caller. |
|
user_data |
user data set when the signal handler was connected. |
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-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 other signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD
error is returned.
object |
||
invocation |
||
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. |
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