diff options
author | Max <michal@naiman.eu> | 2016-10-16 00:55:50 +0300 |
---|---|---|
committer | Max <michal@naiman.eu> | 2016-10-16 00:55:50 +0300 |
commit | 8c72cefd5bade4a2fa9aed2f4408d11b25cef7d9 (patch) | |
tree | 16fc4dfcc6aee0ba325f308f21f3fcf00044adc7 /Duplicati/Library/Interface | |
parent | c09e69765e49f33b2244fa4f4fe745826d14f664 (diff) |
changes in hyper-v backed
Diffstat (limited to 'Duplicati/Library/Interface')
-rw-r--r-- | Duplicati/Library/Interface/IGenericSourceModule.cs | 50 |
1 files changed, 13 insertions, 37 deletions
diff --git a/Duplicati/Library/Interface/IGenericSourceModule.cs b/Duplicati/Library/Interface/IGenericSourceModule.cs index c0caa92ac..bc59d9058 100644 --- a/Duplicati/Library/Interface/IGenericSourceModule.cs +++ b/Duplicati/Library/Interface/IGenericSourceModule.cs @@ -19,54 +19,30 @@ #endregion using System; using System.Collections.Generic; -using System.Text; namespace Duplicati.Library.Interface { /// <summary> - /// An interface for a plugable generic module. + /// An interface for a plugable source module. /// An instance of a module is loaded prior to a backup or restore operation, - /// and can perform tasks relating to the general execution environment, as - /// well as modify the options used in Duplicati. - /// - /// The implementation must have a default constructor. - /// If the module is actually loaded, the Configure method is called. - /// All instances where the Configure method is called will be disposed, - /// if they implement the IDisposable interface as well. + /// and can perform tasks relating to the source plugins, as + /// well as modify backup source, the options and filters used in Duplicati. /// </summary> - public interface IGenericSourceModule + public interface IGenericSourceModule : IGenericModule { - ///// <summary> - ///// The module key, used to activate or deactivate the module on the commandline - ///// </summary> - //string Key { get; } - - ///// <summary> - ///// A localized string describing the module with a friendly name - ///// </summary> - //string DisplayName { get; } - - ///// <summary> - ///// A localized description of the module - ///// </summary> - //string Description { get; } - - ///// <summary> - ///// A boolean value that indicates if the module should always be loaded. - ///// If true, the user can choose to not load the module by entering the appropriate commandline option. - ///// If false, the user can choose to load the module by entering the appropriate commandline option. - ///// </summary> - //bool LoadAsDefault { get; } - - ///// <summary> - ///// Gets a list of supported commandline arguments - ///// </summary> - //IList<ICommandLineArgument> SupportedCommands { get; } + /// <summary> + /// This method parse and alter backup source paths, apply and alter filters and returns changed or added options values. + /// </summary> + /// <param name="paths">Backup source paths</param> + /// <param name="filter">Filters that are applied to backup paths (include, exclude)</param> + /// <returns>A list of changed or added options values</returns> + Dictionary<string, string> ParseSource(ref string[] paths, ref string filter); /// <summary> /// This method is the interception where the module can interact with the execution environment and modify the settings. /// </summary> /// <param name="commandlineOptions">A set of commandline options passed to Duplicati</param> - void ParseSource(ref string[] paths, ref Dictionary<string, string> commandlineOptions); + /// <returns>If module is going to backup anything, it returns true, otherwise false</returns> + bool ContainFiles(Dictionary<string, string> commandlineOptions); } } |