Ignore:
Timestamp:
Apr 30, 2011, 10:56:05 PM (14 years ago)
Author:
george
Message:
  • Added: MainModule component of non visual type TDataModule. Now THTTPServer and session systems are components.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Pages/UMainPage.pas

    r48 r50  
    66
    77uses
    8   Classes, SysUtils, USqlDatabase, UCore, UCustomApplication, UHtmlClasses,
     8  Classes, SysUtils, USqlDatabase, UCore, UMainModule, UHtmlClasses,
    99  UHTTPServer, UWebObjects;
    1010
    11 procedure Links(App: TCustomApplication; HandlerData: THTTPHandlerData);
    12 procedure History(App: TCustomApplication; HandlerData: THTTPHandlerData);
    13 procedure Internet(App: TCustomApplication; HandlerData: THTTPHandlerData);
    14 procedure VoIP(App: TCustomApplication; HandlerData: THTTPHandlerData);
    15 procedure Hosting(App: TCustomApplication; HandlerData: THTTPHandlerData);
    16 procedure About(App: TCustomApplication; HandlerData: THTTPHandlerData);
    17 procedure Documents(App: TCustomApplication; HandlerData: THTTPHandlerData);
    18 procedure Contact(App: TCustomApplication; HandlerData: THTTPHandlerData);
    19 procedure ServerInfo(App: TCustomApplication; HandlerData: THTTPHandlerData);
    20 procedure WebCam(App: TCustomApplication; HandlerData: THTTPHandlerData);
    21 procedure UserControl(App: TCustomApplication; HandlerData: THTTPHandlerData);
    22 procedure Plans(App: TCustomApplication; HandlerData: THTTPHandlerData);
    23 procedure Network(App: TCustomApplication; HandlerData: THTTPHandlerData);
     11procedure Links(App: TMainModule; HandlerData: THTTPHandlerData);
     12procedure History(App: TMainModule; HandlerData: THTTPHandlerData);
     13procedure Internet(App: TMainModule; HandlerData: THTTPHandlerData);
     14procedure VoIP(App: TMainModule; HandlerData: THTTPHandlerData);
     15procedure Hosting(App: TMainModule; HandlerData: THTTPHandlerData);
     16procedure About(App: TMainModule; HandlerData: THTTPHandlerData);
     17procedure Documents(App: TMainModule; HandlerData: THTTPHandlerData);
     18procedure Contact(App: TMainModule; HandlerData: THTTPHandlerData);
     19procedure ServerInfo(App: TMainModule; HandlerData: THTTPHandlerData);
     20procedure WebCam(App: TMainModule; HandlerData: THTTPHandlerData);
     21procedure UserControl(App: TMainModule; HandlerData: THTTPHandlerData);
     22procedure Plans(App: TMainModule; HandlerData: THTTPHandlerData);
     23procedure Network(App: TMainModule; HandlerData: THTTPHandlerData);
     24
    2425
    2526implementation
    2627
    27 procedure Links(App: TCustomApplication; HandlerData: THTTPHandlerData);
     28procedure Links(App: TMainModule; HandlerData: THTTPHandlerData);
    2829begin
    2930  App.HtmlDocument.Title := 'Odkazy';
     
    6162end;
    6263
    63 procedure History(App: TCustomApplication; HandlerData: THTTPHandlerData);
     64procedure History(App: TMainModule; HandlerData: THTTPHandlerData);
    6465var
    6566  DbRows: TDbRows;
     
    8788end;
    8889
    89 procedure Plans(App: TCustomApplication; HandlerData: THTTPHandlerData);
     90procedure Plans(App: TMainModule; HandlerData: THTTPHandlerData);
    9091var
    9192  DbRows: TDbRows;
     
    124125end;
    125126
    126 procedure Internet(App: TCustomApplication; HandlerData: THTTPHandlerData);
     127procedure Internet(App: TMainModule; HandlerData: THTTPHandlerData);
    127128begin
    128129  with App do begin
     
    150151end;
    151152
    152 procedure WebCam(App: TCustomApplication; HandlerData: THTTPHandlerData);
     153procedure WebCam(App: TMainModule; HandlerData: THTTPHandlerData);
    153154const
    154155  WebCamImage = 'images/webcam/webcam.jpg';
     
    196197end;
    197198
    198 procedure VoIP(App: TCustomApplication; HandlerData: THTTPHandlerData);
     199procedure VoIP(App: TMainModule; HandlerData: THTTPHandlerData);
    199200begin
    200201  with App do begin
     
    230231end;
    231232
    232 procedure Hosting(App: TCustomApplication; HandlerData: THTTPHandlerData);
     233procedure Hosting(App: TMainModule; HandlerData: THTTPHandlerData);
    233234var
    234235  I: Integer;
     
    294295end;
    295296
    296 procedure Network(App: TCustomApplication; HandlerData: THTTPHandlerData);
     297procedure Network(App: TMainModule; HandlerData: THTTPHandlerData);
    297298var
    298299  TextBlock: THtmlString;
     
    309310end;
    310311
    311 procedure About(App: TCustomApplication; HandlerData: THTTPHandlerData);
     312procedure About(App: TMainModule; HandlerData: THTTPHandlerData);
    312313var
    313314  TextBlock: THtmlString;
     
    361362end;
    362363
    363 procedure Documents(App: TCustomApplication; HandlerData: THTTPHandlerData);
     364procedure Documents(App: TMainModule; HandlerData: THTTPHandlerData);
    364365begin
    365366  with App do begin
     
    385386end;
    386387
    387 procedure Contact(App: TCustomApplication; HandlerData: THTTPHandlerData);
     388procedure Contact(App: TMainModule; HandlerData: THTTPHandlerData);
    388389begin
    389390  App.HtmlDocument.Title := 'Kontakt';
     
    403404end;
    404405
    405 procedure UserControl(App: TCustomApplication; HandlerData: THTTPHandlerData);
     406procedure UserControl(App: TMainModule; HandlerData: THTTPHandlerData);
    406407var
    407408  PageName: string;
     
    440441
    441442
    442 procedure ServerInfo(App: TCustomApplication; HandlerData: THTTPHandlerData);
     443procedure ServerInfo(App: TMainModule; HandlerData: THTTPHandlerData);
    443444begin
    444445  HandlerData.Session.Values['Test'] := 'Tst';
    445   App.HTTPServer.ServerInfo(HandlerData);
     446  MainModule.HTTPServer.ServerInfo(HandlerData);
    446447end;
    447448
Note: See TracChangeset for help on using the changeset viewer.