Line | |
---|
1 | unit UWebPage;
|
---|
2 |
|
---|
3 | {$mode objfpc}{$H+}
|
---|
4 |
|
---|
5 | interface
|
---|
6 |
|
---|
7 | uses
|
---|
8 | Classes, SysUtils, UHTTPServer, Controls;
|
---|
9 |
|
---|
10 | type
|
---|
11 | TOnProduceEvent = procedure(HandlerData: THTTPHandlerData) of object;
|
---|
12 |
|
---|
13 |
|
---|
14 | { TWebPage }
|
---|
15 |
|
---|
16 | TWebPage = class(TDataModule)
|
---|
17 | private
|
---|
18 | FCaption: string;
|
---|
19 | FOnProduce: TOnProduceEvent;
|
---|
20 | published
|
---|
21 | property Caption: string read FCaption write FCaption;
|
---|
22 | property OnProduce: TOnProduceEvent read FOnProduce write FOnProduce;
|
---|
23 | end;
|
---|
24 |
|
---|
25 |
|
---|
26 | TWebPageClass = class of TWebPage;
|
---|
27 |
|
---|
28 | procedure Register;
|
---|
29 |
|
---|
30 |
|
---|
31 | implementation
|
---|
32 |
|
---|
33 | procedure Register;
|
---|
34 | begin
|
---|
35 | RegisterNoIcon([TWebPage]);
|
---|
36 | end;
|
---|
37 |
|
---|
38 | end.
|
---|
39 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.