/[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

revision 440 by william, Tue May 28 19:10:10 2013 UTC revision 471 by william, Mon Jun 3 07:13:44 2013 UTC
# Line 68  namespace RomCheater.PluginFramework.Int Line 68  namespace RomCheater.PluginFramework.Int
68          TPlugin AcceptedPlugin { get; set; }          TPlugin AcceptedPlugin { get; set; }
69      }      }
70      public interface IAcceptsConfig : IAcceptsPlugin<IConfigPlugin> { }      public interface IAcceptsConfig : IAcceptsPlugin<IConfigPlugin> { }
71      public interface IAcceptsProcess : IAcceptsProcess<Process>    {    }      public interface IAcceptsProcess : IAcceptsProcessPID    {    }
     public interface IAcceptsProcess<TProcess>  
         where TProcess : Process  
     {  
         TProcess AcceptedProcess { get; set; }  
     }  
72      #endregion      #endregion
     public interface IAcceptsProcessAndConfig<TProcess> : IAcceptsConfig, IAcceptsProcess<TProcess> where TProcess : Process { }  
73      public interface IAcceptsProcessAndConfig : IAcceptsProcess, IAcceptsConfig { }      public interface IAcceptsProcessAndConfig : IAcceptsProcess, IAcceptsConfig { }
74    
75      public class AcceptedProcessAndConfig<TProcess> : IAcceptsProcessAndConfig<TProcess> where TProcess : Process      public class AcceptedProcessAndConfig : IAcceptsProcessAndConfig
76      {      {
77          public AcceptedProcessAndConfig() : this(null, default(TProcess)) { }          public AcceptedProcessAndConfig() : this(null, 0) { }
78          public AcceptedProcessAndConfig(IConfigPlugin config, TProcess process) { AcceptedPlugin = config; AcceptedProcess = process; }          public AcceptedProcessAndConfig(IConfigPlugin config, int pid) { AcceptedPlugin = config; ProcessPID = pid; }
79          #region IAcceptsProcessAndConfig<TProcess> members    
         #endregion  
80    
81          #region IAcceptsPlugin<IConfigPlugin> Members          #region IAcceptsPlugin<IConfigPlugin> Members
82          public IConfigPlugin AcceptedPlugin { get; set; }          public IConfigPlugin AcceptedPlugin { get; set; }
83          #endregion          #endregion
84    
85          #region IAcceptsProcess<TProcess> Members          #region IAcceptsProcess Members
86          public TProcess AcceptedProcess { get; set; }          public int ProcessPID { get; set; }
         #endregion  
     }  
     public class AcceptedProcessAndConfig : IAcceptsProcessAndConfig  
     {  
         public AcceptedProcessAndConfig() : this(null, null) { }  
         public AcceptedProcessAndConfig(IConfigPlugin config, Process process) { AcceptedPlugin = config; AcceptedProcess = process; }  
   
         #region IAcceptsProcess<Process> Members  
         public Process AcceptedProcess { get; set; }  
         #endregion  
         #region IAcceptsPlugin<IConfigPlugin> Members  
         public IConfigPlugin AcceptedPlugin { get; set; }  
87          #endregion          #endregion
88      }      }
89    
# Line 121  namespace RomCheater.PluginFramework.Int Line 102  namespace RomCheater.PluginFramework.Int
102          uint MemoryRangeSize { get; }          uint MemoryRangeSize { get; }
103      }      }
104      public interface IOutputsData<TData> { TData Data { get; } }      public interface IOutputsData<TData> { TData Data { get; } }
105      public interface ISearchInProgress { bool SearchInProgess { get; } }      public interface ISearchInProgress
106        {
107            bool SearchInProgess { get; }
108            Guid SearchGuid { get; }
109        }
110  }  }

Legend:
Removed from v.440  
changed lines
  Added in v.471

  ViewVC Help
Powered by ViewVC 1.1.22