ModemManager.GdbusModemSar¶
- Implementations:
 ModemManager.GdbusModemSarProxy,ModemManager.GdbusModemSarSkeleton
Methods¶
class  | 
|
class  | 
  | 
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
Virtual Methods¶
  | 
|
  | 
Properties¶
Name  | 
Type  | 
Flags  | 
Short Description  | 
|---|---|---|---|
r/w  | 
PowerLevel  | 
||
r/w  | 
State  | 
Signals¶
Name  | 
Short Description  | 
|---|---|
Signal emitted when a remote caller is invoking the ‘Enable() [gdbus-method-org-freedesktop-ModemManager1-Modem-Sar.Enable]’ D-Bus method.  | 
|
Signal emitted when a remote caller is invoking the ‘SetPowerLevel() [gdbus-method-org-freedesktop-ModemManager1-Modem-Sar.SetPowerLevel]’ D-Bus method.  | 
Fields¶
None
Class Details¶
- class ModemManager.GdbusModemSar¶
 - Bases:
 - Structure:
 
Abstract interface type for the D-Bus interface ‘org.freedesktop.ModemManager1.Modem.Sar [gdbus-interface-org-freedesktop-ModemManager1-Modem-Sar.top_of_page]’.
- classmethod interface_info()¶
 - Returns:
 A
Gio.DBusInterfaceInfo. Do not free.- Return type:
 
Gets a machine-readable description of the ‘org.freedesktop.ModemManager1.Modem.Sar [gdbus-interface-org-freedesktop-ModemManager1-Modem-Sar.top_of_page]’ D-Bus interface.
- classmethod override_properties(klass, property_id_begin)¶
 - Parameters:
 klass (
GObject.ObjectClass) – The class structure for aGObject.Objectderived class.property_id_begin (
int) – The property id to assign to the first overridden property.
- Returns:
 The last property id.
- Return type:
 
Overrides all
GObject.Objectproperties in theModemManager.GdbusModemSarinterface for a concrete class. The properties are overridden in the order they are defined.
- call_enable(arg_enable, cancellable, callback, *user_data)¶
 - Parameters:
 arg_enable (
bool) – Argument to pass with the method invocation.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNone.
Asynchronously invokes the ‘Enable() [gdbus-method-org-freedesktop-ModemManager1-Modem-Sar.Enable]’ D-Bus method on self. 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
GLib.MainContext.push_thread_default()). You can then callModemManager.GdbusModemSar.call_enable_finish() to get the result of the operation.See
ModemManager.GdbusModemSar.call_enable_sync() for the synchronous, blocking version of this method.
- call_enable_finish(res)¶
 - Parameters:
 res (
Gio.AsyncResult) – TheGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toModemManager.GdbusModemSar.call_enable().- Raises:
 - Returns:
 - Return type:
 
Finishes an operation started with
ModemManager.GdbusModemSar.call_enable().
- call_enable_sync(arg_enable, cancellable)¶
 - Parameters:
 arg_enable (
bool) – Argument to pass with the method invocation.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.
- Raises:
 - Returns:
 - Return type:
 
Synchronously invokes the ‘Enable() [gdbus-method-org-freedesktop-ModemManager1-Modem-Sar.Enable]’ D-Bus method on self. The calling thread is blocked until a reply is received.
See
ModemManager.GdbusModemSar.call_enable() for the asynchronous version of this method.
- call_set_power_level(arg_level, cancellable, callback, *user_data)¶
 - Parameters:
 arg_level (
int) – Argument to pass with the method invocation.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNone.
Asynchronously invokes the ‘SetPowerLevel() [gdbus-method-org-freedesktop-ModemManager1-Modem-Sar.SetPowerLevel]’ D-Bus method on self. 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
GLib.MainContext.push_thread_default()). You can then callModemManager.GdbusModemSar.call_set_power_level_finish() to get the result of the operation.See
ModemManager.GdbusModemSar.call_set_power_level_sync() for the synchronous, blocking version of this method.
- call_set_power_level_finish(res)¶
 - Parameters:
 res (
Gio.AsyncResult) – TheGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toModemManager.GdbusModemSar.call_set_power_level().- Raises:
 - Returns:
 - Return type:
 
Finishes an operation started with
ModemManager.GdbusModemSar.call_set_power_level().
- call_set_power_level_sync(arg_level, cancellable)¶
 - Parameters:
 arg_level (
int) – Argument to pass with the method invocation.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.
- Raises:
 - Returns:
 - Return type:
 
Synchronously invokes the ‘SetPowerLevel() [gdbus-method-org-freedesktop-ModemManager1-Modem-Sar.SetPowerLevel]’ D-Bus method on self. The calling thread is blocked until a reply is received.
See
ModemManager.GdbusModemSar.call_set_power_level() for the asynchronous version of this method.
- complete_enable(invocation)¶
 - Parameters:
 invocation (
Gio.DBusMethodInvocation) – AGio.DBusMethodInvocation.
Helper function used in service implementations to finish handling invocations of the ‘Enable() [gdbus-method-org-freedesktop-ModemManager1-Modem-Sar.Enable]’ 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.
This method will free invocation, you cannot use it afterwards.
- complete_set_power_level(invocation)¶
 - Parameters:
 invocation (
Gio.DBusMethodInvocation) – AGio.DBusMethodInvocation.
Helper function used in service implementations to finish handling invocations of the ‘SetPowerLevel() [gdbus-method-org-freedesktop-ModemManager1-Modem-Sar.SetPowerLevel]’ 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.
This method will free invocation, you cannot use it afterwards.
- do_handle_enable(invocation, arg_enable) virtual¶
 - Parameters:
 invocation (
Gio.DBusMethodInvocation) –arg_enable (
bool) –
- Return type:
 
Handler for the
ModemManager.GdbusModemSar::handle-enablesignal.
- do_handle_set_power_level(invocation, arg_level) virtual¶
 - Parameters:
 invocation (
Gio.DBusMethodInvocation) –arg_level (
int) –
- Return type:
 
Handler for the
ModemManager.GdbusModemSar::handle-set-power-levelsignal.
Signal Details¶
- ModemManager.GdbusModemSar.signals.handle_enable(gdbus_modem_sar, invocation, arg_enable)¶
 - Signal Name:
 handle-enable- Flags:
 - Parameters:
 gdbus_modem_sar (
ModemManager.GdbusModemSar) – The object which received the signalinvocation (
Gio.DBusMethodInvocation) – AGio.DBusMethodInvocation.arg_enable (
bool) – Argument passed by remote caller.
- Returns:
 Gio.DBUS_METHOD_INVOCATION_HANDLEDorTrueif the invocation was handled,Gio.DBUS_METHOD_INVOCATION_UNHANDLEDorFalseto let other signal handlers run.- Return type:
 
Signal emitted when a remote caller is invoking the ‘Enable() [gdbus-method-org-freedesktop-ModemManager1-Modem-Sar.Enable]’ D-Bus method.
If a signal handler returns
True, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually callModemManager.GdbusModemSar.complete_enable() 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, theGio.DBusError.UNKNOWN_METHODerror is returned.
- ModemManager.GdbusModemSar.signals.handle_set_power_level(gdbus_modem_sar, invocation, arg_level)¶
 - Signal Name:
 handle-set-power-level- Flags:
 - Parameters:
 gdbus_modem_sar (
ModemManager.GdbusModemSar) – The object which received the signalinvocation (
Gio.DBusMethodInvocation) – AGio.DBusMethodInvocation.arg_level (
int) – Argument passed by remote caller.
- Returns:
 Gio.DBUS_METHOD_INVOCATION_HANDLEDorTrueif the invocation was handled,Gio.DBUS_METHOD_INVOCATION_UNHANDLEDorFalseto let other signal handlers run.- Return type:
 
Signal emitted when a remote caller is invoking the ‘SetPowerLevel() [gdbus-method-org-freedesktop-ModemManager1-Modem-Sar.SetPowerLevel]’ D-Bus method.
If a signal handler returns
True, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually callModemManager.GdbusModemSar.complete_set_power_level() 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, theGio.DBusError.UNKNOWN_METHODerror is returned.
Property Details¶
- ModemManager.GdbusModemSar.props.power_level¶
 - 
Represents the D-Bus property ‘“PowerLevel” [gdbus-property-org-freedesktop-ModemManager1-Modem-Sar.PowerLevel]’.
Since the D-Bus property for this
GObject.Objectproperty 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. 
- ModemManager.GdbusModemSar.props.state¶
 - 
Represents the D-Bus property ‘“State” [gdbus-property-org-freedesktop-ModemManager1-Modem-Sar.State]’.
Since the D-Bus property for this
GObject.Objectproperty 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.