Browse Source

* Filter on events

git-svn-id: trunk@17529 -
michael 14 years ago
parent
commit
a6e8ae39d2
1 changed files with 5 additions and 0 deletions
  1. 5 0
      packages/fcl-base/src/custapp.pp

+ 5 - 0
packages/fcl-base/src/custapp.pp

@@ -22,9 +22,13 @@ uses SysUtils,Classes;
 
 
 Type
 Type
   TExceptionEvent = Procedure (Sender : TObject; E : Exception) Of Object;
   TExceptionEvent = Procedure (Sender : TObject; E : Exception) Of Object;
+  TEventLogTypes = Set of TEventType;
+
+  { TCustomApplication }
 
 
   TCustomApplication = Class(TComponent)
   TCustomApplication = Class(TComponent)
   Private
   Private
+    FEventLogFilter: TEventLogTypes;
     FOnException: TExceptionEvent;
     FOnException: TExceptionEvent;
     FTerminated : Boolean;
     FTerminated : Boolean;
     FHelpFile,
     FHelpFile,
@@ -79,6 +83,7 @@ Type
     Property OptionChar : Char Read FoptionChar Write FOptionChar;
     Property OptionChar : Char Read FoptionChar Write FOptionChar;
     Property CaseSensitiveOptions : Boolean Read FCaseSensitiveOptions Write FCaseSensitiveOptions;
     Property CaseSensitiveOptions : Boolean Read FCaseSensitiveOptions Write FCaseSensitiveOptions;
     Property StopOnException : Boolean Read FStopOnException Write FStopOnException;
     Property StopOnException : Boolean Read FStopOnException Write FStopOnException;
+    Property EventLogFilter : TEventLogTypes Read FEventLogFilter Write FEventLogFilter;
   end;
   end;
 
 
 var CustomApplication : TCustomApplication = nil;
 var CustomApplication : TCustomApplication = nil;