Nautilus.InfoProvider

g GObject.GInterface GObject.GInterface Nautilus.InfoProvider Nautilus.InfoProvider GObject.GInterface->Nautilus.InfoProvider

Implementations:

None

Methods

class

update_complete_invoke (update_complete, provider, handle, result)

cancel_update (handle)

update_file_info (file, update_complete)

Virtual Methods

do_cancel_update (handle)

do_update_file_info (file, update_complete)

Properties

None

Signals

None

Fields

None

Class Details

class Nautilus.InfoProvider
Bases:

GObject.GInterface

Structure:

Nautilus.InfoProviderInterface

Interface to provide additional information about files

NautilusInfoProvider allows extension to provide additional information about files. When [method`InfoProvider`.update_file_info] is called by the application, extensions will know that it’s time to add extra information to the provided [iface`FileInfo`].

classmethod update_complete_invoke(update_complete, provider, handle, result)
Parameters:

Complete an async file info update.

cancel_update(handle)
Parameters:

handle (Nautilus.OperationHandle) – the opaque Nautilus.OperationHandle returned from a previous call to Nautilus.InfoProvider.update_file_info().

Called when the Nautilus application has canceled an update.

This method is only relevant if [method`InfoProvider`.update_file_info] was returned with NAUTILUS_OPERATION_IN_PROGRESS.

update_file_info(file, update_complete)
Parameters:
Returns:

whether the operation finished.

handle:

an opaque Nautilus.OperationHandle that must be set when returning Nautilus.OperationResult.IN_PROGRESS.

Return type:

(Nautilus.OperationResult, handle: Nautilus.OperationHandle or None)

Called when the Nautilus application is requesting updated file information.

do_cancel_update(handle) virtual
Parameters:

handle (Nautilus.OperationHandle) – the opaque Nautilus.OperationHandle returned from a previous call to Nautilus.InfoProvider.update_file_info().

Called when the Nautilus application has canceled an update.

This method is only relevant if [method`InfoProvider`.update_file_info] was returned with NAUTILUS_OPERATION_IN_PROGRESS.

do_update_file_info(file, update_complete) virtual
Parameters:
Returns:

whether the operation finished.

handle:

an opaque Nautilus.OperationHandle that must be set when returning Nautilus.OperationResult.IN_PROGRESS.

Return type:

(Nautilus.OperationResult, handle: Nautilus.OperationHandle or None)

Called when the Nautilus application is requesting updated file information.