// Borland C++ Builder
// Copyright (c) 1995, 1998 by Borland International
// All rights reserved

// (DO NOT EDIT: machine generated header) 'AHMTTimeTrigger.pas' rev: 3.00

#ifndef AHMTTimeTriggerHPP
#define AHMTTimeTriggerHPP
#include <ExtCtrls.hpp>
#include <AHMSystemClass.hpp>
#include <Classes.hpp>
#include <Windows.hpp>
#include <SysUtils.hpp>
#include <SysInit.hpp>
#include <System.hpp>

//-- user supplied -----------------------------------------------------------

namespace Ahmttimetrigger
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TAHMTimeTrigger;
class PASCALIMPLEMENTATION TAHMTimeTrigger : public Ahmsystemclass::TAHMSystemsComponent 
{
	typedef Ahmsystemclass::TAHMSystemsComponent inherited;
	
private:
	Extctrls::TTimer* FCurrentTimer;
	System::AnsiString FCurrentTime;
	System::AnsiString FTriggerTime;
	System::AnsiString FCurrentDate;
	System::AnsiString FTriggerDate;
	Classes::TNotifyEvent FOnTrigger;
	Classes::TNotifyEvent FOnNewTime;
	Classes::TNotifyEvent FOnNewDate;
	System::AnsiString FOldTime;
	System::AnsiString FOldDate;
	bool FCheckForTrigger;
	void __fastcall SetCurrentTime(System::AnsiString Value);
	void __fastcall SetTriggerTime(System::AnsiString Value);
	void __fastcall SetCurrentDate(System::AnsiString Value);
	void __fastcall SetTriggerDate(System::AnsiString Value);
	void __fastcall SetCheckForTrigger(bool Value);
	
protected:
	void __fastcall TimerCheckForTrigger(System::TObject* Sender);
	
public:
	__fastcall virtual TAHMTimeTrigger(Classes::TComponent* AOwner);
	__fastcall virtual ~TAHMTimeTrigger(void);
	
__published:
	__property System::AnsiString CurrentTime = {read=FCurrentTime, write=SetCurrentTime};
	__property System::AnsiString CurrentDate = {read=FCurrentDate, write=SetCurrentDate};
	__property System::AnsiString TriggerDate = {read=FTriggerDate, write=SetTriggerDate};
	__property System::AnsiString TriggerTime = {read=FTriggerTime, write=SetTriggerTime};
	__property bool CheckForTrigger = {read=FCheckForTrigger, write=SetCheckForTrigger, default=0};
	__property Classes::TNotifyEvent OnTrigger = {read=FOnTrigger, write=FOnTrigger};
	__property Classes::TNotifyEvent OnNewTime = {read=FOnNewTime, write=FOnNewTime};
	__property Classes::TNotifyEvent OnNewDate = {read=FOnNewDate, write=FOnNewDate};
};

//-- var, const, procedure ---------------------------------------------------

}	/* namespace Ahmttimetrigger */
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Ahmttimetrigger;
#endif
//-- end unit ----------------------------------------------------------------
#endif	// AHMTTimeTrigger
