Interface

IdeVcsCloner

Description

interface Ide.VcsCloner : Ide.Object
No description available.

Prerequisite

In order to implement VcsCloner, your type must inherit fromIdeObject.

Functions

ide_vcs_cloner_clone_simple
No description available.

Instance methods

ide_vcs_cloner_clone_async
No description available.

ide_vcs_cloner_clone_finish
No description available.

ide_vcs_cloner_get_directory_name

Gets the directory name that will be used to clone from uri.

ide_vcs_cloner_get_title

Gets the for the cloner, such as “Git”. This may be used to present a selector to the user based on the backend clone engine. Other suitable titles might be “Subversion” or “CVS”.

ide_vcs_cloner_list_branches_async
No description available.

ide_vcs_cloner_list_branches_finish
No description available.

ide_vcs_cloner_set_pty_fd

Sets a PTY that should be written to for message contents.

since: 44

ide_vcs_cloner_validate_uri

Checks to see if uri is valid, and if not, sets errmsg to a string describing how the URI is invalid.

Interface structure

struct IdeVcsClonerInterface {
  GTypeInterface parent_iface;
  char* (* get_title) (
    IdeVcsCloner* self
  );
  gboolean (* validate_uri) (
    IdeVcsCloner* self,
    const char* uri,
    char** errmsg
  );
  void (* clone_async) (
    IdeVcsCloner* self,
    const char* uri,
    const char* destination,
    GVariant* options,
    IdeNotification* progress,
    GCancellable* cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data
  );
  gboolean (* clone_finish) (
    IdeVcsCloner* self,
    GAsyncResult* result,
    GError** error
  );
  void (* list_branches_async) (
    IdeVcsCloner* self,
    IdeVcsUri* uri,
    GCancellable* cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data
  );
  GListModel* (* list_branches_finish) (
    IdeVcsCloner* self,
    GAsyncResult* result,
    GError** error
  );
  char* (* get_directory_name) (
    IdeVcsCloner* self,
    IdeVcsUri* uri
  );
  void (* set_pty_fd) (
    IdeVcsCloner* self,
    int pty_fd
  );
  
}
No description available.
Interface members
parent_iface
GTypeInterface
 No description available.
get_title
char* (* get_title) (
    IdeVcsCloner* self
  )
 No description available.
validate_uri
gboolean (* validate_uri) (
    IdeVcsCloner* self,
    const char* uri,
    char** errmsg
  )
 No description available.
clone_async
void (* clone_async) (
    IdeVcsCloner* self,
    const char* uri,
    const char* destination,
    GVariant* options,
    IdeNotification* progress,
    GCancellable* cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data
  )
 No description available.
clone_finish
gboolean (* clone_finish) (
    IdeVcsCloner* self,
    GAsyncResult* result,
    GError** error
  )
 No description available.
list_branches_async
void (* list_branches_async) (
    IdeVcsCloner* self,
    IdeVcsUri* uri,
    GCancellable* cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data
  )
 No description available.
list_branches_finish
GListModel* (* list_branches_finish) (
    IdeVcsCloner* self,
    GAsyncResult* result,
    GError** error
  )
 No description available.
get_directory_name
char* (* get_directory_name) (
    IdeVcsCloner* self,
    IdeVcsUri* uri
  )
 No description available.
set_pty_fd
void (* set_pty_fd) (
    IdeVcsCloner* self,
    int pty_fd
  )
 No description available.

Virtual methods

Ide.VcsCloner.clone_async
No description available.

Ide.VcsCloner.clone_finish
No description available.

Ide.VcsCloner.get_directory_name

Gets the directory name that will be used to clone from uri.

Ide.VcsCloner.get_title

Gets the for the cloner, such as “Git”. This may be used to present a selector to the user based on the backend clone engine. Other suitable titles might be “Subversion” or “CVS”.

Ide.VcsCloner.list_branches_async
No description available.

Ide.VcsCloner.list_branches_finish
No description available.

Ide.VcsCloner.set_pty_fd

Sets a PTY that should be written to for message contents.

since: 44

Ide.VcsCloner.validate_uri

Checks to see if uri is valid, and if not, sets errmsg to a string describing how the URI is invalid.