IdeCommandProvider

IdeCommandProvider

Functions

Types and Values

Object Hierarchy

    GInterface
    ╰── IdeCommandProvider

Prerequisites

IdeCommandProvider requires GObject.

Description

Functions

ide_command_provider_query_async ()

void
ide_command_provider_query_async (IdeCommandProvider *self,
                                  IdeWorkspace *workspace,
                                  const gchar *typed_text,
                                  GCancellable *cancellable,
                                  GAsyncReadyCallback callback,
                                  gpointer user_data);

ide_command_provider_query_finish ()

GPtrArray *
ide_command_provider_query_finish (IdeCommandProvider *self,
                                   GAsyncResult *result,
                                   GError **error);

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

Parameters

self

a IdeCommandProvider

 

result

a GAsyncResult

 

error

a location for a GError, or NULL

 

Returns

a GPtrArray of IdeCommand, or NULL.

[transfer full][element-type IdeCommand]

Since: 3.32

Types and Values

IDE_TYPE_COMMAND_PROVIDER

#define IDE_TYPE_COMMAND_PROVIDER (ide_command_provider_get_type())

struct IdeCommandProviderInterface

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);
};

IdeCommandProvider

typedef struct _IdeCommandProvider IdeCommandProvider;