source: trunk/Units/Backend.pas

Last change on this file was 24, checked in by chronos, 12 days ago
  • Fixed: Test cases executed with FormTests form from Common package.
File size: 731 bytes
Line 
1unit Backend;
2
3interface
4
5uses
6 Classes, SysUtils, VCS, Generics.Collections;
7
8type
9 TWorkingCopyClass = class of TWorkingCopy;
10 TRepositoryClass = class of TRepository;
11
12 { TBackend }
13
14 TBackend = class
15 Name: string;
16 HomePage: string;
17 WorkingCopyClass: TWorkingCopyClass;
18 RepositoryClass: TRepositoryClass;
19 function IsRepository(Directory: string): Boolean; virtual;
20 function IsWorkingCopy(Directory: string): Boolean; virtual;
21 end;
22
23 TBackends = class(TList<TBackend>)
24 end;
25
26
27implementation
28
29{ TBackend }
30
31function TBackend.IsRepository(Directory: string): Boolean;
32begin
33 Result := False;
34end;
35
36function TBackend.IsWorkingCopy(Directory: string): Boolean;
37begin
38 Result := False;
39end;
40
41end.
42
Note: See TracBrowser for help on using the repository browser.