Cocoa -> You are next! git-svn-id: https://duplicati.googlecode.com/svn/branches/v2.0@1032 59da171f-624f-0410-aa54-27559c288bec
87 lines
1.5 KiB
C#
Executable File
87 lines
1.5 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
|
|
}
|
|
|
|
public enum DuplicatiOperationMode
|
|
{
|
|
Backup,
|
|
BackupFull,
|
|
BackupIncremental,
|
|
Restore,
|
|
RestoreControlfiles,
|
|
List,
|
|
GetBackupSets,
|
|
ListCurrentFiles,
|
|
ListSourceFolders,
|
|
ListActualSignatureFiles,
|
|
DeleteAllButNFull,
|
|
DeleteAllButN,
|
|
DeleteOlderThan,
|
|
CleanUp,
|
|
CreateFolder,
|
|
FindLastFileVersion,
|
|
Verify
|
|
}
|
|
|
|
public enum SuggestedStatusIcon
|
|
{
|
|
Ready,
|
|
ReadyWarning,
|
|
ReadyError,
|
|
Paused,
|
|
Active,
|
|
ActivePaused
|
|
}
|
|
|
|
public static class EnumConverter
|
|
{
|
|
public static T Convert<T>(Enum o)
|
|
{
|
|
return (T)Enum.Parse(typeof(T), o.ToString(), false);
|
|
}
|
|
}
|
|
}
|