Changeset 6 for trunk/USource.pas
- Timestamp:
- Feb 4, 2011, 9:45:01 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/USource.pas
r5 r6 15 15 16 16 TSource = class 17 private 18 function GetDownloaded: Boolean; 19 public 17 20 Id: Integer; 18 21 ProjectName: string; … … 24 27 SourceType: TSourceType; 25 28 ExecutableFile: string; 29 property Downloaded: Boolean read GetDownloaded; 26 30 procedure Assign(Source: TSource); 27 31 procedure Download; … … 30 34 function GetExecutableFile: string; 31 35 function GetPath: string; 36 function GetName: string; 32 37 end; 33 38 … … 45 50 46 51 { TSource } 52 53 function TSource.GetDownloaded: Boolean; 54 begin 55 Result := DirectoryExistsUTF8(GetPath); 56 end; 47 57 48 58 procedure TSource.Assign(Source: TSource); … … 94 104 Result := ExtractFileDir(Application.ExeName) + DirectorySeparator + 95 105 MainForm.SourceDir + DirectorySeparator + IntToStr(Id); 106 end; 107 108 function TSource.GetName: string; 109 begin 110 Result := ProjectShortName + ' ' + VersionNumber + 111 ' (' + VersionType + ')'; 96 112 end; 97 113
Note:
See TracChangeset
for help on using the changeset viewer.