mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 23:50:18 -04:00
30 lines
991 B
C#
30 lines
991 B
C#
using Windows.Storage;
|
|
using ModernKeePass.ViewModels;
|
|
using ModernKeePassLib;
|
|
using ModernKeePassLib.Cryptography.KeyDerivation;
|
|
using ModernKeePassLib.Keys;
|
|
|
|
namespace ModernKeePass.Interfaces
|
|
{
|
|
public interface IDatabaseService
|
|
{
|
|
string Name { get; }
|
|
bool RecycleBinEnabled { get; set; }
|
|
GroupVm RootGroup { get; set; }
|
|
GroupVm RecycleBin { get; set; }
|
|
PwUuid DataCipher { get; set; }
|
|
PwCompressionAlgorithm CompressionAlgorithm { get; set; }
|
|
KdfParameters KeyDerivation { get; set; }
|
|
bool IsOpen { get; }
|
|
bool HasChanged { get; set; }
|
|
|
|
void Open(StorageFile databaseFile, CompositeKey key, bool createNew = false);
|
|
void ReOpen();
|
|
void Save();
|
|
void Save(StorageFile file);
|
|
void CreateRecycleBin(string title);
|
|
void AddDeletedItem(PwUuid id);
|
|
void Close(bool releaseFile = true);
|
|
void UpdateCompositeKey(CompositeKey newCompositeKey);
|
|
}
|
|
} |