ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/public/ibx/trunk/runtime/nongui/IBInternals.pas
Revision: 402
Committed: Mon Aug 1 10:07:24 2022 UTC (2 years, 3 months ago) by tony
Content type: text/x-pascal
File size: 3641 byte(s)
Log Message:
IBX Release 2.5.0

File Contents

# User Rev Content
1 tony 328 (*
2     * IBX For Lazarus (Firebird Express)
3     *
4     * The contents of this file are subject to the Initial Developer's
5     * Public License Version 1.0 (the "License"); you may not use this
6     * file except in compliance with the License. You may obtain a copy
7     * of the License here:
8     *
9     * http://www.firebirdsql.org/index.php?op=doc&id=idpl
10     *
11     * Software distributed under the License is distributed on an "AS
12     * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
13     * implied. See the License for the specific language governing rights
14     * and limitations under the License.
15     *
16     * The Initial Developer of the Original Code is Tony Whyman.
17     *
18     * The Original Code is (C) 2015-2020 Tony Whyman, MWA Software
19     * (http://www.mwasoftware.co.uk).
20     *
21     * All Rights Reserved.
22     *
23     * Contributor(s): ______________________________________.
24     *
25     *)
26     unit IBInternals;
27    
28     {$mode objfpc}{$H+}
29    
30     {Interfaces used internally and not normally made visible to users}
31    
32     interface
33    
34     uses
35     Classes, SysUtils, DB;
36    
37     type
38     TTraceControlFlag = (tfQPrepare, tfQExecute, tfQFetch, tfError, tfStmt, tfConnect,
39     tfTransact, tfBlob, tfService, tfMisc, tfDisabled);
40     TTraceFlag = tfQPrepare..tfMisc;
41     TTraceFlags = set of TTraceFlag;
42    
43     { TIBXMonitoredComponent }
44    
45     TIBXMonitoredComponent = class(TComponent)
46     private
47     FTraceFlags: TTraceFlags;
48     public
49     constructor Create(aOwner: TComponent); override;
50     property TraceFlags: TTraceFlags read FTraceFlags write FTraceFlags;
51     end;
52    
53     TIBMonitoredService = class(TIBXMonitoredComponent);
54     TIBXMonitoredService = class(TIBXMonitoredComponent);
55    
56     { TIBXMonitoredConnection }
57    
58     TIBXMonitoredConnection = class(TCustomConnection)
59     private
60     FTraceFlags: TTraceFlags;
61     public
62     constructor Create(aOwner: TComponent); override;
63     property TraceFlags: TTraceFlags read FTraceFlags write FTraceFlags;
64     end;
65    
66    
67     IIBTimerInf = interface
68     function GetEnabled: boolean;
69     procedure SetEnabled(Value: Boolean);
70     function GetInterval: Cardinal;
71     procedure SetInterval(Value: Cardinal);
72     function GetOnTimer: TNotifyEvent;
73     procedure SetOnTimer(Value: TNotifyEvent);
74     function GetOnStartTimer: TNotifyEvent;
75     procedure SetOnStartTimer(Value: TNotifyEvent);
76     function GetOnStopTimer: TNotifyEvent;
77     procedure SetOnStopTimer(Value: TNotifyEvent);
78     property Enabled: Boolean read GetEnabled write SetEnabled;
79     property Interval: Cardinal read GetInterval write SetInterval;
80     property OnTimer: TNotifyEvent read GetOnTimer write SetOnTimer;
81     property OnStartTimer: TNotifyEvent read GetOnStartTimer write SetOnStartTimer;
82     property OnStopTimer: TNotifyEvent read GetOnStopTimer write SetOnStopTimer;
83     end;
84    
85 tony 402 TIBDataEvent = procedure (Data: PtrInt) of object;
86    
87 tony 328 IIBGUIInterface = interface
88     function ServerLoginDialog(var AServerName: string;
89     var AUserName, APassword: string): Boolean;
90     function LoginDialogEx(var ADatabaseName: string;
91     var AUserName, APassword: string;
92     NameReadOnly: Boolean): Boolean;
93     procedure SetCursor;
94     procedure RestoreCursor;
95     function CreateTimer: IIBTimerInf;
96 tony 402 procedure QueueAsyncCall(const AMethod: TIBDataEvent; Data: PtrInt);
97 tony 328 end;
98    
99     const IBGUIInterface : IIBGUIInterface = nil;
100    
101     implementation
102    
103     { TIBXMonitoredComponent }
104    
105     constructor TIBXMonitoredComponent.Create(aOwner: TComponent);
106     begin
107     inherited Create(aOwner);
108     FTraceFlags := [];
109     end;
110    
111     { TIBXMonitoredConnection }
112    
113     constructor TIBXMonitoredConnection.Create(aOwner: TComponent);
114     begin
115     inherited Create(aOwner);
116     FTraceFlags := [];
117     end;
118    
119     end.
120    

Properties

Name Value
svn:eol-style native