mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 23:50:18 -04:00
ModernKeePassLib custom PCL version
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
/*
|
||||
KeePass Password Safe - The Open-Source Password Manager
|
||||
Copyright (C) 2003-2012 Dominik Reichl <dominik.reichl@t-online.de>
|
||||
Copyright (C) 2003-2014 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
|
||||
@@ -25,6 +25,7 @@ using System.Diagnostics;
|
||||
|
||||
using ModernKeePassLib.Delegates;
|
||||
using ModernKeePassLib.Interfaces;
|
||||
using ModernKeePassLib.Serialization;
|
||||
|
||||
namespace ModernKeePassLib
|
||||
{
|
||||
@@ -44,6 +45,9 @@ namespace ModernKeePassLib
|
||||
/// </summary>
|
||||
public const string ShortProductName = "KeePass";
|
||||
|
||||
internal const string UnixName = "keepass2";
|
||||
internal const string ResClass = "KeePass2"; // With initial capital
|
||||
|
||||
/// <summary>
|
||||
/// Version, encoded as 32-bit unsigned integer.
|
||||
/// 2.00 = 0x02000000, 2.01 = 0x02000100, ..., 2.18 = 0x02010800.
|
||||
@@ -51,20 +55,20 @@ namespace ModernKeePassLib
|
||||
/// e.g. 2.19 = 0x02130000.
|
||||
/// It is highly recommended to use <c>FileVersion64</c> instead.
|
||||
/// </summary>
|
||||
public const uint Version32 = 0x02130000;
|
||||
public const uint Version32 = 0x021C0000;
|
||||
|
||||
/// <summary>
|
||||
/// Version, encoded as 64-bit unsigned integer
|
||||
/// (component-wise, 16 bits per component).
|
||||
/// </summary>
|
||||
public const ulong FileVersion64 = 0x0002001300000000UL;
|
||||
public const ulong FileVersion64 = 0x0002001C00000000UL;
|
||||
|
||||
/// <summary>
|
||||
/// Version, encoded as string.
|
||||
/// </summary>
|
||||
public const string VersionString = "2.19";
|
||||
public const string VersionString = "2.28";
|
||||
|
||||
public const string Copyright = @"Copyright <EFBFBD> 2003-2012 Dominik Reichl";
|
||||
public const string Copyright = @"Copyright © 2003-2014 Dominik Reichl";
|
||||
|
||||
/// <summary>
|
||||
/// Product website URL. Terminated by a forward slash.
|
||||
@@ -216,7 +220,7 @@ namespace ModernKeePassLib
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable 1591 // Missing XML comments warning
|
||||
// #pragma warning disable 1591 // Missing XML comments warning
|
||||
/// <summary>
|
||||
/// Search parameters for group and entry searches.
|
||||
/// </summary>
|
||||
@@ -314,10 +318,11 @@ namespace ModernKeePassLib
|
||||
set { m_bSearchInTags = value; }
|
||||
}
|
||||
|
||||
|
||||
//Bert TODO: Check if using CurrentCultureIgnoreCase makes sense.
|
||||
private StringComparison m_scType = StringComparison.CurrentCultureIgnoreCase;
|
||||
//private StringComparison m_scType = StringComparison.InvariantCultureIgnoreCase;
|
||||
#if PCL || KeePassRT
|
||||
private StringComparison m_scType = StringComparison.OrdinalIgnoreCase;
|
||||
#else
|
||||
private StringComparison m_scType = StringComparison.InvariantCultureIgnoreCase;
|
||||
#endif
|
||||
/// <summary>
|
||||
/// String comparison type. Specifies the condition when the specified
|
||||
/// text matches a group/entry string.
|
||||
@@ -405,9 +410,9 @@ namespace ModernKeePassLib
|
||||
return (SearchParameters)this.MemberwiseClone();
|
||||
}
|
||||
}
|
||||
#pragma warning restore 1591 // Missing XML comments warning
|
||||
// #pragma warning restore 1591 // Missing XML comments warning
|
||||
|
||||
#pragma warning disable 1591 // Missing XML comments warning
|
||||
// #pragma warning disable 1591 // Missing XML comments warning
|
||||
/// <summary>
|
||||
/// Memory protection configuration structure (for default fields).
|
||||
/// </summary>
|
||||
@@ -437,7 +442,7 @@ namespace ModernKeePassLib
|
||||
return false;
|
||||
}
|
||||
}
|
||||
#pragma warning restore 1591 // Missing XML comments warning
|
||||
// #pragma warning restore 1591 // Missing XML comments warning
|
||||
|
||||
public sealed class ObjectTouchedEventArgs : EventArgs
|
||||
{
|
||||
@@ -458,4 +463,24 @@ namespace ModernKeePassLib
|
||||
m_bParentsTouched = bParentsTouched;
|
||||
}
|
||||
}
|
||||
|
||||
public sealed class IOAccessEventArgs : EventArgs
|
||||
{
|
||||
private IOConnectionInfo m_ioc;
|
||||
public IOConnectionInfo IOConnectionInfo { get { return m_ioc; } }
|
||||
|
||||
private IOConnectionInfo m_ioc2;
|
||||
public IOConnectionInfo IOConnectionInfo2 { get { return m_ioc2; } }
|
||||
|
||||
private IOAccessType m_t;
|
||||
public IOAccessType Type { get { return m_t; } }
|
||||
|
||||
public IOAccessEventArgs(IOConnectionInfo ioc, IOConnectionInfo ioc2,
|
||||
IOAccessType t)
|
||||
{
|
||||
m_ioc = ioc;
|
||||
m_ioc2 = ioc2;
|
||||
m_t = t;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user