WIP Import mechanism

This commit is contained in:
BONNEVILLE Geoffroy
2018-09-07 18:16:40 +02:00
parent 549006036b
commit 0da6a5fc60
14 changed files with 141 additions and 52 deletions

View File

@@ -0,0 +1,9 @@
using Windows.Storage;
namespace ModernKeePass.Interfaces
{
public interface IFormat
{
IPwEntity Import(IStorageFile source);
}
}

View File

@@ -0,0 +1,9 @@
using Windows.Storage;
namespace ModernKeePass.Interfaces
{
public interface IImportService<in T> where T: IFormat
{
void Import(T format, IStorageFile source, IDatabaseService database);
}
}