integrated new storage implementations in C# app.

Extended file chooser to show error messages in case of connection failure. Important for new FTP/WebDav implementations when browsing fails.
This commit is contained in:
Philipp Crocoll
2016-11-28 11:01:22 +01:00
parent b8de15410d
commit 31f02eca61
69 changed files with 618 additions and 318 deletions

View File

@@ -6,7 +6,7 @@ namespace keepass2android.Io
public partial class DropboxFileStorage: JavaFileStorage
{
public DropboxFileStorage(Context ctx, IKp2aApp app) :
base(new Keepass2android.Javafilestorage.DropboxFileStorage(ctx, AppKey, AppSecret), app)
base(new Keepass2android.Javafilestorage.DropboxV2Storage(ctx, AppKey, AppSecret), app)
{
}
@@ -16,7 +16,7 @@ namespace keepass2android.Io
public partial class DropboxAppFolderFileStorage: JavaFileStorage
{
public DropboxAppFolderFileStorage(Context ctx, IKp2aApp app) :
base(new Keepass2android.Javafilestorage.DropboxAppFolderFileStorage(ctx, AppKey, AppSecret), app)
base(new Keepass2android.Javafilestorage.DropboxV2AppFolderStorage(ctx, AppKey, AppSecret), app)
{
}

View File

@@ -21,7 +21,7 @@ namespace keepass2android.Io
{
protected string Protocol { get { return _jfs.ProtocolId; } }
public IEnumerable<string> SupportedProtocols { get { yield return Protocol; } }
public virtual IEnumerable<string> SupportedProtocols { get { yield return Protocol; } }
private readonly IJavaFileStorage _jfs;

View File

@@ -1,31 +0,0 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using KeePassLib.Serialization;
#if !EXCLUDE_JAVAFILESTORAGE
using Keepass2android.Javafilestorage;
namespace keepass2android.Io
{
public class SkyDriveFileStorage: JavaFileStorage
{
private const string ClientId = "000000004010C234";
public SkyDriveFileStorage(Context ctx, IKp2aApp app) :
base(new Keepass2android.Javafilestorage.SkyDriveFileStorage(ClientId, ctx), app)
{
}
}
}
#endif