/[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 378 by william, Tue Jun 19 07:56:36 2012 UTC revision 399 by william, Wed Jun 20 13:24:49 2012 UTC
# Line 4  using System.Linq; Line 4  using System.Linq;
4  using System.Text;  using System.Text;
5  using System.Diagnostics;  using System.Diagnostics;
6  using RomCheater.PluginFramework.Core;  using RomCheater.PluginFramework.Core;
7    using RomCheater.PluginFramework.Events;
8    
9  namespace RomCheater.PluginFramework.Interfaces  namespace RomCheater.PluginFramework.Interfaces
10  {  {
11      #region IPluginBase        #region IPluginBase
12      public interface IPluginBase : IPluginName, IPluginDescription, IPluginID, IToString, IPluginRefresh { }      public interface IPluginBase : IPluginName, IPluginDescription, IPluginID, IToString, IPluginRefresh { }
13      #region IPluginBase SubMembers      #region IPluginBase SubMembers
14      public interface IToString { string ToString();    }      public interface IToString { string ToString();    }
# Line 18  namespace RomCheater.PluginFramework.Int Line 19  namespace RomCheater.PluginFramework.Int
19      #endregion      #endregion
20      #endregion      #endregion
21      #region IConfigPlugin      #region IConfigPlugin
22      public interface IConfigPlugin : IPluginBase      public interface IConfigPlugin : IPluginBase, IAcceptsReadOnlyMemoryRange, ISearchInProgress, IAcceptsMemorySearch
23      {      {
24          List<ProcContainer> ValidProcessesForPlugin { get; }          List<ProcContainer> ValidProcessesForPlugin { get; }
25      }      }
# Line 65  namespace RomCheater.PluginFramework.Int Line 66  namespace RomCheater.PluginFramework.Int
66      #endregion      #endregion
67      public interface IAcceptsProcessAndConfig<TProcess> : IAcceptsConfig, IAcceptsProcess<TProcess> where TProcess : Process { }      public interface IAcceptsProcessAndConfig<TProcess> : IAcceptsConfig, IAcceptsProcess<TProcess> where TProcess : Process { }
68      public interface IAcceptsProcessAndConfig : IAcceptsProcess, IAcceptsConfig { }      public interface IAcceptsProcessAndConfig : IAcceptsProcess, IAcceptsConfig { }
69    
70        public class AcceptedProcessAndConfig<TProcess> : IAcceptsProcessAndConfig<TProcess> where TProcess : Process
71        {
72            public AcceptedProcessAndConfig() : this(null, default(TProcess)) { }
73            public AcceptedProcessAndConfig(IConfigPlugin config, TProcess process) { AcceptedPlugin = config; AcceptedProcess = process; }
74            #region IAcceptsProcessAndConfig<TProcess> members
75            #endregion
76    
77            #region IAcceptsPlugin<IConfigPlugin> Members
78            public IConfigPlugin AcceptedPlugin { get; set; }
79            #endregion
80    
81            #region IAcceptsProcess<TProcess> Members
82            public TProcess AcceptedProcess { get; set; }
83            #endregion
84        }
85        public class AcceptedProcessAndConfig : IAcceptsProcessAndConfig
86        {
87            public AcceptedProcessAndConfig() : this(null, null) { }
88            public AcceptedProcessAndConfig(IConfigPlugin config, Process process) { AcceptedPlugin = config; AcceptedProcess = process; }
89    
90            #region IAcceptsProcess<Process> Members
91            public Process AcceptedProcess { get; set; }
92            #endregion
93            #region IAcceptsPlugin<IConfigPlugin> Members
94            public IConfigPlugin AcceptedPlugin { get; set; }
95            #endregion
96        }
97    
98      public interface IAcceptsProcessPID      public interface IAcceptsProcessPID
99      {      {
100          int ProcessPID { get; set; }          int ProcessPID { get; set; }
# Line 74  namespace RomCheater.PluginFramework.Int Line 104  namespace RomCheater.PluginFramework.Int
104          uint MemoryRangeStart { get; set; }          uint MemoryRangeStart { get; set; }
105          uint MemoryRangeSize { get; set; }          uint MemoryRangeSize { get; set; }
106      }      }
107        public interface IAcceptsReadOnlyMemoryRange
108        {
109            uint MemoryRangeStart { get; }
110            uint MemoryRangeSize { get; }
111        }
112      public interface IOutputsData<TData> { TData Data { get; } }      public interface IOutputsData<TData> { TData Data { get; } }
113      public interface ISearchInProgress { bool SearchInProgess { get; } }      public interface ISearchInProgress { bool SearchInProgess { get; } }
114  }  }

Legend:
Removed from v.378  
changed lines
  Added in v.399

  ViewVC Help
Powered by ViewVC 1.1.22