Changeset 19 for trunk/UDriveScan.pas


Ignore:
Timestamp:
Apr 2, 2016, 10:01:11 PM (8 years ago)
Author:
chronos
Message:
  • Modified: Parameters for next scan operation is not stored separatelly from scans itself. So changing parameters will not affect current selected scan item.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UDriveScan.pas

    r18 r19  
    2525    procedure Execute; override;
    2626    property OnException: TExceptionEvent read FOnException write FOnException;
     27  end;
     28
     29  TDriveScanProfile = class
     30    SectorCount: Integer;
     31    SectorStart: Integer;
     32    SectorEnd: Integer;
     33    Mode: TRunMode;
     34    WritePattern: Byte;
    2735  end;
    2836
     
    6169    procedure Start;
    6270    procedure Stop;
     71    procedure LoadProfile(Profile: TDriveScanProfile);
    6372    constructor Create;
    6473    destructor Destroy; override;
     
    253262end;
    254263
     264procedure TDriveScan.LoadProfile(Profile: TDriveScanProfile);
     265begin
     266  SectorStart := Profile.SectorStart;
     267  SectorEnd := Profile.SectorEnd;
     268  Mode := Profile.Mode;
     269  WritePattern := Profile.WritePattern;
     270end;
     271
    255272constructor TDriveScan.Create;
    256273begin
Note: See TracChangeset for help on using the changeset viewer.