// Borland C++ Builder
// Copyright (c) 1995, 2002 by Borland Software Corporation
// All rights reserved

// (DO NOT EDIT: machine generated header) 'ahmtdiskmonitor.pas' rev: 6.00

#ifndef ahmtdiskmonitorHPP
#define ahmtdiskmonitorHPP

#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <ahmsystemconst.hpp>	// Pascal unit
#include <ahmsystemclass.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <SysUtils.hpp>	// Pascal unit
#include <Messages.hpp>	// Pascal unit
#include <Windows.hpp>	// Pascal unit
#include <SysInit.hpp>	// Pascal unit
#include <System.hpp>	// Pascal unit

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

namespace Ahmtdiskmonitor
{
//-- type declarations -------------------------------------------------------
#pragma option push -b-
enum TAHMMonitorType { monFiles, monDirectories, monAttributes, monSize, monLastWrite, monSecurity };
#pragma option pop

typedef Set<TAHMMonitorType, monFiles, monSecurity>  TAHMMonitorSet;

class DELPHICLASS TAHMChangeThread;
class DELPHICLASS TAHMDiskLocation;
class DELPHICLASS TAHMDiskMonitor;
class DELPHICLASS TAHMDiskLocations;
class PASCALIMPLEMENTATION TAHMDiskLocations : public Ahmsystemclass::TAHMCollection 
{
	typedef Ahmsystemclass::TAHMCollection inherited;
	
public:
	TAHMDiskLocation* operator[](int Index) { return Items[Index]; }
	
private:
	TAHMDiskMonitor* FAHMDiskMonitor;
	TAHMDiskLocation* __fastcall GetAHMDiskLocation(int Index);
	void __fastcall SetAHMDiskLocation(int Index, TAHMDiskLocation* Value);
	
protected:
	DYNAMIC Classes::TPersistent* __fastcall GetOwner(void);
	
public:
	__fastcall TAHMDiskLocations(TAHMDiskMonitor* AOwner);
	HIDESBASE TAHMDiskLocation* __fastcall Add(void);
	HIDESBASE bool __fastcall Delete(int Index);
	__property TAHMDiskLocation* Items[int Index] = {read=GetAHMDiskLocation, write=SetAHMDiskLocation/*, default*/};
public:
	#pragma option push -w-inl
	/* TCollection.Destroy */ inline __fastcall virtual ~TAHMDiskLocations(void) { }
	#pragma option pop
	
};


class PASCALIMPLEMENTATION TAHMDiskMonitor : public Ahmsystemclass::TAHMSystemComponent 
{
	typedef Ahmsystemclass::TAHMSystemComponent inherited;
	
private:
	TAHMDiskLocations* FAHMDiskLocations;
	void __fastcall SetAHMDiskLocations(TAHMDiskLocations* Value);
	
public:
	__fastcall virtual TAHMDiskMonitor(Classes::TComponent* AOwner);
	__fastcall virtual ~TAHMDiskMonitor(void);
	
__published:
	__property TAHMDiskLocations* Locations = {read=FAHMDiskLocations, write=SetAHMDiskLocations};
};


class PASCALIMPLEMENTATION TAHMDiskLocation : public Classes::TCollectionItem 
{
	typedef Classes::TCollectionItem inherited;
	
private:
	bool FEnabled;
	unsigned FMonType;
	TAHMChangeThread* FChangeThread;
	TAHMDiskMonitor* FAHMDiskMonitor;
	Classes::TNotifyEvent FOnChangeOccured;
	AnsiString FLocation;
	TAHMMonitorSet FEvents;
	bool FSubDirectory;
	void __fastcall SetEnabled(const bool Value);
	void __fastcall SetThreadPriority(const Classes::TThreadPriority Value);
	void __fastcall SetLocation(const AnsiString Value);
	void __fastcall SetEvents(const TAHMMonitorSet Value);
	Classes::TThreadPriority __fastcall GetThreadPriority(void);
	
protected:
	virtual AnsiString __fastcall GetDisplayName();
	
public:
	__fastcall virtual TAHMDiskLocation(Classes::TCollection* Collection);
	virtual void __fastcall Assign(Classes::TPersistent* Source);
	__property TAHMDiskMonitor* Owner = {read=FAHMDiskMonitor};
	__property AnsiString DisplayName = {read=GetDisplayName};
	__fastcall virtual ~TAHMDiskLocation(void);
	
__published:
	__property Classes::TNotifyEvent OnChangeOccured = {read=FOnChangeOccured, write=FOnChangeOccured};
	__property AnsiString Location = {read=FLocation, write=SetLocation};
	__property bool Enabled = {read=FEnabled, write=SetEnabled, default=1};
	__property TAHMMonitorSet Events = {read=FEvents, write=SetEvents, default=1};
	__property bool SubDirectory = {read=FSubDirectory, write=FSubDirectory, default=0};
	__property Classes::TThreadPriority Priority = {read=GetThreadPriority, write=SetThreadPriority, default=3};
};


class PASCALIMPLEMENTATION TAHMChangeThread : public Classes::TThread 
{
	typedef Classes::TThread inherited;
	
public:
	TAHMDiskLocation* OwnerTimer;
	virtual void __fastcall Execute(void);
	void __fastcall DoTimer(void);
public:
	#pragma option push -w-inl
	/* TThread.Create */ inline __fastcall TAHMChangeThread(bool CreateSuspended) : Classes::TThread(CreateSuspended) { }
	#pragma option pop
	#pragma option push -w-inl
	/* TThread.Destroy */ inline __fastcall virtual ~TAHMChangeThread(void) { }
	#pragma option pop
	
};


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

}	/* namespace Ahmtdiskmonitor */
using namespace Ahmtdiskmonitor;
#pragma option pop	// -w-
#pragma option pop	// -Vx

#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif	// ahmtdiskmonitor
