| Top |
| gchar * | ide_vcs_cloner_get_title () |
| void | ide_vcs_cloner_clone_async () |
| gboolean | ide_vcs_cloner_clone_finish () |
| gboolean | ide_vcs_cloner_validate_uri () |
| gboolean | ide_vcs_cloner_clone_simple () |
gchar *
ide_vcs_cloner_get_title (IdeVcsCloner *self);
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".
Since: 3.32
void ide_vcs_cloner_clone_async (IdeVcsCloner *self,const gchar *uri,const gchar *destination,GVariant *options,IdeNotification *progress,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
self |
an IdeVcsCloner |
|
uri |
a string containing the URI |
|
destination |
a string containing the destination path |
|
options |
a GVariant containing any user supplied options |
|
cancellable |
a GCancellable. |
[nullable] |
progress |
a location for an IdeNotification, or |
[nullable] |
callback |
a GAsyncReadyCallback to execute upon completion |
|
user_data |
closure data for |
Since: 3.32
gboolean ide_vcs_cloner_clone_finish (IdeVcsCloner *self,GAsyncResult *result,GError **error);
self |
an IdeVcsCloner |
|
result |
a GAsyncResult provided to callback |
|
error |
a location for a GError, or |
Since: 3.32
gboolean ide_vcs_cloner_validate_uri (IdeVcsCloner *self,const gchar *uri,gchar **errmsg);
Checks to see if uri
is valid, and if not, sets errmsg
to a string
describing how the URI is invalid.
self |
||
uri |
a string containing the URI to validate |
|
errmsg |
a location for an error message. |
[out][optional] |
Since: 3.32
gboolean ide_vcs_cloner_clone_simple (IdeContext *context,const gchar *module_name,const gchar *url,const gchar *branch,const gchar *destination,IdeNotification *notif,GCancellable *cancellable,GError **error);
struct IdeVcsClonerInterface {
GTypeInterface parent_iface;
gchar *(*get_title) (IdeVcsCloner *self);
gboolean (*validate_uri) (IdeVcsCloner *self,
const gchar *uri,
gchar **errmsg);
void (*clone_async) (IdeVcsCloner *self,
const gchar *uri,
const gchar *destination,
GVariant *options,
IdeNotification *progress,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
gboolean (*clone_finish) (IdeVcsCloner *self,
GAsyncResult *result,
GError **error);
};