Line | |
---|
1 | unit Backend;
|
---|
2 |
|
---|
3 | interface
|
---|
4 |
|
---|
5 | uses
|
---|
6 | Classes, SysUtils, VCS, Generics.Collections;
|
---|
7 |
|
---|
8 | type
|
---|
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 |
|
---|
27 | implementation
|
---|
28 |
|
---|
29 | { TBackend }
|
---|
30 |
|
---|
31 | function TBackend.IsRepository(Directory: string): Boolean;
|
---|
32 | begin
|
---|
33 | Result := False;
|
---|
34 | end;
|
---|
35 |
|
---|
36 | function TBackend.IsWorkingCopy(Directory: string): Boolean;
|
---|
37 | begin
|
---|
38 | Result := False;
|
---|
39 | end;
|
---|
40 |
|
---|
41 | end.
|
---|
42 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.