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

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