mirror of
https://github.com/moparisthebest/keepass2android
synced 2024-08-13 17:03:49 -04:00
2849620f55
AppTask: bugfix for read-only dbs CopyToClipboardService: Can handle time-out for additional strings copied to clipboard; can update the Keyboard data added comments minor changes
40 lines
626 B
C#
40 lines
626 B
C#
using KeePassLib;
|
|
using KeePassLib.Keys;
|
|
using KeePassLib.Serialization;
|
|
|
|
namespace keepass2android
|
|
{
|
|
public class App
|
|
{
|
|
|
|
public class Kp2A
|
|
{
|
|
private static Db _mDb;
|
|
|
|
public class Db
|
|
{
|
|
public PwEntryOutput LastOpenedEntry { get; set; }
|
|
|
|
public void SetEntry(PwEntry e)
|
|
{
|
|
KpDatabase = new PwDatabase();
|
|
KpDatabase.New(new IOConnectionInfo(), new CompositeKey());
|
|
|
|
KpDatabase.RootGroup.AddEntry(e, true);
|
|
}
|
|
|
|
public PwDatabase KpDatabase
|
|
{
|
|
get; set;
|
|
}
|
|
}
|
|
|
|
public static Db GetDb()
|
|
{
|
|
if (_mDb == null)
|
|
_mDb = new Db();
|
|
return _mDb;
|
|
}
|
|
}
|
|
}
|
|
} |