/[RomCheater]/trunk/RomCheater.PluginFramework/Interfaces/PluginInterfaces.cs
ViewVC logotype

Diff of /trunk/RomCheater.PluginFramework/Interfaces/PluginInterfaces.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/RomCheater.PluginFramework/Interfaces/PluginInterfaces.cs	2012/05/09 21:42:21	92
+++ trunk/RomCheater.PluginFramework/Interfaces/PluginInterfaces.cs	2012/06/19 07:56:36	378
@@ -7,15 +7,15 @@
 
 namespace RomCheater.PluginFramework.Interfaces
 {
-    #region IPluginBase
-    public interface IPluginBase
-    {
-        Guid Id { get; }
-        string Name { get;}
-        string Description { get; }
-        string ToString();
-        void Reload();
-    }
+    #region IPluginBase  
+    public interface IPluginBase : IPluginName, IPluginDescription, IPluginID, IToString, IPluginRefresh { }
+    #region IPluginBase SubMembers
+    public interface IToString { string ToString();    }
+    public interface IPluginName { string Name { get; } }
+    public interface IPluginDescription { string Description { get; } }
+    public interface IPluginID { Guid ID { get; } }
+    public interface IPluginRefresh { void Reload(); void Reload(bool silent);   }
+    #endregion
     #endregion
     #region IConfigPlugin
     public interface IConfigPlugin : IPluginBase
@@ -37,6 +37,7 @@
     public interface IPluginLoader
     {
         void LoadPlugins();
+        void LoadPlugins(bool silent);
         List<IConfigPlugin> LoadedConfigPlugins { get; }
         List<IInputPlugin> LoadedInputPlugins { get; }
         List<IWindowPlugin> LoadedWindowPlugins { get; }
@@ -48,4 +49,31 @@
         string ToString();
     }
     #endregion
+    #region AcceptsPlugin
+    public interface IAcceptsPlugin<TPlugin>
+        where TPlugin : IPluginBase
+    {
+        TPlugin AcceptedPlugin { get; set; }
+    }
+    public interface IAcceptsConfig : IAcceptsPlugin<IConfigPlugin> { }
+    public interface IAcceptsProcess : IAcceptsProcess<Process>    {    }
+    public interface IAcceptsProcess<TProcess>
+        where TProcess : Process
+    {
+        TProcess AcceptedProcess { get; set; }
+    }
+    #endregion
+    public interface IAcceptsProcessAndConfig<TProcess> : IAcceptsConfig, IAcceptsProcess<TProcess> where TProcess : Process { }
+    public interface IAcceptsProcessAndConfig : IAcceptsProcess, IAcceptsConfig { }
+    public interface IAcceptsProcessPID
+    {
+        int ProcessPID { get; set; }
+    }
+    public interface IAcceptsMemoryRange
+    {
+        uint MemoryRangeStart { get; set; }
+        uint MemoryRangeSize { get; set; }
+    }
+    public interface IOutputsData<TData> { TData Data { get; } }
+    public interface ISearchInProgress { bool SearchInProgess { get; } }
 }

 

  ViewVC Help
Powered by ViewVC 1.1.22