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

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

#ifndef AHMTMultiThreadHPP
#define AHMTMultiThreadHPP
#include <AHMSystemClass.hpp>
#include <Dialogs.hpp>
#include <Forms.hpp>
#include <Controls.hpp>
#include <Graphics.hpp>
#include <Classes.hpp>
#include <SysUtils.hpp>
#include <Messages.hpp>
#include <Windows.hpp>
#include <SysInit.hpp>
#include <System.hpp>

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

namespace Ahmtmultithread
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TAHMTimerThread;
class DELPHICLASS TAHMTimedThread;
class DELPHICLASS TAHMMultiThreader;
class DELPHICLASS TAHMTimedThreads;
class PASCALIMPLEMENTATION TAHMTimedThreads : public Classes::TCollection 
{
	typedef Classes::TCollection inherited;
	
private:
	TAHMMultiThreader* FAHMMultiThreader;
	TAHMTimedThread* __fastcall GetAHMTimedThread(int Index);
	void __fastcall SetAHMTimedThread(int Index, TAHMTimedThread* Value);
	
protected:
	DYNAMIC Classes::TPersistent* __fastcall GetOwner(void);
	
public:
	__fastcall TAHMTimedThreads(TAHMMultiThreader* AOwner);
	HIDESBASE TAHMTimedThread* __fastcall Add(void);
	bool __fastcall Delete(int Index);
	__property TAHMMultiThreader* Owner = {read=FAHMMultiThreader};
	__property TAHMTimedThread* Items[int Index] = {read=GetAHMTimedThread, write=SetAHMTimedThread/*, 
		default*/};
public:
	/* TCollection.Destroy */ __fastcall virtual ~TAHMTimedThreads(void) { }
	
};

typedef void __fastcall (__closure *TAHMMultiThreadEvent)(System::TObject* Sender, TAHMTimedThread* 
	Thread);

class PASCALIMPLEMENTATION TAHMMultiThreader : public Ahmsystemclass::TAHMSystemsComponent 
{
	typedef Ahmsystemclass::TAHMSystemsComponent inherited;
	
private:
	TAHMTimedThreads* FAHMTimedThreads;
	TAHMMultiThreadEvent FOnAnyTimer;
	void __fastcall SetAHMTimedThreads(TAHMTimedThreads* Value);
	
public:
	__fastcall virtual TAHMMultiThreader(Classes::TComponent* AOwner);
	__fastcall virtual ~TAHMMultiThreader(void);
	
__published:
	__property About ;
	__property TAHMTimedThreads* Threads = {read=FAHMTimedThreads, write=SetAHMTimedThreads};
	__property TAHMMultiThreadEvent OnAnyTimer = {read=FOnAnyTimer, write=FOnAnyTimer};
};

class PASCALIMPLEMENTATION TAHMTimedThread : public Classes::TCollectionItem 
{
	typedef Classes::TCollectionItem inherited;
	
private:
	bool FEnabled;
	Word FInterval;
	System::AnsiString FThreadID;
	int FTag;
	Classes::TNotifyEvent FOnTimer;
	TAHMTimerThread* FTimerThread;
	TThreadPriority FThreadPriority;
	TAHMMultiThreader* FAHMMultiThreader;
	void __fastcall SetEnabled(const bool Value);
	void __fastcall SetInterval(const Word Value);
	void __fastcall SetThreadPriority(const Classes::TThreadPriority Value);
	
protected:
	virtual System::AnsiString __fastcall GetDisplayName(void);
	void __fastcall UpdateTimer(void);
	DYNAMIC void __fastcall Timer(void);
	
public:
	__fastcall virtual TAHMTimedThread(Classes::TCollection* Collection);
	virtual void __fastcall Assign(Classes::TPersistent* Source);
	__property TAHMMultiThreader* Owner = {read=FAHMMultiThreader};
	__property System::AnsiString DisplayName = {read=GetDisplayName};
	__fastcall virtual ~TAHMTimedThread(void);
	
__published:
	__property bool Enabled = {read=FEnabled, write=SetEnabled, default=1};
	__property int Tag = {read=FTag, write=FTag, default=0};
	__property System::AnsiString ThreadID = {read=FThreadID, write=FThreadID};
	__property Word Interval = {read=FInterval, write=SetInterval, default=1000};
	__property Classes::TNotifyEvent OnTimer = {read=FOnTimer, write=FOnTimer};
	__property Classes::TThreadPriority Priority = {read=FThreadPriority, write=SetThreadPriority, default=3
		};
};

class PASCALIMPLEMENTATION TAHMTimerThread : public Classes::TThread 
{
	typedef Classes::TThread inherited;
	
public:
	TAHMTimedThread* OwnerTimer;
	virtual void __fastcall Execute(void);
	void __fastcall DoTimer(void);
public:
	/* TThread.Create */ __fastcall TAHMTimerThread(bool CreateSuspended) : Classes::TThread(CreateSuspended
		) { }
	/* TThread.Destroy */ __fastcall virtual ~TAHMTimerThread(void) { }
	
};

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

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