Nautilus.InfoProvider¶
- Implementations:
None
Methods¶
class |
|
|
|
|
Virtual Methods¶
|
|
|
Properties¶
None
Signals¶
None
Fields¶
None
Class Details¶
- class Nautilus.InfoProvider¶
- Bases:
- Structure:
Interface to provide additional information about files
NautilusInfoProviderallows 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:
update_complete (
GObject.Closure) – the closure to callprovider (
Nautilus.InfoProvider) – an info providerhandle (
Nautilus.OperationHandle) – the handle for the given closureresult (
Nautilus.OperationResult) – eitherNAUTILUS_OPERATION_COMPLETEorNAUTILUS_OPERATION_FAILED
Complete an async file info update.
- cancel_update(handle)¶
- Parameters:
handle (
Nautilus.OperationHandle) – the opaqueNautilus.OperationHandlereturned from a previous call toNautilus.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:
file (
Nautilus.FileInfo) – a file requesting updated info.update_complete (
GObject.Closure) – the closure to invoke at some later time when returningNautilus.OperationResult.IN_PROGRESS.
- Returns:
whether the operation finished.
- handle:
an opaque
Nautilus.OperationHandlethat must be set when returningNautilus.OperationResult.IN_PROGRESS.
- Return type:
(
Nautilus.OperationResult, handle:Nautilus.OperationHandleorNone)
Called when the Nautilus application is requesting updated file information.
- do_cancel_update(handle) virtual¶
- Parameters:
handle (
Nautilus.OperationHandle) – the opaqueNautilus.OperationHandlereturned from a previous call toNautilus.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:
file (
Nautilus.FileInfo) – a file requesting updated info.update_complete (
GObject.Closure) – the closure to invoke at some later time when returningNautilus.OperationResult.IN_PROGRESS.
- Returns:
whether the operation finished.
- handle:
an opaque
Nautilus.OperationHandlethat must be set when returningNautilus.OperationResult.IN_PROGRESS.
- Return type:
(
Nautilus.OperationResult, handle:Nautilus.OperationHandleorNone)
Called when the Nautilus application is requesting updated file information.