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 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319
|
/*
KeePass Password Safe - The Open-Source Password Manager
Copyright (C) 2003-2019 Dominik Reichl <dominik.reichl@t-online.de>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
using System;
namespace KeePassLib
{
/// <summary>
/// Compression algorithm specifiers.
/// </summary>
public enum PwCompressionAlgorithm
{
/// <summary>
/// No compression.
/// </summary>
None = 0,
/// <summary>
/// GZip compression.
/// </summary>
GZip = 1,
/// <summary>
/// Virtual field: currently known number of algorithms. Should not be used
/// by plugins or libraries -- it's used internally only.
/// </summary>
Count = 2
}
/// <summary>
/// Tree traversal methods.
/// </summary>
public enum TraversalMethod
{
/// <summary>
/// Don't traverse the tree.
/// </summary>
None = 0,
/// <summary>
/// Traverse the tree in pre-order mode, i.e. first visit all items
/// in the current node, then visit all subnodes.
/// </summary>
PreOrder = 1
}
/// <summary>
/// Methods for merging password databases/entries.
/// </summary>
public enum PwMergeMethod
{
// Do not change the explicitly assigned values, otherwise
// serialization (e.g. of Ecas triggers) breaks
None = 0,
OverwriteExisting = 1,
KeepExisting = 2,
OverwriteIfNewer = 3,
CreateNewUuids = 4,
Synchronize = 5
}
/// <summary>
/// Icon identifiers for groups and password entries.
/// </summary>
public enum PwIcon
{
Key = 0,
World,
Warning,
NetworkServer,
MarkedDirectory,
UserCommunication,
Parts,
Notepad,
WorldSocket,
Identity,
PaperReady,
Digicam,
IRCommunication,
MultiKeys,
Energy,
Scanner,
WorldStar,
CDRom,
Monitor,
EMail,
Configuration,
ClipboardReady,
PaperNew,
Screen,
EnergyCareful,
EMailBox,
Disk,
Drive,
PaperQ,
TerminalEncrypted,
Console,
Printer,
ProgramIcons,
Run,
Settings,
WorldComputer,
Archive,
Homebanking,
DriveWindows,
Clock,
EMailSearch,
PaperFlag,
Memory,
TrashBin,
Note,
Expired,
Info,
Package,
Folder,
FolderOpen,
FolderPackage,
LockOpen,
PaperLocked,
Checked,
Pen,
Thumbnail,
Book,
List,
UserKey,
Tool,
Home,
Star,
Tux,
Feather,
Apple,
Wiki,
Money,
Certificate,
BlackBerry,
/// <summary>
/// Virtual identifier -- represents the number of icons.
/// </summary>
Count
}
public enum ProxyServerType
{
None = 0,
System = 1,
Manual = 2
}
public enum ProxyAuthType
{
None = 0,
/// <summary>
/// Use default user credentials (provided by the system).
/// </summary>
Default = 1,
Manual = 2,
/// <summary>
/// <c>Default</c> or <c>Manual</c>, depending on whether
/// manual credentials are available.
/// This type exists for supporting upgrading from KeePass
/// 2.28 to 2.29; the user cannot select this type.
/// </summary>
Auto = 3
}
/// <summary>
/// Comparison modes for in-memory protected objects.
/// </summary>
public enum MemProtCmpMode
{
/// <summary>
/// Ignore the in-memory protection states.
/// </summary>
None = 0,
/// <summary>
/// Ignore the in-memory protection states of standard
/// objects; do compare in-memory protection states of
/// custom objects.
/// </summary>
CustomOnly,
/// <summary>
/// Compare in-memory protection states.
/// </summary>
Full
}
[Flags]
public enum PwCompareOptions
{
None = 0x0,
/// <summary>
/// Empty standard string fields are considered to be the
/// same as non-existing standard string fields.
/// This doesn't affect custom string comparisons.
/// </summary>
NullEmptyEquivStd = 0x1,
IgnoreParentGroup = 0x2,
IgnoreLastAccess = 0x4,
IgnoreLastMod = 0x8,
IgnoreHistory = 0x10,
IgnoreLastBackup = 0x20,
// For groups:
PropertiesOnly = 0x40,
IgnoreTimes = (IgnoreLastAccess | IgnoreLastMod)
}
public enum IOAccessType
{
None = 0,
/// <summary>
/// The IO connection is being opened for reading.
/// </summary>
Read = 1,
/// <summary>
/// The IO connection is being opened for writing.
/// </summary>
Write = 2,
/// <summary>
/// The IO connection is being opened for testing
/// whether a file/object exists.
/// </summary>
Exists = 3,
/// <summary>
/// The IO connection is being opened for deleting a file/object.
/// </summary>
Delete = 4,
/// <summary>
/// The IO connection is being opened for renaming/moving a file/object.
/// </summary>
Move = 5
}
// public enum PwLogicalOp
// {
// None = 0,
// Or = 1,
// And = 2,
// NOr = 3,
// NAnd = 4
// }
[Flags]
public enum AppRunFlags
{
None = 0,
GetStdOutput = 1,
WaitForExit = 2,
// https://sourceforge.net/p/keepass/patches/84/
/// <summary>
/// This flag prevents any handles being garbage-collected
/// before the started process has terminated, without
/// blocking the current thread.
/// </summary>
GCKeepAlive = 4,
// https://sourceforge.net/p/keepass/patches/85/
DoEvents = 8,
DisableForms = 16
}
[Flags]
public enum ScaleTransformFlags
{
None = 0,
/// <summary>
/// <c>UIIcon</c> indicates that the returned image is going
/// to be displayed as icon in the UI and that it is not
/// subject to future changes in size.
/// </summary>
UIIcon = 1
}
public enum DesktopType
{
None = 0,
Windows,
Gnome,
Kde,
Unity,
Lxde,
Xfce,
Mate,
Cinnamon,
Pantheon
}
}
|