Indy 9
|
TIdIPWatch = class(TIdComponent)
TIdIPWatch uses CurrentIP to determine online status, and will not establish a new connection using RAS or DUN.
property Active: Boolean;
property CurrentIP: string;
property HistoryEnabled: Boolean;
property HistoryFilename: string;
property IPHistoryList: TStringList;
IPHistoryList is updated in the methods CheckStatus and Destroy.
The IPHistoryList can contain a maximum number of entries identified in the MaxHistoryEntries property. When the the number of entries exceeds MaxHistoryEntries, the oldest IP address in the history list will be deleted.
property IsOnline: Boolean;
The default value for IsOnline is False.
property MaxHistoryEntries: Integer;
property OnStatusChanged: TNotifyEvent;
property PreviousIP: string;
property WatchInterval: Cardinal;
When WatchInterval is changed, the Interval property for the internal TIdIPWatchThread instance is updated to contain the same value.
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
function ForceCheck: Boolean;
procedure LoadHistory;
function LocalIP: string;
procedure SaveHistory;