Top |
MmGdbusModem3gppMmGdbusModem3gpp — Generated C code for the org.freedesktop.ModemManager1.Modem.Modem3gpp D-Bus interface |
guint | enabled-facility-locks | Read / Write |
gchar * | imei | Read / Write |
gchar * | operator-code | Read / Write |
gchar * | operator-name | Read / Write |
guint | registration-state | Read / Write |
guint | subscription-state | Read / Write |
MmGdbusModem3gpp is implemented by MMModem3gpp, MmGdbusModem3gppProxy and MmGdbusModem3gppSkeleton.
This section contains code for working with the org.freedesktop.ModemManager1.Modem.Modem3gpp D-Bus interface in C.
guint
mm_gdbus_modem3gpp_get_registration_state
(MmGdbusModem3gpp *object
);
Gets the value of the "RegistrationState" 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_modem3gpp_get_imei (MmGdbusModem3gpp *object
);
Gets the value of the "Imei" 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_modem3gpp_dup_imei()
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]
gchar *
mm_gdbus_modem3gpp_dup_imei (MmGdbusModem3gpp *object
);
Gets a copy of the "Imei" 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_modem3gpp_get_operator_code (MmGdbusModem3gpp *object
);
Gets the value of the "OperatorCode" 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_modem3gpp_dup_operator_code()
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]
gchar *
mm_gdbus_modem3gpp_dup_operator_code (MmGdbusModem3gpp *object
);
Gets a copy of the "OperatorCode" 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_modem3gpp_get_operator_name (MmGdbusModem3gpp *object
);
Gets the value of the "OperatorName" 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_modem3gpp_dup_operator_name()
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]
gchar *
mm_gdbus_modem3gpp_dup_operator_name (MmGdbusModem3gpp *object
);
Gets a copy of the "OperatorName" 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_modem3gpp_get_enabled_facility_locks
(MmGdbusModem3gpp *object
);
Gets the value of the "EnabledFacilityLocks" 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_modem3gpp_get_subscription_state
(MmGdbusModem3gpp *object
);
Gets the value of the "SubscriptionState" 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_modem3gpp_call_register (MmGdbusModem3gpp *proxy
,const gchar *arg_operator_id
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously invokes the Register()
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_modem3gpp_call_register_finish()
to get the result of the operation.
See mm_gdbus_modem3gpp_call_register_sync()
for the synchronous, blocking version of this method.
proxy |
||
arg_operator_id |
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_modem3gpp_call_register_finish (MmGdbusModem3gpp *proxy
,GAsyncResult *res
,GError **error
);
Finishes an operation started with mm_gdbus_modem3gpp_call_register()
.
proxy |
||
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
gboolean mm_gdbus_modem3gpp_call_register_sync (MmGdbusModem3gpp *proxy
,const gchar *arg_operator_id
,GCancellable *cancellable
,GError **error
);
Synchronously invokes the Register()
proxy
. The calling thread is blocked until a reply is received.
See mm_gdbus_modem3gpp_call_register()
for the asynchronous version of this method.
proxy |
||
arg_operator_id |
Argument to pass with the method invocation. |
|
cancellable |
A GCancellable or |
[allow-none] |
error |
Return location for error or |
void mm_gdbus_modem3gpp_call_scan (MmGdbusModem3gpp *proxy
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously invokes the Scan()
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_modem3gpp_call_scan_finish()
to get the result of the operation.
See mm_gdbus_modem3gpp_call_scan_sync()
for the synchronous, blocking version of this method.
proxy |
||
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_modem3gpp_call_scan_finish (MmGdbusModem3gpp *proxy
,GVariant **out_results
,GAsyncResult *res
,GError **error
);
Finishes an operation started with mm_gdbus_modem3gpp_call_scan()
.
proxy |
||
out_results |
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_modem3gpp_call_scan_sync (MmGdbusModem3gpp *proxy
,GVariant **out_results
,GCancellable *cancellable
,GError **error
);
Synchronously invokes the Scan()
proxy
. The calling thread is blocked until a reply is received.
See mm_gdbus_modem3gpp_call_scan()
for the asynchronous version of this method.
proxy |
||
out_results |
Return location for return parameter or |
[out] |
cancellable |
A GCancellable or |
[allow-none] |
error |
Return location for error or |
typedef struct _MmGdbusModem3gpp MmGdbusModem3gpp;
Abstract interface type for the D-Bus interface org.freedesktop.ModemManager1.Modem.Modem3gpp.
struct MmGdbusModem3gppIface { GTypeInterface parent_iface; gboolean (*handle_register) ( MmGdbusModem3gpp *object, GDBusMethodInvocation *invocation, const gchar *arg_operator_id); gboolean (*handle_scan) ( MmGdbusModem3gpp *object, GDBusMethodInvocation *invocation); guint (*get_enabled_facility_locks) (MmGdbusModem3gpp *object); const gchar * (*get_imei) (MmGdbusModem3gpp *object); const gchar * (*get_operator_code) (MmGdbusModem3gpp *object); const gchar * (*get_operator_name) (MmGdbusModem3gpp *object); guint (*get_registration_state) (MmGdbusModem3gpp *object); guint (*get_subscription_state) (MmGdbusModem3gpp *object); };
Virtual table for the D-Bus interface org.freedesktop.ModemManager1.Modem.Modem3gpp.
GTypeInterface |
The parent interface. |
|
Handler for the “handle-register” signal. |
||
Handler for the “handle-scan” signal. |
||
Getter for the “enabled-facility-locks” property. |
||
Getter for the “imei” property. |
||
Getter for the “operator-code” property. |
||
Getter for the “operator-name” property. |
||
Getter for the “registration-state” property. |
||
Getter for the “subscription-state” property. |
“enabled-facility-locks”
property“enabled-facility-locks” guint
Represents the D-Bus property "EnabledFacilityLocks".
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
“imei”
property“imei” gchar *
Represents the D-Bus property "Imei".
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: NULL
“operator-code”
property“operator-code” gchar *
Represents the D-Bus property "OperatorCode".
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: NULL
“operator-name”
property“operator-name” gchar *
Represents the D-Bus property "OperatorName".
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: NULL
“registration-state”
property“registration-state” guint
Represents the D-Bus property "RegistrationState".
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
“subscription-state”
property“subscription-state” guint
Represents the D-Bus property "SubscriptionState".
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
“handle-register”
signalgboolean user_function (MmGdbusModem3gpp *object, GDBusMethodInvocation *invocation, gchar *arg_operator_id, gpointer user_data)
Signal emitted when a remote caller is invoking the Register()
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_modem3gpp_complete_register()
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 |
||
arg_operator_id |
Argument passed by remote caller. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“handle-scan”
signalgboolean user_function (MmGdbusModem3gpp *object, GDBusMethodInvocation *invocation, gpointer user_data)
Signal emitted when a remote caller is invoking the Scan()
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_modem3gpp_complete_scan()
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.
Flags: Run Last