Changeset 2467


Ignore:
Timestamp:
3/13/2012 4:34:41 AM (2 years ago)
Author:
lowjoel
Message:

Define the Task interface, and then store a reference to the parent task in all IErasureTargets.

Location:
branches/eraser6/pluginsRewrite
Files:
1 added
10 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/pluginsRewrite/Eraser.DefaultPlugins/ErasureTargets/ErasureTargetBase.cs

    r2464 r2467  
    4141        { 
    4242            get; 
     43        } 
     44 
     45        public ITask Task 
     46        { 
     47            get; 
     48            set; 
    4349        } 
    4450 
  • branches/eraser6/pluginsRewrite/Eraser.Manager/Task.cs

    r2443 r2467  
    3939    /// </summary> 
    4040    [Serializable] 
    41     public class Task : ISerializable 
     41    public class Task : ITask, ISerializable 
    4242    { 
    4343        #region Serialization code 
     
    175175 
    176176        /// <summary> 
     177        /// <see cref="Targets"/> 
     178        /// </summary> 
     179        ICollection<IErasureTarget> ITask.Targets 
     180        { 
     181            get { return Targets; } 
     182        } 
     183 
     184        /// <summary> 
    177185        /// The schedule for running the task. 
    178186        /// </summary> 
  • branches/eraser6/pluginsRewrite/Eraser.Plugins/Eraser.Plugins.csproj

    r2462 r2467  
    6262    <Compile Include="IPlugin.cs" /> 
    6363    <Compile Include="IRegistrar.cs" /> 
     64    <Compile Include="ITask.cs" /> 
    6465    <Compile Include="PluginLoadingPolicy.cs" /> 
    6566    <Compile Include="PersistentStore.cs" /> 
  • branches/eraser6/pluginsRewrite/Eraser.Plugins/ExtensionPoints/IErasureTarget.cs

    r2443 r2467  
    5252 
    5353        /// <summary> 
     54        /// The task owning this Erasure Target. 
     55        /// </summary> 
     56        ITask Task 
     57        { 
     58            get; 
     59            set; 
     60        } 
     61 
     62        /// <summary> 
    5463        /// The method used for erasing the file. 
    5564        /// </summary> 
  • branches/eraser6/pluginsRewrite/Eraser.Plugins/PersistentStore.cs

    r2369 r2467  
    3232    public abstract class PersistentStore 
    3333    { 
     34        /// <summary> 
     35        /// Gets a subsection Persistent Store to hold one group of settings. 
     36        /// </summary> 
     37        /// <param name="subsectionName"></param> 
     38        /// <returns></returns> 
     39        public abstract PersistentStore GetSubsection(string subsectionName); 
     40 
    3441        /// <summary> 
    3542        /// Gets the setting for the given name, coercing the object stored in the backend 
  • branches/eraser6/pluginsRewrite/Eraser/Strings.en.resx

    r2344 r2467  
    289289    <value>Are you sure you wish to erase the selected items?</value> 
    290290  </data> 
    291   <data name="Could not load the setting {0}\\{1} for plugin {2}. The setting has been lost." xml:space="preserve"> 
    292     <value>Could not load the setting {0}\\{1} for plugin {2}. The setting has been lost.</value> 
     291  <data name="Could not load the setting {0}\\{1}. The setting has been lost." xml:space="preserve"> 
     292    <value>(Untranslated)</value> 
    293293  </data> 
    294294  <data name="Default file erasure method" xml:space="preserve"> 
  • branches/eraser6/pluginsRewrite/Eraser/Strings.it.resx

    r2344 r2467  
    289289    <value>Confermi la pulizia degli elementi selezionati?</value> 
    290290  </data> 
    291   <data name="Could not load the setting {0}\\{1} for plugin {2}. The setting has been lost." xml:space="preserve"> 
    292     <value>Impossibile caricare l'impostazione {0}\\{1} per il plugin {2}. L'impostazione è stata persa.</value> 
     291  <data name="Could not load the setting {0}\\{1}. The setting has been lost." xml:space="preserve"> 
     292    <value>(Untranslated)</value> 
    293293  </data> 
    294294  <data name="Default file erasure method" xml:space="preserve"> 
  • branches/eraser6/pluginsRewrite/Eraser/Strings.nl.resx

    r2344 r2467  
    289289    <value>(Untranslated)</value> 
    290290  </data> 
    291   <data name="Could not load the setting {0}\\{1} for plugin {2}. The setting has been lost." xml:space="preserve"> 
     291  <data name="Could not load the setting {0}\\{1}. The setting has been lost." xml:space="preserve"> 
    292292    <value>(Untranslated)</value> 
    293293  </data> 
  • branches/eraser6/pluginsRewrite/Eraser/Strings.pl.resx

    r2344 r2467  
    289289    <value>(Untranslated)</value> 
    290290  </data> 
    291   <data name="Could not load the setting {0}\\{1} for plugin {2}. The setting has been lost." xml:space="preserve"> 
    292     <value>Nie można było załadować ustawień {0}\\{1} dla wtyczki {2}. Ustawienia wtyczki zostały utracone.</value> 
     291  <data name="Could not load the setting {0}\\{1}. The setting has been lost." xml:space="preserve"> 
     292    <value>(Untranslated)</value> 
    293293  </data> 
    294294  <data name="Default file erasure method" xml:space="preserve"> 
  • branches/eraser6/pluginsRewrite/Eraser/Strings.resx

    r2344 r2467  
    289289    <value>Are you sure you wish to erase the selected items?</value> 
    290290  </data> 
    291   <data name="Could not load the setting {0}\\{1} for plugin {2}. The setting has been lost." xml:space="preserve"> 
    292     <value>Could not load the setting {0}\\{1} for plugin {2}. The setting has been lost.</value> 
     291  <data name="Could not load the setting {0}\\{1}. The setting has been lost." xml:space="preserve"> 
     292    <value>Could not load the setting {0}\\{1}. The setting has been lost.</value> 
    293293  </data> 
    294294  <data name="Default file erasure method" xml:space="preserve"> 
Note: See TracChangeset for help on using the changeset viewer.