UDisks.DriveAta

g GObject.GInterface GObject.GInterface UDisks.DriveAta UDisks.DriveAta GObject.GInterface->UDisks.DriveAta

Implementations:
 UDisks.DriveAtaProxy, UDisks.DriveAtaSkeleton

Methods

class interface_info ()
class override_properties (klass, property_id_begin)
  call_pm_get_state (arg_options, cancellable, callback, *user_data)
  call_pm_get_state_finish (res)
  call_pm_get_state_sync (arg_options, cancellable)
  call_pm_standby (arg_options, cancellable, callback, *user_data)
  call_pm_standby_finish (res)
  call_pm_standby_sync (arg_options, cancellable)
  call_pm_wakeup (arg_options, cancellable, callback, *user_data)
  call_pm_wakeup_finish (res)
  call_pm_wakeup_sync (arg_options, cancellable)
  call_security_erase_unit (arg_options, cancellable, callback, *user_data)
  call_security_erase_unit_finish (res)
  call_security_erase_unit_sync (arg_options, cancellable)
  call_smart_get_attributes (arg_options, cancellable, callback, *user_data)
  call_smart_get_attributes_finish (res)
  call_smart_get_attributes_sync (arg_options, cancellable)
  call_smart_selftest_abort (arg_options, cancellable, callback, *user_data)
  call_smart_selftest_abort_finish (res)
  call_smart_selftest_abort_sync (arg_options, cancellable)
  call_smart_selftest_start (arg_type, arg_options, cancellable, callback, *user_data)
  call_smart_selftest_start_finish (res)
  call_smart_selftest_start_sync (arg_type, arg_options, cancellable)
  call_smart_set_enabled (arg_value, arg_options, cancellable, callback, *user_data)
  call_smart_set_enabled_finish (res)
  call_smart_set_enabled_sync (arg_value, arg_options, cancellable)
  call_smart_update (arg_options, cancellable, callback, *user_data)
  call_smart_update_finish (res)
  call_smart_update_sync (arg_options, cancellable)
  complete_pm_get_state (invocation, state)
  complete_pm_standby (invocation)
  complete_pm_wakeup (invocation)
  complete_security_erase_unit (invocation)
  complete_smart_get_attributes (invocation, attributes)
  complete_smart_selftest_abort (invocation)
  complete_smart_selftest_start (invocation)
  complete_smart_set_enabled (invocation)
  complete_smart_update (invocation)

Virtual Methods

  do_handle_pm_get_state (invocation, arg_options)
  do_handle_pm_standby (invocation, arg_options)
  do_handle_pm_wakeup (invocation, arg_options)
  do_handle_security_erase_unit (invocation, arg_options)
  do_handle_smart_get_attributes (invocation, arg_options)
  do_handle_smart_selftest_abort (invocation, arg_options)
  do_handle_smart_selftest_start (invocation, arg_type, arg_options)
  do_handle_smart_set_enabled (invocation, arg_value, arg_options)
  do_handle_smart_update (invocation, arg_options)

Properties

Name Type Flags Short Description
aam-enabled bool r/w AamEnabled
aam-supported bool r/w AamSupported
aam-vendor-recommended-value int r/w AamVendorRecommendedValue
apm-enabled bool r/w ApmEnabled
apm-supported bool r/w ApmSupported
pm-enabled bool r/w PmEnabled
pm-supported bool r/w PmSupported
read-lookahead-enabled bool r/w ReadLookaheadEnabled
read-lookahead-supported bool r/w ReadLookaheadSupported
security-enhanced-erase-unit-minutes int r/w SecurityEnhancedEraseUnitMinutes
security-erase-unit-minutes int r/w SecurityEraseUnitMinutes
security-frozen bool r/w SecurityFrozen
smart-enabled bool r/w SmartEnabled
smart-failing bool r/w SmartFailing
smart-num-attributes-failed-in-the-past int r/w SmartNumAttributesFailedInThePast
smart-num-attributes-failing int r/w SmartNumAttributesFailing
smart-num-bad-sectors int r/w SmartNumBadSectors
smart-power-on-seconds int r/w SmartPowerOnSeconds
smart-selftest-percent-remaining int r/w SmartSelftestPercentRemaining
smart-selftest-status str r/w SmartSelftestStatus
smart-supported bool r/w SmartSupported
smart-temperature float r/w SmartTemperature
smart-updated int r/w SmartUpdated
write-cache-enabled bool r/w WriteCacheEnabled
write-cache-supported bool r/w WriteCacheSupported

Signals

Name Short Description
handle-pm-get-state Signal emitted when a remote caller is invoking the PmGetState() D-Bus method.
handle-pm-standby Signal emitted when a remote caller is invoking the PmStandby() D-Bus method.
handle-pm-wakeup Signal emitted when a remote caller is invoking the PmWakeup() D-Bus method.
handle-security-erase-unit Signal emitted when a remote caller is invoking the SecurityEraseUnit() D-Bus method.
handle-smart-get-attributes Signal emitted when a remote caller is invoking the SmartGetAttributes() D-Bus method.
handle-smart-selftest-abort Signal emitted when a remote caller is invoking the SmartSelftestAbort() D-Bus method.
handle-smart-selftest-start Signal emitted when a remote caller is invoking the SmartSelftestStart() D-Bus method.
handle-smart-set-enabled Signal emitted when a remote caller is invoking the SmartSetEnabled() D-Bus method.
handle-smart-update Signal emitted when a remote caller is invoking the SmartUpdate() D-Bus method.

Fields

None

Class Details

class UDisks.DriveAta
Bases:GObject.GInterface
Structure:UDisks.DriveAtaIface

Abstract interface type for the D-Bus interface org.freedesktop.UDisks2.Drive.Ata.

classmethod interface_info()[source]
Returns:A Gio.DBusInterfaceInfo. Do not free.
Return type:Gio.DBusInterfaceInfo

Gets a machine-readable description of the org.freedesktop.UDisks2.Drive.Ata D-Bus interface.

classmethod override_properties(klass, property_id_begin)[source]
Parameters:
Returns:

The last property id.

Return type:

int

Overrides all GObject.Object properties in the UDisks.DriveAta interface for a concrete class. The properties are overridden in the order they are defined.

call_pm_get_state(arg_options, cancellable, callback, *user_data)[source]
Parameters:

Asynchronously invokes the PmGetState() 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 call UDisks.DriveAta.call_pm_get_state_finish() to get the result of the operation.

See UDisks.DriveAta.call_pm_get_state_sync() for the synchronous, blocking version of this method.

call_pm_get_state_finish(res)[source]
Parameters:res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to UDisks.DriveAta.call_pm_get_state().
Raises:GLib.Error
Returns:True if the call succeeded, False if error is set.
out_state:Return location for return parameter or None to ignore.
Return type:(bool, out_state: int)

Finishes an operation started with UDisks.DriveAta.call_pm_get_state().

call_pm_get_state_sync(arg_options, cancellable)[source]
Parameters:
Raises:

GLib.Error

Returns:

True if the call succeeded, False if error is set.

out_state:Return location for return parameter or None to ignore.

Return type:

(bool, out_state: int)

Synchronously invokes the PmGetState() D-Bus method on self. The calling thread is blocked until a reply is received.

See UDisks.DriveAta.call_pm_get_state() for the asynchronous version of this method.

call_pm_standby(arg_options, cancellable, callback, *user_data)[source]
Parameters:

Asynchronously invokes the PmStandby() 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 call UDisks.DriveAta.call_pm_standby_finish() to get the result of the operation.

See UDisks.DriveAta.call_pm_standby_sync() for the synchronous, blocking version of this method.

call_pm_standby_finish(res)[source]
Parameters:res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to UDisks.DriveAta.call_pm_standby().
Raises:GLib.Error
Returns:True if the call succeeded, False if error is set.
Return type:bool

Finishes an operation started with UDisks.DriveAta.call_pm_standby().

call_pm_standby_sync(arg_options, cancellable)[source]
Parameters:
Raises:

GLib.Error

Returns:

True if the call succeeded, False if error is set.

Return type:

bool

Synchronously invokes the PmStandby() D-Bus method on self. The calling thread is blocked until a reply is received.

See UDisks.DriveAta.call_pm_standby() for the asynchronous version of this method.

call_pm_wakeup(arg_options, cancellable, callback, *user_data)[source]
Parameters:

Asynchronously invokes the PmWakeup() 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 call UDisks.DriveAta.call_pm_wakeup_finish() to get the result of the operation.

See UDisks.DriveAta.call_pm_wakeup_sync() for the synchronous, blocking version of this method.

call_pm_wakeup_finish(res)[source]
Parameters:res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to UDisks.DriveAta.call_pm_wakeup().
Raises:GLib.Error
Returns:True if the call succeeded, False if error is set.
Return type:bool

Finishes an operation started with UDisks.DriveAta.call_pm_wakeup().

call_pm_wakeup_sync(arg_options, cancellable)[source]
Parameters:
Raises:

GLib.Error

Returns:

True if the call succeeded, False if error is set.

Return type:

bool

Synchronously invokes the PmWakeup() D-Bus method on self. The calling thread is blocked until a reply is received.

See UDisks.DriveAta.call_pm_wakeup() for the asynchronous version of this method.

call_security_erase_unit(arg_options, cancellable, callback, *user_data)[source]
Parameters:

Asynchronously invokes the SecurityEraseUnit() 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 call UDisks.DriveAta.call_security_erase_unit_finish() to get the result of the operation.

See UDisks.DriveAta.call_security_erase_unit_sync() for the synchronous, blocking version of this method.

call_security_erase_unit_finish(res)[source]
Parameters:res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to UDisks.DriveAta.call_security_erase_unit().
Raises:GLib.Error
Returns:True if the call succeeded, False if error is set.
Return type:bool

Finishes an operation started with UDisks.DriveAta.call_security_erase_unit().

call_security_erase_unit_sync(arg_options, cancellable)[source]
Parameters:
Raises:

GLib.Error

Returns:

True if the call succeeded, False if error is set.

Return type:

bool

Synchronously invokes the SecurityEraseUnit() D-Bus method on self. The calling thread is blocked until a reply is received.

See UDisks.DriveAta.call_security_erase_unit() for the asynchronous version of this method.

call_smart_get_attributes(arg_options, cancellable, callback, *user_data)[source]
Parameters:

Asynchronously invokes the SmartGetAttributes() 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 call UDisks.DriveAta.call_smart_get_attributes_finish() to get the result of the operation.

See UDisks.DriveAta.call_smart_get_attributes_sync() for the synchronous, blocking version of this method.

call_smart_get_attributes_finish(res)[source]
Parameters:res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to UDisks.DriveAta.call_smart_get_attributes().
Raises:GLib.Error
Returns:True if the call succeeded, False if error is set.
out_attributes:Return location for return parameter or None to ignore.
Return type:(bool, out_attributes: GLib.Variant)

Finishes an operation started with UDisks.DriveAta.call_smart_get_attributes().

call_smart_get_attributes_sync(arg_options, cancellable)[source]
Parameters:
Raises:

GLib.Error

Returns:

True if the call succeeded, False if error is set.

out_attributes:Return location for return parameter or None to ignore.

Return type:

(bool, out_attributes: GLib.Variant)

Synchronously invokes the SmartGetAttributes() D-Bus method on self. The calling thread is blocked until a reply is received.

See UDisks.DriveAta.call_smart_get_attributes() for the asynchronous version of this method.

call_smart_selftest_abort(arg_options, cancellable, callback, *user_data)[source]
Parameters:

Asynchronously invokes the SmartSelftestAbort() 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 call UDisks.DriveAta.call_smart_selftest_abort_finish() to get the result of the operation.

See UDisks.DriveAta.call_smart_selftest_abort_sync() for the synchronous, blocking version of this method.

call_smart_selftest_abort_finish(res)[source]
Parameters:res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to UDisks.DriveAta.call_smart_selftest_abort().
Raises:GLib.Error
Returns:True if the call succeeded, False if error is set.
Return type:bool

Finishes an operation started with UDisks.DriveAta.call_smart_selftest_abort().

call_smart_selftest_abort_sync(arg_options, cancellable)[source]
Parameters:
Raises:

GLib.Error

Returns:

True if the call succeeded, False if error is set.

Return type:

bool

Synchronously invokes the SmartSelftestAbort() D-Bus method on self. The calling thread is blocked until a reply is received.

See UDisks.DriveAta.call_smart_selftest_abort() for the asynchronous version of this method.

call_smart_selftest_start(arg_type, arg_options, cancellable, callback, *user_data)[source]
Parameters:

Asynchronously invokes the SmartSelftestStart() 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 call UDisks.DriveAta.call_smart_selftest_start_finish() to get the result of the operation.

See UDisks.DriveAta.call_smart_selftest_start_sync() for the synchronous, blocking version of this method.

call_smart_selftest_start_finish(res)[source]
Parameters:res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to UDisks.DriveAta.call_smart_selftest_start().
Raises:GLib.Error
Returns:True if the call succeeded, False if error is set.
Return type:bool

Finishes an operation started with UDisks.DriveAta.call_smart_selftest_start().

call_smart_selftest_start_sync(arg_type, arg_options, cancellable)[source]
Parameters:
Raises:

GLib.Error

Returns:

True if the call succeeded, False if error is set.

Return type:

bool

Synchronously invokes the SmartSelftestStart() D-Bus method on self. The calling thread is blocked until a reply is received.

See UDisks.DriveAta.call_smart_selftest_start() for the asynchronous version of this method.

call_smart_set_enabled(arg_value, arg_options, cancellable, callback, *user_data)[source]
Parameters:

Asynchronously invokes the SmartSetEnabled() 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 call UDisks.DriveAta.call_smart_set_enabled_finish() to get the result of the operation.

See UDisks.DriveAta.call_smart_set_enabled_sync() for the synchronous, blocking version of this method.

New in version 2.0.0.

call_smart_set_enabled_finish(res)[source]
Parameters:res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to UDisks.DriveAta.call_smart_set_enabled().
Raises:GLib.Error
Returns:True if the call succeeded, False if error is set.
Return type:bool

Finishes an operation started with UDisks.DriveAta.call_smart_set_enabled().

New in version 2.0.0.

call_smart_set_enabled_sync(arg_value, arg_options, cancellable)[source]
Parameters:
Raises:

GLib.Error

Returns:

True if the call succeeded, False if error is set.

Return type:

bool

Synchronously invokes the SmartSetEnabled() D-Bus method on self. The calling thread is blocked until a reply is received.

See UDisks.DriveAta.call_smart_set_enabled() for the asynchronous version of this method.

New in version 2.0.0.

call_smart_update(arg_options, cancellable, callback, *user_data)[source]
Parameters:

Asynchronously invokes the SmartUpdate() 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 call UDisks.DriveAta.call_smart_update_finish() to get the result of the operation.

See UDisks.DriveAta.call_smart_update_sync() for the synchronous, blocking version of this method.

call_smart_update_finish(res)[source]
Parameters:res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to UDisks.DriveAta.call_smart_update().
Raises:GLib.Error
Returns:True if the call succeeded, False if error is set.
Return type:bool

Finishes an operation started with UDisks.DriveAta.call_smart_update().

call_smart_update_sync(arg_options, cancellable)[source]
Parameters:
Raises:

GLib.Error

Returns:

True if the call succeeded, False if error is set.

Return type:

bool

Synchronously invokes the SmartUpdate() D-Bus method on self. The calling thread is blocked until a reply is received.

See UDisks.DriveAta.call_smart_update() for the asynchronous version of this method.

complete_pm_get_state(invocation, state)[source]
Parameters:

Helper function used in service implementations to finish handling invocations of the PmGetState() 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_pm_standby(invocation)[source]
Parameters:invocation (Gio.DBusMethodInvocation) – A Gio.DBusMethodInvocation.

Helper function used in service implementations to finish handling invocations of the PmStandby() 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_pm_wakeup(invocation)[source]
Parameters:invocation (Gio.DBusMethodInvocation) – A Gio.DBusMethodInvocation.

Helper function used in service implementations to finish handling invocations of the PmWakeup() 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_security_erase_unit(invocation)[source]
Parameters:invocation (Gio.DBusMethodInvocation) – A Gio.DBusMethodInvocation.

Helper function used in service implementations to finish handling invocations of the SecurityEraseUnit() 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_smart_get_attributes(invocation, attributes)[source]
Parameters:

Helper function used in service implementations to finish handling invocations of the SmartGetAttributes() 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_smart_selftest_abort(invocation)[source]
Parameters:invocation (Gio.DBusMethodInvocation) – A Gio.DBusMethodInvocation.

Helper function used in service implementations to finish handling invocations of the SmartSelftestAbort() 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_smart_selftest_start(invocation)[source]
Parameters:invocation (Gio.DBusMethodInvocation) – A Gio.DBusMethodInvocation.

Helper function used in service implementations to finish handling invocations of the SmartSelftestStart() 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_smart_set_enabled(invocation)[source]
Parameters:invocation (Gio.DBusMethodInvocation) – A Gio.DBusMethodInvocation.

Helper function used in service implementations to finish handling invocations of the SmartSetEnabled() 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.

New in version 2.0.0.

complete_smart_update(invocation)[source]
Parameters:invocation (Gio.DBusMethodInvocation) – A Gio.DBusMethodInvocation.

Helper function used in service implementations to finish handling invocations of the SmartUpdate() 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_pm_get_state(invocation, arg_options) virtual
Parameters:
Return type:

bool

do_handle_pm_standby(invocation, arg_options) virtual
Parameters:
Return type:

bool

do_handle_pm_wakeup(invocation, arg_options) virtual
Parameters:
Return type:

bool

do_handle_security_erase_unit(invocation, arg_options) virtual
Parameters:
Return type:

bool

do_handle_smart_get_attributes(invocation, arg_options) virtual
Parameters:
Return type:

bool

do_handle_smart_selftest_abort(invocation, arg_options) virtual
Parameters:
Return type:

bool

do_handle_smart_selftest_start(invocation, arg_type, arg_options) virtual
Parameters:
Return type:

bool

do_handle_smart_set_enabled(invocation, arg_value, arg_options) virtual
Parameters:
Return type:

bool

do_handle_smart_update(invocation, arg_options) virtual
Parameters:
Return type:

bool

Signal Details

UDisks.DriveAta.signals.handle_pm_get_state(drive_ata, invocation, arg_options)
Signal Name:

handle-pm-get-state

Flags:

RUN_LAST

Parameters:
Returns:

True if the invocation was handled, False to let other signal handlers run.

Return type:

bool

Signal emitted when a remote caller is invoking the PmGetState() 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 call UDisks.DriveAta.complete_pm_get_state() 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 Gio.DBusError.UNKNOWN_METHOD error is returned.

UDisks.DriveAta.signals.handle_pm_standby(drive_ata, invocation, arg_options)
Signal Name:

handle-pm-standby

Flags:

RUN_LAST

Parameters:
Returns:

True if the invocation was handled, False to let other signal handlers run.

Return type:

bool

Signal emitted when a remote caller is invoking the PmStandby() 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 call UDisks.DriveAta.complete_pm_standby() 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 Gio.DBusError.UNKNOWN_METHOD error is returned.

UDisks.DriveAta.signals.handle_pm_wakeup(drive_ata, invocation, arg_options)
Signal Name:

handle-pm-wakeup

Flags:

RUN_LAST

Parameters:
Returns:

True if the invocation was handled, False to let other signal handlers run.

Return type:

bool

Signal emitted when a remote caller is invoking the PmWakeup() 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 call UDisks.DriveAta.complete_pm_wakeup() 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 Gio.DBusError.UNKNOWN_METHOD error is returned.

UDisks.DriveAta.signals.handle_security_erase_unit(drive_ata, invocation, arg_options)
Signal Name:

handle-security-erase-unit

Flags:

RUN_LAST

Parameters:
Returns:

True if the invocation was handled, False to let other signal handlers run.

Return type:

bool

Signal emitted when a remote caller is invoking the SecurityEraseUnit() 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 call UDisks.DriveAta.complete_security_erase_unit() 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 Gio.DBusError.UNKNOWN_METHOD error is returned.

UDisks.DriveAta.signals.handle_smart_get_attributes(drive_ata, invocation, arg_options)
Signal Name:

handle-smart-get-attributes

Flags:

RUN_LAST

Parameters:
Returns:

True if the invocation was handled, False to let other signal handlers run.

Return type:

bool

Signal emitted when a remote caller is invoking the SmartGetAttributes() 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 call UDisks.DriveAta.complete_smart_get_attributes() 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 Gio.DBusError.UNKNOWN_METHOD error is returned.

UDisks.DriveAta.signals.handle_smart_selftest_abort(drive_ata, invocation, arg_options)
Signal Name:

handle-smart-selftest-abort

Flags:

RUN_LAST

Parameters:
Returns:

True if the invocation was handled, False to let other signal handlers run.

Return type:

bool

Signal emitted when a remote caller is invoking the SmartSelftestAbort() 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 call UDisks.DriveAta.complete_smart_selftest_abort() 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 Gio.DBusError.UNKNOWN_METHOD error is returned.

UDisks.DriveAta.signals.handle_smart_selftest_start(drive_ata, invocation, arg_type, arg_options)
Signal Name:

handle-smart-selftest-start

Flags:

RUN_LAST

Parameters:
Returns:

True if the invocation was handled, False to let other signal handlers run.

Return type:

bool

Signal emitted when a remote caller is invoking the SmartSelftestStart() 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 call UDisks.DriveAta.complete_smart_selftest_start() 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 Gio.DBusError.UNKNOWN_METHOD error is returned.

UDisks.DriveAta.signals.handle_smart_set_enabled(drive_ata, invocation, arg_value, arg_options)
Signal Name:

handle-smart-set-enabled

Flags:

RUN_LAST

Parameters:
Returns:

True if the invocation was handled, False to let other signal handlers run.

Return type:

bool

Signal emitted when a remote caller is invoking the SmartSetEnabled() 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 call UDisks.DriveAta.complete_smart_set_enabled() 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 Gio.DBusError.UNKNOWN_METHOD error is returned.

New in version 2.0.0.

UDisks.DriveAta.signals.handle_smart_update(drive_ata, invocation, arg_options)
Signal Name:

handle-smart-update

Flags:

RUN_LAST

Parameters:
Returns:

True if the invocation was handled, False to let other signal handlers run.

Return type:

bool

Signal emitted when a remote caller is invoking the SmartUpdate() 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 call UDisks.DriveAta.complete_smart_update() 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 Gio.DBusError.UNKNOWN_METHOD error is returned.

Property Details

UDisks.DriveAta.props.aam_enabled
Name:aam-enabled
Type:bool
Default Value:False
Flags:READABLE, WRITABLE

Represents the D-Bus property “AamEnabled”.

Since the D-Bus property for this GObject.Object 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.

UDisks.DriveAta.props.aam_supported
Name:aam-supported
Type:bool
Default Value:False
Flags:READABLE, WRITABLE

Represents the D-Bus property “AamSupported”.

Since the D-Bus property for this GObject.Object 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.

Name:aam-vendor-recommended-value
Type:int
Default Value:0
Flags:READABLE, WRITABLE

Represents the D-Bus property “AamVendorRecommendedValue”.

Since the D-Bus property for this GObject.Object 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.

UDisks.DriveAta.props.apm_enabled
Name:apm-enabled
Type:bool
Default Value:False
Flags:READABLE, WRITABLE

Represents the D-Bus property “ApmEnabled”.

Since the D-Bus property for this GObject.Object 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.

UDisks.DriveAta.props.apm_supported
Name:apm-supported
Type:bool
Default Value:False
Flags:READABLE, WRITABLE

Represents the D-Bus property “ApmSupported”.

Since the D-Bus property for this GObject.Object 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.

UDisks.DriveAta.props.pm_enabled
Name:pm-enabled
Type:bool
Default Value:False
Flags:READABLE, WRITABLE

Represents the D-Bus property “PmEnabled”.

Since the D-Bus property for this GObject.Object 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.

UDisks.DriveAta.props.pm_supported
Name:pm-supported
Type:bool
Default Value:False
Flags:READABLE, WRITABLE

Represents the D-Bus property “PmSupported”.

Since the D-Bus property for this GObject.Object 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.

UDisks.DriveAta.props.read_lookahead_enabled
Name:read-lookahead-enabled
Type:bool
Default Value:False
Flags:READABLE, WRITABLE

Represents the D-Bus property “ReadLookaheadEnabled”.

Since the D-Bus property for this GObject.Object 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.

New in version 2.1.7.

UDisks.DriveAta.props.read_lookahead_supported
Name:read-lookahead-supported
Type:bool
Default Value:False
Flags:READABLE, WRITABLE

Represents the D-Bus property “ReadLookaheadSupported”.

Since the D-Bus property for this GObject.Object 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.

New in version 2.1.7.

UDisks.DriveAta.props.security_enhanced_erase_unit_minutes
Name:security-enhanced-erase-unit-minutes
Type:int
Default Value:0
Flags:READABLE, WRITABLE

Represents the D-Bus property “SecurityEnhancedEraseUnitMinutes”.

Since the D-Bus property for this GObject.Object 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.

UDisks.DriveAta.props.security_erase_unit_minutes
Name:security-erase-unit-minutes
Type:int
Default Value:0
Flags:READABLE, WRITABLE

Represents the D-Bus property “SecurityEraseUnitMinutes”.

Since the D-Bus property for this GObject.Object 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.

UDisks.DriveAta.props.security_frozen
Name:security-frozen
Type:bool
Default Value:False
Flags:READABLE, WRITABLE

Represents the D-Bus property “SecurityFrozen”.

Since the D-Bus property for this GObject.Object 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.

UDisks.DriveAta.props.smart_enabled
Name:smart-enabled
Type:bool
Default Value:False
Flags:READABLE, WRITABLE

Represents the D-Bus property “SmartEnabled”.

Since the D-Bus property for this GObject.Object 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.

UDisks.DriveAta.props.smart_failing
Name:smart-failing
Type:bool
Default Value:False
Flags:READABLE, WRITABLE

Represents the D-Bus property “SmartFailing”.

Since the D-Bus property for this GObject.Object 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.

UDisks.DriveAta.props.smart_num_attributes_failed_in_the_past
Name:smart-num-attributes-failed-in-the-past
Type:int
Default Value:0
Flags:READABLE, WRITABLE

Represents the D-Bus property “SmartNumAttributesFailedInThePast”.

Since the D-Bus property for this GObject.Object 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.

UDisks.DriveAta.props.smart_num_attributes_failing
Name:smart-num-attributes-failing
Type:int
Default Value:0
Flags:READABLE, WRITABLE

Represents the D-Bus property “SmartNumAttributesFailing”.

Since the D-Bus property for this GObject.Object 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.

UDisks.DriveAta.props.smart_num_bad_sectors
Name:smart-num-bad-sectors
Type:int
Default Value:0
Flags:READABLE, WRITABLE

Represents the D-Bus property “SmartNumBadSectors”.

Since the D-Bus property for this GObject.Object 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.

UDisks.DriveAta.props.smart_power_on_seconds
Name:smart-power-on-seconds
Type:int
Default Value:0
Flags:READABLE, WRITABLE

Represents the D-Bus property “SmartPowerOnSeconds”.

Since the D-Bus property for this GObject.Object 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.

UDisks.DriveAta.props.smart_selftest_percent_remaining
Name:smart-selftest-percent-remaining
Type:int
Default Value:0
Flags:READABLE, WRITABLE

Represents the D-Bus property “SmartSelftestPercentRemaining”.

Since the D-Bus property for this GObject.Object 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.

UDisks.DriveAta.props.smart_selftest_status
Name:smart-selftest-status
Type:str
Default Value:None
Flags:READABLE, WRITABLE

Represents the D-Bus property “SmartSelftestStatus”.

Since the D-Bus property for this GObject.Object 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.

UDisks.DriveAta.props.smart_supported
Name:smart-supported
Type:bool
Default Value:False
Flags:READABLE, WRITABLE

Represents the D-Bus property “SmartSupported”.

Since the D-Bus property for this GObject.Object 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.

UDisks.DriveAta.props.smart_temperature
Name:smart-temperature
Type:float
Default Value:0.0
Flags:READABLE, WRITABLE

Represents the D-Bus property “SmartTemperature”.

Since the D-Bus property for this GObject.Object 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.

UDisks.DriveAta.props.smart_updated
Name:smart-updated
Type:int
Default Value:0
Flags:READABLE, WRITABLE

Represents the D-Bus property “SmartUpdated”.

Since the D-Bus property for this GObject.Object 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.

UDisks.DriveAta.props.write_cache_enabled
Name:write-cache-enabled
Type:bool
Default Value:False
Flags:READABLE, WRITABLE

Represents the D-Bus property “WriteCacheEnabled”.

Since the D-Bus property for this GObject.Object 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.

New in version 2.0.0.

UDisks.DriveAta.props.write_cache_supported
Name:write-cache-supported
Type:bool
Default Value:False
Flags:READABLE, WRITABLE

Represents the D-Bus property “WriteCacheSupported”.

Since the D-Bus property for this GObject.Object 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.

New in version 2.0.0.