-
Notifications
You must be signed in to change notification settings - Fork 809
Expand file tree
/
Copy pathEnums.cs
More file actions
106 lines (99 loc) · 2.48 KB
/
Enums.cs
File metadata and controls
106 lines (99 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
namespace UniGetUI.PackageEngine.Enums
{
/// <summary>
/// Represents the installation scope of a package
/// </summary>
public static class PackageScope
{
public static HashSet<string> ValidValues = [Machine, User];
public const string Machine = "machine";
public const string Global = Machine;
public const string User = "user";
public const string Local = User;
}
public static class Architecture
{
public static HashSet<string> ValidValues = [x86, x64, arm32, arm64];
public const string x86 = "x86";
public const string x64 = "x64";
public const string arm32 = "arm32";
public const string arm64 = "arm64";
}
public enum DeserializedPackageStatus
{
ManagerNotFound,
ManagerNotEnabled,
ManagerNotReady,
SourceNotFound,
IsAvailable
}
public enum BundleFormatType
{
UBUNDLE,
JSON,
YAML,
XML,
}
public enum OperationVeredict
{
Success,
Failure,
Canceled,
// RestartRequired,
AutoRetry,
}
public enum OperationStatus
{
InQueue,
Running,
Succeeded,
Failed,
Canceled
}
public enum OperationType
{
Install,
Update,
Uninstall,
None
}
public enum LoggableTaskType
{
/// <summary>
/// Installs a required dependency for a Package Manager
/// </summary>
InstallManagerDependency,
/// <summary>
/// Searches for packages with a specific query
/// </summary>
FindPackages,
/// <summary>
/// Lists all the available updates
/// </summary>
ListUpdates,
/// <summary>
/// Lists the installed packages
/// </summary>
ListInstalledPackages,
/// <summary>
/// Refreshes the package indexes
/// </summary>
RefreshIndexes,
/// <summary>
/// Lists the available sources for the manager
/// </summary>
ListSources,
/// <summary>
/// Loads the package details for a specific package
/// </summary>
LoadPackageDetails,
/// <summary>
/// Loads the available versions for a specific package
/// </summary>
LoadPackageVersions,
/// <summary>
/// Other, specific task
/// </summary>
OtherTask
}
}