source: trunk/Packages/ModularSystem/Demo/UModuleUser.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 UModuleUser;
2
3{$mode objfpc}{$H+}
4
5interface
6
7uses
8 Classes, SysUtils, UModularSystem;
9
10type
11
12 { TModuleUser }
13
14 TModuleUser = class(TModule)
15 protected
16 procedure DoInstall; override;
17 procedure DoStart; override;
18 procedure DoStop; override;
19 procedure DoUninstall; override;
20 public
21 constructor Create(AOwner: TComponent); override;
22 destructor Destroy; override;
23 end;
24
25implementation
26
27uses
28 UMainForm;
29
30{ TModuleUser }
31
32procedure TModuleUser.DoStart;
33begin
34 MainForm.Log(Identification + ' started');
35end;
36
37procedure TModuleUser.DoStop;
38begin
39 MainForm.Log(Identification + ' stopped');
40end;
41
42procedure TModuleUser.DoInstall;
43begin
44 MainForm.Log(Identification + ' installed');
45end;
46
47procedure TModuleUser.DoUninstall;
48begin
49 MainForm.Log(Identification + ' uninstalled');
50end;
51
52constructor TModuleUser.Create(AOwner: TComponent);
53begin
54 inherited;
55 Identification := 'User';
56 Title := 'User';
57 Version := '1.0';
58 License := 'GNU/LGPLv3';
59 Dependencies.Add('Base');
60end;
61
62destructor TModuleUser.Destroy;
63begin
64 inherited Destroy;
65end;
66
67end.
68
Note: See TracBrowser for help on using the repository browser.