Interface
PhoshDBusOfonoManager
Description [src]
interface Phosh.DBusOfonoManager : GObject.Object
Abstract interface type for the D-Bus interface org.ofono.Manager.
Prerequisite
In order to implement DBusOfonoManager, your type must inherit fromGObject
.
Functions
phosh_dbus_ofono_manager_interface_info
Gets a machine-readable description of the org.ofono.Manager D-Bus interface.
phosh_dbus_ofono_manager_override_properties
Overrides all GObject
properties in the PhoshDBusOfonoManager
interface for a concrete class.
The properties are overridden in the order they are defined.
Instance methods
phosh_dbus_ofono_manager_call_get_modems
Asynchronously invokes the GetModems() D-Bus method on 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 phosh_dbus_ofono_manager_call_get_modems_finish()
to get the result of the operation.
phosh_dbus_ofono_manager_call_get_modems_finish
Finishes an operation started with phosh_dbus_ofono_manager_call_get_modems().
phosh_dbus_ofono_manager_call_get_modems_sync
Synchronously invokes the GetModems() D-Bus method on proxy
. The calling thread is blocked until a reply is received.
phosh_dbus_ofono_manager_complete_get_modems
Helper function used in service implementations to finish handling invocations of the GetModems() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error()
or similar.
Signals
Phosh.DBusOfonoManager::handle-get-modems
Signal emitted when a remote caller is invoking the GetModems() D-Bus method.
Phosh.DBusOfonoManager::modem-added
On the client-side, this signal is emitted whenever the D-Bus signal “ModemAdded” is received.
Phosh.DBusOfonoManager::modem-removed
On the client-side, this signal is emitted whenever the D-Bus signal “ModemRemoved” is received.
Interface structure
struct PhoshDBusOfonoManagerIface {
GTypeInterface parent_iface;
gboolean (* handle_get_modems) (
PhoshDBusOfonoManager* object,
GDBusMethodInvocation* invocation
);
void (* modem_added) (
PhoshDBusOfonoManager* object,
const gchar* arg_unnamed_arg0,
GVariant* arg_unnamed_arg1
);
void (* modem_removed) (
PhoshDBusOfonoManager* object,
const gchar* arg_unnamed_arg0
);
}
Virtual table for the D-Bus interface org.ofono.Manager.
Interface members
parent_iface |
|
The parent interface. |
|
handle_get_modems |
|
Handler for the |
|
modem_added |
|
Handler for the |
|
modem_removed |
|
Handler for the |
Virtual methods
Phosh.DBusOfonoManager.handle_get_modems
Handler for the PhoshDBusOfonoManager::handle-get-modems
signal.