source: trunk/Units/UBackend.pas

Last change on this file was 13, checked in by chronos, 9 years ago
  • Added: New test form where general functionality of selected backend can be tested.
  • Added: Basic git backend implementation.
  • Added: Project group form and ability to open/save group of projects as configuration to XML file.
File size: 681 bytes
Line 
1unit UBackend;
2
3{$mode delphi}
4
5interface
6
7uses
8 Classes, SysUtils, UVCS;
9
10type
11 TWorkingCopyClass = class of TWorkingCopy;
12 TRepositoryClass = class of TRepository;
13
14 { TBackend }
15
16 TBackend = class
17 Name: string;
18 HomePage: string;
19 WorkingCopyClass: TWorkingCopyClass;
20 RepositoryClass: TRepositoryClass;
21 function IsRepository(Directory: string): Boolean; virtual;
22 function IsWorkingCopy(Directory: string): Boolean; virtual;
23 end;
24
25implementation
26
27{ TBackend }
28
29function TBackend.IsRepository(Directory: string): Boolean;
30begin
31 Result := False;
32end;
33
34function TBackend.IsWorkingCopy(Directory: string): Boolean;
35begin
36 Result := False;
37end;
38
39end.
40
Note: See TracBrowser for help on using the repository browser.