Ignore:
Timestamp:
May 7, 2015, 12:34:29 PM (9 years ago)
Author:
healthsevak
Message:

Updating the working copy to CPRS version 28

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cprs/trunk/CPRS-Chart/uInit.pas

    r830 r1679  
    2222function TimedOut: boolean;
    2323procedure ShutDownTimeOut;
     24procedure SuspendTimeout;
     25procedure ResumeTimeout;
    2426
    2527implementation
     
    4446  timTimeout: TCPRSTimeoutTimer = nil;
    4547  FTimedOut: boolean = FALSE;
     48  uSuspended: boolean = False;
    4649
    4750function TimeoutKeyHook(Code: Integer; wParam: WPARAM; lParam: LPARAM): LRESULT; StdCall; forward;
     
    150153end;
    151154
    152 
    153155{ TCPRSTimeoutTime }
    154156
     
    164166{ when the timer expires, the application is closed after warning the user }
    165167begin
     168  if uSuspended then
     169  begin
     170    ResetTimeout;
     171    exit;
     172  end;
    166173  Enabled := False;
    167174  if(assigned(FUserCondition)) then
     
    177184end;
    178185
     186procedure SuspendTimeout;
     187begin
     188  uSuspended := True;
     189end;
     190
     191procedure ResumeTimeout;
     192begin
     193  if assigned(timTimeout) then
     194    timTimeout.ResetTimeout;
     195  uSuspended := False;
     196end;
     197
    179198initialization
    180199
Note: See TracChangeset for help on using the changeset viewer.