Foundry.CommandProvider

g Foundry.CommandProvider Foundry.CommandProvider Foundry.Contextual Foundry.Contextual Foundry.Contextual->Foundry.CommandProvider GObject.GInterface GObject.GInterface Gio.ListModel Gio.ListModel GObject.GInterface->Gio.ListModel Json.Serializable Json.Serializable GObject.GInterface->Json.Serializable GObject.Object GObject.Object GObject.Object->Foundry.Contextual Gio.ListModel->Foundry.CommandProvider Json.Serializable->Foundry.Contextual

Subclasses:

None

Methods

Inherited:

Foundry.Contextual (4), GObject.Object (37), Json.Serializable (8), Gio.ListModel (4)

Structs:

GObject.ObjectClass (5)

command_added (command)

command_removed (command)

dup_name ()

Virtual Methods

Inherited:

GObject.Object (7), Json.Serializable (5), Gio.ListModel (3)

do_dup_name ()

Properties

Inherited:

Foundry.Contextual (1)

Signals

Inherited:

GObject.Object (1), Gio.ListModel (1)

Fields

Inherited:

GObject.Object (1), Gio.ListModel (1)

Name

Type

Access

Description

parent_instance

Foundry.Contextual

r

Class Details

class Foundry.CommandProvider(**kwargs)
Bases:

Foundry.Contextual, Gio.ListModel

Abstract:

Yes

Structure:

Foundry.CommandProviderClass

Abstract base class allowing plugins to provide commands.

command_added(command)
Parameters:

command (Foundry.Command) –

command_removed(command)
Parameters:

command (Foundry.Command) –

dup_name()
Returns:

the name of the provider

Return type:

str

Gets a name for the provider that is expected to be displayed to users such as “Flatpak”.

do_dup_name() virtual
Returns:

the name of the provider

Return type:

str

Gets a name for the provider that is expected to be displayed to users such as “Flatpak”.