Ide.CommandProvider
Description: Reference for Ide.CommandProvider

### Interface

# IdeCommandProvider

#### Description

    interface Ide.CommandProvider : GObject.Object

No description available.

#### Prerequisite

In order to implement CommandProvider, your type must inherit from `GObject`.

#### Instance methods

###### ide_command_provider_get_command_by_id

Looks for a command by `command_id` and returns it if found.

Available since: 3.34

###### ide_command_provider_load_shortcuts

No description available.

###### ide_command_provider_query_async

No description available.

###### ide_command_provider_query_finish

Completes an asynchronous request to locate all the commands matching the users typed text.

Available since: 3.32

###### ide_command_provider_unload_shortcuts

No description available.

#### Interface structure

    struct IdeCommandProviderInterface {
      GTypeInterface parent_iface;
      void (* query_async) (
        IdeCommandProvider* self,
        IdeWorkspace* workspace,
        const gchar* typed_text,
        GCancellable* cancellable,
        GAsyncReadyCallback callback,
        gpointer user_data
      );
      GPtrArray* (* query_finish) (
        IdeCommandProvider* self,
        GAsyncResult* result,
        GError** error
      );
      IdeCommand* (* get_command_by_id) (
        IdeCommandProvider* self,
        IdeWorkspace* workspace,
        const gchar* command_id
      );
      void (* load_shortcuts) (
        IdeCommandProvider* self,
        IdeWorkspace* workspace
      );
      void (* unload_shortcuts) (
        IdeCommandProvider* self,
        IdeWorkspace* workspace
      );

    }

###### Interface members

`parent_iface` |
    GTypeInterface
| No description available.
`query_async` |
    void (* query_async) (
        IdeCommandProvider* self,
        IdeWorkspace* workspace,
        const gchar* typed_text,
        GCancellable* cancellable,
        GAsyncReadyCallback callback,
        gpointer user_data
      )
| No description available.
`query_finish` |
    GPtrArray* (* query_finish) (
        IdeCommandProvider* self,
        GAsyncResult* result,
        GError** error
      )
| No description available.
`get_command_by_id` |
    IdeCommand* (* get_command_by_id) (
        IdeCommandProvider* self,
        IdeWorkspace* workspace,
        const gchar* command_id
      )
| No description available.
`load_shortcuts` |
    void (* load_shortcuts) (
        IdeCommandProvider* self,
        IdeWorkspace* workspace
      )
| No description available.
`unload_shortcuts` |
    void (* unload_shortcuts) (
        IdeCommandProvider* self,
        IdeWorkspace* workspace
      )
| No description available.

#### Virtual methods

###### Ide.CommandProvider.get_command_by_id

Looks for a command by `command_id` and returns it if found.

###### Ide.CommandProvider.load_shortcuts

No description available.

###### Ide.CommandProvider.query_async

No description available.

###### Ide.CommandProvider.query_finish

Completes an asynchronous request to locate all the commands matching the users typed text.

###### Ide.CommandProvider.unload_shortcuts

No description available.