libmm-glib Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy | Prerequisites | Known Implementations | Properties | Signals |
MmGdbusModem3gppMmGdbusModem3gpp — Generated C code for the org.freedesktop.ModemManager1.Modem.Modem3gpp D-Bus interface |
MmGdbusModem3gpp; struct MmGdbusModem3gppIface; guint mm_gdbus_modem3gpp_get_registration_state (MmGdbusModem3gpp *object
); const gchar * mm_gdbus_modem3gpp_get_imei (MmGdbusModem3gpp *object
); gchar * mm_gdbus_modem3gpp_dup_imei (MmGdbusModem3gpp *object
); const gchar * mm_gdbus_modem3gpp_get_operator_code (MmGdbusModem3gpp *object
); gchar * mm_gdbus_modem3gpp_dup_operator_code (MmGdbusModem3gpp *object
); const gchar * mm_gdbus_modem3gpp_get_operator_name (MmGdbusModem3gpp *object
); gchar * mm_gdbus_modem3gpp_dup_operator_name (MmGdbusModem3gpp *object
); guint mm_gdbus_modem3gpp_get_enabled_facility_locks (MmGdbusModem3gpp *object
); void mm_gdbus_modem3gpp_call_register (MmGdbusModem3gpp *proxy
,const gchar *arg_operator_id
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); gboolean mm_gdbus_modem3gpp_call_register_finish (MmGdbusModem3gpp *proxy
,GAsyncResult *res
,GError **error
); gboolean mm_gdbus_modem3gpp_call_register_sync (MmGdbusModem3gpp *proxy
,const gchar *arg_operator_id
,GCancellable *cancellable
,GError **error
); void mm_gdbus_modem3gpp_call_scan (MmGdbusModem3gpp *proxy
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); gboolean mm_gdbus_modem3gpp_call_scan_finish (MmGdbusModem3gpp *proxy
,GVariant **out_results
,GAsyncResult *res
,GError **error
); gboolean mm_gdbus_modem3gpp_call_scan_sync (MmGdbusModem3gpp *proxy
,GVariant **out_results
,GCancellable *cancellable
,GError **error
);
MmGdbusModem3gpp is implemented by MMModem3gpp, MmGdbusModem3gppProxy and MmGdbusModem3gppSkeleton.
"enabled-facility-locks" guint : Read / Write "imei" gchar* : Read / Write "operator-code" gchar* : Read / Write "operator-name" gchar* : Read / Write "registration-state" guint : Read / Write
This section contains code for working with the org.freedesktop.ModemManager1.Modem.Modem3gpp D-Bus interface in C.
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); };
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. |
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.
|
A MmGdbusModem3gpp. |
Returns : |
The property value. |
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.
|
A MmGdbusModem3gpp. |
Returns : |
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.
|
A MmGdbusModem3gpp. |
Returns : |
The property value or NULL if the property is not set. The returned value should be freed with g_free() . [transfer full]
|
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.
|
A MmGdbusModem3gpp. |
Returns : |
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.
|
A MmGdbusModem3gpp. |
Returns : |
The property value or NULL if the property is not set. The returned value should be freed with g_free() . [transfer full]
|
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.
|
A MmGdbusModem3gpp. |
Returns : |
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.
|
A MmGdbusModem3gpp. |
Returns : |
The property value or NULL if the property is not set. The returned value should be freed with g_free() . [transfer full]
|
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.
|
A MmGdbusModem3gpp. |
Returns : |
The property value. |
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.
|
A MmGdbusModem3gppProxy. |
|
Argument to pass with the method invocation. |
|
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_gdbus_modem3gpp_call_register_finish (MmGdbusModem3gpp *proxy
,GAsyncResult *res
,GError **error
);
Finishes an operation started with mm_gdbus_modem3gpp_call_register()
.
|
A MmGdbusModem3gppProxy. |
|
The GAsyncResult obtained from the GAsyncReadyCallback passed to mm_gdbus_modem3gpp_call_register() . |
|
Return location for error or NULL . |
Returns : |
TRUE if the call succeded, FALSE if error is set. [skip]
|
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.
|
A MmGdbusModem3gppProxy. |
|
Argument to pass with the method invocation. |
|
A GCancellable or NULL . [allow-none]
|
|
Return location for error or NULL . |
Returns : |
TRUE if the call succeded, FALSE if error is set. [skip]
|
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.
|
A MmGdbusModem3gppProxy. |
|
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_gdbus_modem3gpp_call_scan_finish (MmGdbusModem3gpp *proxy
,GVariant **out_results
,GAsyncResult *res
,GError **error
);
Finishes an operation started with mm_gdbus_modem3gpp_call_scan()
.
|
A MmGdbusModem3gppProxy. |
|
Return location for return parameter or NULL to ignore. [out]
|
|
The GAsyncResult obtained from the GAsyncReadyCallback passed to mm_gdbus_modem3gpp_call_scan() . |
|
Return location for error or NULL . |
Returns : |
TRUE if the call succeded, FALSE if error is set. [skip]
|
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.
|
A MmGdbusModem3gppProxy. |
|
Return location for return parameter or NULL to ignore. [out]
|
|
A GCancellable or NULL . [allow-none]
|
|
Return location for error or NULL . |
Returns : |
TRUE if the call succeded, FALSE if error is set. [skip]
|
"enabled-facility-locks"
property"enabled-facility-locks" guint : Read / Write
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.
Default value: 0
"imei"
property"imei" gchar* : Read / Write
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.
Default value: NULL
"operator-code"
property"operator-code" gchar* : Read / Write
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.
Default value: NULL
"operator-name"
property"operator-name" gchar* : Read / Write
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.
Default value: NULL
"registration-state"
property"registration-state" guint : Read / Write
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.
Default value: 0
"handle-register"
signalgboolean user_function (MmGdbusModem3gpp *object,
GDBusMethodInvocation *invocation,
gchar *arg_operator_id,
gpointer user_data) : Run Last
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.
|
A MmGdbusModem3gpp. |
|
A GDBusMethodInvocation. |
|
Argument passed by remote caller. |
|
user data set when the signal handler was connected. |
Returns : |
TRUE if the invocation was handled, FALSE to let other signal handlers run. |
"handle-scan"
signalgboolean user_function (MmGdbusModem3gpp *object,
GDBusMethodInvocation *invocation,
gpointer user_data) : Run Last
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.
|
A MmGdbusModem3gpp. |
|
A GDBusMethodInvocation. |
|
user data set when the signal handler was connected. |
Returns : |
TRUE if the invocation was handled, FALSE to let other signal handlers run. |