Ignore:
Timestamp:
3/13/2012 3:07:18 AM (2 years ago)
Author:
lowjoel
Message:

Move common erasure settings to the Host instance instead of the Manager library.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/pluginsRewrite/Eraser.Manager/Settings.cs

    r2455 r2462  
    4848 
    4949        /// <summary> 
    50         /// The default file erasure method. This is a GUID since methods are 
    51         /// implemented through plugins and plugins may not be loaded and missing 
    52         /// references may follow. 
    53         /// </summary> 
    54         public Guid DefaultFileErasureMethod 
    55         { 
    56             get 
    57             { 
    58                 //If the user did not define anything for this field, check all plugins 
    59                 //and use the method which was declared by us to be the highest 
    60                 //priority default 
    61                 Guid result = Store.GetValue<Guid>("DefaultFileErasureMethod"); 
    62                 if (result == Guid.Empty) 
    63                     result = new Guid("{1407FC4E-FEFF-4375-B4FB-D7EFBB7E9922}"); 
    64  
    65                 return result; 
    66             } 
    67             set 
    68             { 
    69                 Store.SetValue("DefaultFileErasureMethod", value); 
    70             } 
    71         } 
    72  
    73         /// <summary> 
    74         /// The default unused space erasure method. This is a GUID since methods 
    75         /// are implemented through plugins and plugins may not be loaded and 
    76         /// missing references may follow. 
    77         /// </summary> 
    78         public Guid DefaultUnusedSpaceErasureMethod 
    79         { 
    80             get 
    81             { 
    82                 Guid result = Store.GetValue<Guid>("DefaultUnusedSpaceErasureMethod"); 
    83                 if (result == Guid.Empty) 
    84                     result = new Guid("{BF8BA267-231A-4085-9BF9-204DE65A6641}"); 
    85                 return result; 
    86             } 
    87             set 
    88             { 
    89                 Store.SetValue("DefaultUnusedSpaceErasureMethod", value); 
    90             } 
    91         } 
    92  
    93         /// <summary> 
    94         /// The PRNG used. This is a GUID since PRNGs are implemented through 
    95         /// plugins and plugins may not be loaded and missing references may follow. 
    96         /// </summary> 
    97         public Guid ActivePrng 
    98         { 
    99             get 
    100             { 
    101                 Guid result = Store.GetValue<Guid>("ActivePRNG"); 
    102                 if (result == Guid.Empty) 
    103                     result = new Guid("{6BF35B8E-F37F-476e-B6B2-9994A92C3B0C}"); 
    104                 return result; 
    105             } 
    106             set 
    107             { 
    108                 Store.SetValue("ActivePRNG", value); 
    109             } 
    110         } 
    111  
    112         /// <summary> 
    11350        /// Whether files which are locked when being erased should be forcibly 
    11451        /// unlocked for erasure. 
     
    14279 
    14380        /// <summary> 
    144         /// Whether erasures should be run with plausible deniability. This is 
    145         /// achieved by the executor copying files over the file to be removed 
    146         /// before removing it. 
    147         /// </summary> 
    148         /// <seealso cref="PlausibleDeniabilityFiles"/> 
    149         public bool PlausibleDeniability 
    150         { 
    151             get 
    152             { 
    153                 return Store.GetValue("PlausibleDeniability", false); 
    154             } 
    155             set 
    156             { 
    157                 Store.SetValue("PlausibleDeniability", value); 
    158             } 
    159         } 
    160  
    161         /// <summary> 
    162         /// The files which are overwritten with when a file has been erased. 
    163         /// </summary> 
    164         public IList<string> PlausibleDeniabilityFiles 
    165         { 
    166             get 
    167             { 
    168                 return Store.GetValue("PlausibleDeniabilityFiles", new List<string>()); 
    169             } 
    170         } 
    171  
    172         /// <summary> 
    17381        /// Holds user decisions on whether the plugin will be loaded at the next 
    17482        /// start up. 
Note: See TracChangeset for help on using the changeset viewer.