mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-12-06 08:12:39 -05:00
WIP Import mechanism
This commit is contained in:
9
ModernKeePass/Interfaces/IFormat.cs
Normal file
9
ModernKeePass/Interfaces/IFormat.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
using Windows.Storage;
|
||||
|
||||
namespace ModernKeePass.Interfaces
|
||||
{
|
||||
public interface IFormat
|
||||
{
|
||||
IPwEntity Import(IStorageFile source);
|
||||
}
|
||||
}
|
||||
9
ModernKeePass/Interfaces/IImportService.cs
Normal file
9
ModernKeePass/Interfaces/IImportService.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user