Interface
IdeVcsCloner
Prerequisite
In order to implement VcsCloner, your type must inherit fromIdeObject
.
Instance methods
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_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 |
|
No description available. | |
get_title |
|
No description available. | |
validate_uri |
|
No description available. | |
clone_async |
|
No description available. | |
clone_finish |
|
No description available. | |
list_branches_async |
|
No description available. | |
list_branches_finish |
|
No description available. | |
get_directory_name |
|
No description available. | |
set_pty_fd |
|
No description available. |
Virtual methods
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.validate_uri
Checks to see if uri
is valid, and if not, sets errmsg
to a string
describing how the URI is invalid.