The system works with the tray-icon, but the tray icon does not yet post notifications. Some work is required to provide meaningful interaction when clicking the notifications. Implemented a key/value store that allows the UI to save settings and other items.
84 lines
1.3 KiB
C#
Executable File
84 lines
1.3 KiB
C#
Executable File
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace Duplicati.Server.Serialization
|
|
{
|
|
public enum RunnerState
|
|
{
|
|
Started,
|
|
Suspended,
|
|
Running,
|
|
Stopped,
|
|
}
|
|
|
|
public enum RunnerResult
|
|
{
|
|
OK,
|
|
Partial,
|
|
Warning,
|
|
Error
|
|
}
|
|
|
|
public enum CloseReason
|
|
{
|
|
None,
|
|
ApplicationExitCall,
|
|
TaskManagerClosing,
|
|
WindowsShutDown,
|
|
UserClosing
|
|
}
|
|
|
|
public enum LiveControlState
|
|
{
|
|
Running,
|
|
Paused
|
|
}
|
|
|
|
|
|
public enum DuplicatiOperation
|
|
{
|
|
Backup,
|
|
Restore,
|
|
List,
|
|
Remove,
|
|
Repair,
|
|
Verify,
|
|
CreateReport
|
|
}
|
|
|
|
public enum SuggestedStatusIcon
|
|
{
|
|
Ready,
|
|
ReadyWarning,
|
|
ReadyError,
|
|
Paused,
|
|
Active,
|
|
ActivePaused
|
|
}
|
|
|
|
|
|
public enum UpdatePollerStates
|
|
{
|
|
Waiting,
|
|
Checking,
|
|
Downloading
|
|
}
|
|
|
|
public enum NotificationType
|
|
{
|
|
Information,
|
|
Warning,
|
|
Error
|
|
}
|
|
|
|
public static class EnumConverter
|
|
{
|
|
public static T Convert<T>(Enum o)
|
|
{
|
|
return (T)Enum.Parse(typeof(T), o.ToString(), false);
|
|
}
|
|
}
|
|
}
|