This repository was archived by the owner on Jun 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Expand file tree
/
Copy pathIDialogService.cs
More file actions
71 lines (65 loc) · 2.48 KB
/
IDialogService.cs
File metadata and controls
71 lines (65 loc) · 2.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
using System;
using System.Threading.Tasks;
using GitHub.Models;
namespace GitHub.Services
{
/// <summary>
/// Services for showing dialogs.
/// </summary>
public interface IDialogService
{
/// <summary>
/// Shows the Clone dialog.
/// </summary>
/// <param name="connection">
/// The connection to use. If null, the URL tab will be used.
/// </param>
/// <returns>
/// A task that returns an instance of <see cref="CloneDialogResult"/> on success,
/// or null if the dialog was cancelled.
/// </returns>
Task<CloneDialogResult> ShowCloneDialog(IConnection connection);
/// <summary>
/// Shows the re-clone dialog.
/// </summary>
/// <param name="repository">The repository to clone.</param>
/// <returns>
/// A task that returns the base path for the clone on success, or null if the dialog was
/// cancelled.
/// </returns>
/// <remarks>
/// The re-clone dialog is shown from the VS2017+ start page when the user wants to check
/// out a repository that was previously checked out on another machine.
/// </remarks>
Task<string> ShowReCloneDialog(IRepositoryModel repository);
/// <summary>
/// Shows the Create Gist dialog.
/// </summary>
/// <param name="connection">
/// The connection to use. If null, the first connection will be used, or the user promted
/// to log in if there are no connections.
/// </param>
Task ShowCreateGist(IConnection connection);
/// <summary>
/// Shows the Create Repository dialog.
/// </summary>
/// <param name="connection">
/// The connection to use. May not be null.
/// </param>
Task ShowCreateRepositoryDialog(IConnection connection);
/// <summary>
/// Shows the Login dialog.
/// </summary>
/// <returns>
/// The <see cref="IConnection"/> created by the login, or null if the login was
/// unsuccessful.
/// </returns>
Task<IConnection> ShowLoginDialog();
/// <summary>
/// Shows the Fork Repository dialog.
/// </summary>
/// <param name="repository">The repository to fork.</param>
/// <param name="connection">The connection to use. May not be null.</param>
Task ShowForkDialog(ILocalRepositoryModel repository, IConnection connection);
}
}