source: trunk/Packages/ModularSystem/Demo/UModuleACL.pas

Last change on this file was 5, checked in by chronos, 12 years ago
  • Added: Required packages.
File size: 1.1 KB
Line 
1unit UModuleACL;
2
3{$mode objfpc}{$H+}
4
5interface
6
7uses
8 Classes, SysUtils, UModularSystem;
9
10type
11 { TModuleACL }
12
13 TModuleACL = class(TModule)
14 protected
15 procedure DoInstall; override;
16 procedure DoStart; override;
17 procedure DoStop; override;
18 procedure DoUninstall; override;
19 public
20 constructor Create(AOwner: TComponent); override;
21 destructor Destroy; override;
22 end;
23
24
25implementation
26
27uses
28 UMainForm;
29
30{ TModuleACL }
31
32procedure TModuleACL.DoStart;
33begin
34 MainForm.Log(Identification + ' started');
35end;
36
37procedure TModuleACL.DoStop;
38begin
39 MainForm.Log(Identification + ' stopped');
40end;
41
42procedure TModuleACL.DoInstall;
43begin
44 MainForm.Log(Identification + ' installed');
45end;
46
47procedure TModuleACL.DoUninstall;
48begin
49 MainForm.Log(Identification + ' uninstalled');
50end;
51
52constructor TModuleACL.Create(AOwner: TComponent);
53begin
54 inherited;
55 Identification := 'UserACL';
56 Title := 'User ACL';
57 Version := '1.0';
58 License := 'GNU/LGPLv3';
59 Dependencies.Add('User');
60end;
61
62destructor TModuleACL.Destroy;
63begin
64 inherited Destroy;
65end;
66
67end.
68
Note: See TracBrowser for help on using the repository browser.