Nautilus.PropertiesModelProvider

g GObject.GInterface GObject.GInterface Nautilus.PropertiesModelProvider Nautilus.PropertiesModelProvider GObject.GInterface->Nautilus.PropertiesModelProvider

Implementations:

None

Methods

get_models (files)

Virtual Methods

do_get_models (files)

Properties

None

Signals

None

Fields

None

Class Details

class Nautilus.PropertiesModelProvider
Bases:

GObject.GInterface

Structure:

Nautilus.PropertiesModelProviderInterface

Interface to provide additional properties.

NautilusPropertiesModelProvider allows extensions to provide additional information for the file properties.

get_models(files)
Parameters:

files ([Nautilus.FileInfo]) – a list of files

Returns:

a list of models.

Return type:

[Nautilus.PropertiesModel] or None

This function is called by the application when it wants properties models from the extension.

This function is called in the main thread before the Properties are shown, so it should return quickly. The models can be populated and updated asynchronously.

do_get_models(files) virtual
Parameters:

files ([Nautilus.FileInfo]) – a list of files

Returns:

a list of models.

Return type:

[Nautilus.PropertiesModel] or None

This function is called by the application when it wants properties models from the extension.

This function is called in the main thread before the Properties are shown, so it should return quickly. The models can be populated and updated asynchronously.