Ignore:
Timestamp:
Jun 21, 2007, 12:24:04 AM (18 years ago)
Author:
alloc
Message:
 
Location:
oup/current/FileClasses
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • oup/current/FileClasses/_Extensions.pas

    r229 r231  
    22
    33interface
     4
     5uses
     6  _FileTypes;
    47
    58type
  • oup/current/FileClasses/_FileTypes.pas

    r216 r231  
    1111    protected
    1212      FConnectionID: Integer;
    13       FFileID: Integer;
    14       FFileName: String;
    15       FFileExt: String;
    16       FFileSize: Integer;
     13      FFileInfo: TFileInfo;
    1714      FFileStream: TMemoryStream;
    1815
     
    4542
    4643      property FileStream: TMemoryStream read FFileStream;
    47       property FileID: Integer read FFileID;
    48       property FileName: String read FFileName;
    49       property FileExt: String read FFileExt;
    50       property FileSize: Integer read FFileSize;
     44      property FileInfo: TFileInfo read FFileInfo;
    5145      property ConnectionID: Integer read FConnectionID;
    5246
     
    8478
    8579constructor TFile.Create(ConnectionID, FileID: Integer);
    86 var
    87   fileinfo: TFileInfo;
    8880begin
    8981  FConnectionID := ConnectionID;
    90   FFileID := FileID;
    91   fileinfo := ConManager.Connection[ConnectionID].GetFileInfo(FileID);
    92   FFileName := fileinfo.Name;
    93   FFileExt := fileinfo.Extension;
    94   FFileSize := fileinfo.Size;
     82  FFileInfo := ConManager.Connection[ConnectionID].GetFileInfo(FileID);
    9583
    9684  FCached := False;
     
    235223procedure TFile.InitDatLinks;
    236224begin
    237   FDatLinks := ConManager.Connection[FConnectionID].GetDatLinks(FFileID);
     225  FDatLinks := ConManager.Connection[FConnectionID].GetDatLinks(FFileInfo.ID);
    238226end;
    239227
     
    245233procedure TFile.InitRawList;
    246234begin
    247   FRawParts := ConManager.Connection[FConnectionID].GetRawList(FFileID);
     235  FRawParts := ConManager.Connection[FConnectionID].GetRawList(FFileInfo.ID);
    248236end;
    249237
Note: See TracChangeset for help on using the changeset viewer.