Changeset 254 for Network/CoolWeb
- Timestamp:
- Jul 20, 2011, 10:25:27 PM (13 years ago)
- Location:
- Network/CoolWeb
- Files:
-
- 4 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
Network/CoolWeb/CoolWeb.lpk
r250 r254 1 1 <?xml version="1.0"?> 2 2 <CONFIG> 3 <Package Version=" 3">3 <Package Version="4"> 4 4 <Name Value="CoolWeb"/> 5 <AddToProjectUsesSection Value="True"/> 5 6 <Author Value="Chronos (robie@centrum.cz)"/> 6 7 <CompilerOptions> … … 20 21 <License Value="GNU/GPL"/> 21 22 <Version Minor="2"/> 22 <Files Count="1 6">23 <Files Count="18"> 23 24 <Item1> 24 25 <Filename Value="WebServer/UHTTPServer.pas"/> … … 88 89 <Item16> 89 90 <Filename Value="WebServer/UWebPage.pas"/> 91 <HasRegisterProc Value="True"/> 90 92 <UnitName Value="UWebPage"/> 91 93 </Item16> 94 <Item17> 95 <Filename Value="WebServer/UWebApp.pas"/> 96 <HasRegisterProc Value="True"/> 97 <UnitName Value="UWebApp"/> 98 </Item17> 99 <Item18> 100 <Filename Value="LazIDEReg.pas"/> 101 <HasRegisterProc Value="True"/> 102 <UnitName Value="LazIDEReg"/> 103 </Item18> 92 104 </Files> 93 105 <Type Value="RunAndDesignTime"/> 94 <RequiredPkgs Count=" 4">106 <RequiredPkgs Count="7"> 95 107 <Item1> 96 <PackageName Value=" Common"/>108 <PackageName Value="LCL"/> 97 109 </Item1> 98 110 <Item2> 111 <PackageName Value="IDEIntf"/> 112 </Item2> 113 <Item3> 114 <PackageName Value="LCL"/> 115 </Item3> 116 <Item4> 117 <PackageName Value="Common"/> 118 </Item4> 119 <Item5> 99 120 <PackageName Value="TemplateGenerics"/> 100 121 <MaxVersion Minor="3" Valid="True"/> 101 122 <MinVersion Minor="3" Valid="True"/> 102 </Item 2>103 <Item 3>123 </Item5> 124 <Item6> 104 125 <PackageName Value="synapse"/> 105 </Item 3>106 <Item 4>126 </Item6> 127 <Item7> 107 128 <PackageName Value="FCL"/> 108 129 <MinVersion Major="1" Valid="True"/> 109 </Item 4>130 </Item7> 110 131 </RequiredPkgs> 111 132 <UsageOptions> -
Network/CoolWeb/CoolWeb.pas
r250 r254 11 11 UHTTPSessionMySQL, USqlDatabase, UTCPServer, UPageList, UUser, UHtmlClasses, 12 12 UMemoryStreamEx, UMIMEType, UPool, UResetableThread, UXmlClasses, UWebPage, 13 LazarusPackageIntf;13 UWebApp, LazIDEReg, LazarusPackageIntf; 14 14 15 15 implementation … … 22 22 RegisterUnit('UHTTPSessionMySQL', @UHTTPSessionMySQL.Register); 23 23 RegisterUnit('USqlDatabase', @USqlDatabase.Register); 24 RegisterUnit('UWebPage', @UWebPage.Register); 25 RegisterUnit('UWebApp', @UWebApp.Register); 26 RegisterUnit('LazIDEReg', @LazIDEReg.Register); 24 27 end; 25 28 -
Network/CoolWeb/WebServer/UWebPage.pas
r237 r254 6 6 7 7 uses 8 Classes, SysUtils ;8 Classes, SysUtils, UHTTPServer, Controls; 9 9 10 10 type 11 TOnProduceEvent = procedure of object;11 TOnProduceEvent = procedure(HandlerData: THTTPHandlerData) of object; 12 12 13 13 { TWebPage } 14 14 15 TWebPage = class(T Component)15 TWebPage = class(TDataModule) 16 16 private 17 FCaption: string; 17 18 FOnProduce: TOnProduceEvent; 18 19 published 20 property Caption: string read FCaption write FCaption; 19 21 property OnProduce: TOnProduceEvent read FOnProduce write FOnProduce; 20 22 end; 21 23 24 25 TWebPageClass = class of TWebPage; 26 27 procedure Register; 28 29 22 30 implementation 31 32 procedure Register; 33 begin 34 RegisterNoIcon([TWebPage]); 35 end; 23 36 24 37 end.
Note:
See TracChangeset
for help on using the changeset viewer.