aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2025-12-26 14:18:32 -0600
committerJP Dillingham <jp@dillingham.me>2025-12-26 14:18:32 -0600
commit65d33809bfd4a3d9da23b029b5fd34fe8cf0f3c5 (patch)
tree4ad369a3500417bd5637440c8caeb5e72c5ad3d4 /src
parentd051daf9290479cc1a2117341587f563b88534af (diff)
downloadslskd-65d33809bfd4a3d9da23b029b5fd34fe8cf0f3c5.tar.gz
add Incomplete category
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Transfers/Types/TransferStateCategories.cs15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/slskd/Transfers/Types/TransferStateCategories.cs b/src/slskd/Transfers/Types/TransferStateCategories.cs
index 71f8e962..3812b285 100644
--- a/src/slskd/Transfers/Types/TransferStateCategories.cs
+++ b/src/slskd/Transfers/Types/TransferStateCategories.cs
@@ -36,7 +36,10 @@ public static class TransferStateCategories
/// <item><see cref="TransferStates.Succeeded"/></item>
/// </list>
/// </summary>
- public static readonly HashSet<int> Successful = [(int)(TransferStates.Completed | TransferStates.Succeeded)];
+ public static readonly HashSet<int> Successful = [
+ (int)TransferStates.Completed,
+ (int)(TransferStates.Completed | TransferStates.Succeeded)
+ ];
/// <summary>
/// All states representing a failed transfer:
@@ -88,4 +91,14 @@ public static class TransferStateCategories
(int)TransferStates.Initializing,
(int)TransferStates.InProgress,
];
+
+ /// <summary>
+ /// All states lacking the <see cref="TransferStates.Completed"/> flag; the inverse of <see cref="Completed"/>.
+ /// </summary>
+ public static readonly HashSet<int> Incomplete = [
+ .. Queued,
+ .. InProgress,
+ (int)TransferStates.None,
+ (int)TransferStates.Requested
+ ];
} \ No newline at end of file