Browse Subversion Repository
Contents of /ServerController.pas
Parent Directory
| Revision Log
Revision 2 -
( show annotations)
( download)
( as text)
Sat Dec 19 14:35:42 2015 UTC
(8 years, 3 months ago)
by yamat0jp
File MIME type: text/x-pascal
File size: 1016 byte(s)
IntraWebをバージョンアップしてから、コンパイルが可能になりました。お見苦しいところをお見せしていました。
まだまだ未完成です。
| 1 |
unit ServerController; |
| 2 |
|
| 3 |
interface |
| 4 |
|
| 5 |
uses |
| 6 |
SysUtils, Classes, IWServerControllerBase, IWBaseForm, HTTPApp, |
| 7 |
// For OnNewSession Event |
| 8 |
UserSessionUnit, IWApplication, IWAppForm, IW.Browser.Browser; |
| 9 |
|
| 10 |
type |
| 11 |
TIWServerController = class(TIWServerControllerBase) |
| 12 |
procedure IWServerControllerBaseNewSession(ASession: TIWApplication); |
| 13 |
|
| 14 |
private |
| 15 |
|
| 16 |
public |
| 17 |
end; |
| 18 |
|
| 19 |
|
| 20 |
function UserSession: TIWUserSession; |
| 21 |
function IWServerController: TIWServerController; |
| 22 |
|
| 23 |
implementation |
| 24 |
|
| 25 |
{$R *.dfm} |
| 26 |
|
| 27 |
uses |
| 28 |
IWInit, IWGlobal; |
| 29 |
|
| 30 |
function IWServerController: TIWServerController; |
| 31 |
begin |
| 32 |
Result := TIWServerController(GServerController); |
| 33 |
end; |
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
function UserSession: TIWUserSession; |
| 38 |
begin |
| 39 |
Result := TIWUserSession(WebApplication.Data); |
| 40 |
end; |
| 41 |
|
| 42 |
procedure TIWServerController.IWServerControllerBaseNewSession( |
| 43 |
ASession: TIWApplication); |
| 44 |
begin |
| 45 |
ASession.Data := TIWUserSession.Create(nil, ASession); |
| 46 |
end; |
| 47 |
|
| 48 |
|
| 49 |
initialization |
| 50 |
TIWServerController.SetServerControllerClass; |
| 51 |
|
| 52 |
end. |
| 53 |
|
|