Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/duplicati/duplicati.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Skovhede <kenneth@hexad.dk>2017-01-25 14:01:01 +0300
committerKenneth Skovhede <kenneth@hexad.dk>2017-01-25 14:01:01 +0300
commitcba12b9d283b85d1722a898d1af75820fcc4342e (patch)
tree9fab9d024c7def16e4151d5f74965db4a6b11062 /Duplicati/Library/Interface
parent9e6eefad9ff4733ffe736dae71ace7ffb32eb400 (diff)
Added support for server modules, that is modules that expose options to the user interface
Diffstat (limited to 'Duplicati/Library/Interface')
-rw-r--r--Duplicati/Library/Interface/Duplicati.Library.Interface.csproj1
-rw-r--r--Duplicati/Library/Interface/IGenericServerModule.cs42
2 files changed, 43 insertions, 0 deletions
diff --git a/Duplicati/Library/Interface/Duplicati.Library.Interface.csproj b/Duplicati/Library/Interface/Duplicati.Library.Interface.csproj
index 99c0f2fa8..5a2b82a5c 100644
--- a/Duplicati/Library/Interface/Duplicati.Library.Interface.csproj
+++ b/Duplicati/Library/Interface/Duplicati.Library.Interface.csproj
@@ -62,6 +62,7 @@
<Compile Include="IConnectionModule.cs" />
<Compile Include="IRenameEnabledBackend.cs" />
<Compile Include="Strings.cs" />
+ <Compile Include="IGenericServerModule.cs" />
</ItemGroup>
<ItemGroup>
<None Include="Duplicati.snk" />
diff --git a/Duplicati/Library/Interface/IGenericServerModule.cs b/Duplicati/Library/Interface/IGenericServerModule.cs
new file mode 100644
index 000000000..9c00d1373
--- /dev/null
+++ b/Duplicati/Library/Interface/IGenericServerModule.cs
@@ -0,0 +1,42 @@
+// Copyright (C) 2017, The Duplicati Team
+// http://www.duplicati.com, info@duplicati.com
+//
+// This library is free software; you can redistribute it and/or modify
+// it under the terms of the GNU Lesser General Public License as
+// published by the Free Software Foundation; either version 2.1 of the
+// License, or (at your option) any later version.
+//
+// This library is distributed in the hope that it will be useful, but
+// WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+using System;
+using System.Collections.Generic;
+
+namespace Duplicati.Library.Interface
+{
+ /// <summary>
+ /// A module that displays a set of options in the general setup area
+ /// </summary>
+ public interface IGenericServerModule : IGenericModule
+ {
+ /// <summary>
+ /// Gets a list of supported global module arguments
+ /// </summary>
+ IList<ICommandLineArgument> SupportedGlobalCommands { get; }
+
+ /// <summary>
+ /// Gets a list of supported local module arguments
+ /// </summary>
+ IList<ICommandLineArgument> SupportedLocalCommands { get; }
+
+ /// <summary>
+ /// Gets an optional link that helps the user understand this server module
+ /// </summary>
+ string ServiceLink { get; }
+ }
+}