ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/RomCheater/trunk/RomCheater.PluginFramework/Interfaces/PluginInterfaces.cs
(Generate patch)

Comparing trunk/RomCheater.PluginFramework/Interfaces/PluginInterfaces.cs (file contents):
Revision 233 by william, Sat Jun 2 16:02:01 2012 UTC vs.
Revision 234 by william, Sun Jun 3 12:38:31 2012 UTC

--- trunk/RomCheater.PluginFramework/Interfaces/PluginInterfaces.cs	2012/06/03 12:38:08	233
+++ trunk/RomCheater.PluginFramework/Interfaces/PluginInterfaces.cs	2012/06/03 12:38:31	234
@@ -48,17 +48,22 @@ namespace RomCheater.PluginFramework.Int
         string ToString();
     }
     #endregion
-#region AcceptsPlugin
+    #region AcceptsPlugin
     public interface IAcceptsPlugin<TPlugin>
         where TPlugin : IPluginBase
     {
         TPlugin AcceptedPlugin { get; set; }
     }
-#endregion
-    public interface IProcessConfig : IAcceptsPlugin<IConfigPlugin>
+    public interface IAcceptsProcess<TProcess>
+        where TProcess : Process
     {
-        Process AcceptedProcess { get; set; }
+        TProcess AcceptedProcess { get; set; }
     }
+    #endregion
+    public interface IAcceptsProcessAndConfig<TPlugin, TProcess> : IAcceptsPlugin<TPlugin>, IAcceptsProcess<TProcess> 
+        where TPlugin : IPluginBase
+        where TProcess : Process { }
+    public interface IAcceptsProcessAndConfig : IAcceptsProcessAndConfig<IConfigPlugin,Process> { }
     public interface IAcceptsProcessPID
     {
         int ProcessPID { get; set; }