Develop and Download Open Source Software

Browse Subversion Repository

Annotation of /ServerController.pas

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (hide 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 yamat0jp 1 unit ServerController;
2    
3     interface
4    
5     uses
6     SysUtils, Classes, IWServerControllerBase, IWBaseForm, HTTPApp,
7     // For OnNewSession Event
8 yamat0jp 2 UserSessionUnit, IWApplication, IWAppForm, IW.Browser.Browser;
9 yamat0jp 1
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 yamat0jp 2 IWInit, IWGlobal;
29 yamat0jp 1
30     function IWServerController: TIWServerController;
31     begin
32     Result := TIWServerController(GServerController);
33     end;
34    
35 yamat0jp 2
36    
37 yamat0jp 1 function UserSession: TIWUserSession;
38     begin
39     Result := TIWUserSession(WebApplication.Data);
40     end;
41    
42     procedure TIWServerController.IWServerControllerBaseNewSession(
43     ASession: TIWApplication);
44     begin
45 yamat0jp 2 ASession.Data := TIWUserSession.Create(nil, ASession);
46 yamat0jp 1 end;
47    
48    
49     initialization
50     TIWServerController.SetServerControllerClass;
51    
52     end.
53    

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26