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

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

#ifndef AHMTSystemManagerHPP
#define AHMTSystemManagerHPP
#include <AHMSystemClass.hpp>
#include <AHMSystemConst.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 Ahmtsystemmanager
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TAHMWinWallPaper;
class PASCALIMPLEMENTATION TAHMWinWallPaper : public Classes::TPersistent 
{
	typedef Classes::TPersistent inherited;
	
private:
	bool FTiled;
	System::AnsiString FFileName;
	
public:
	bool __fastcall Execute(void);
	__fastcall virtual TAHMWinWallPaper(void);
	
__published:
	__property System::AnsiString BmpFilename = {read=FFileName, write=FFileName};
	__property bool Tiled = {read=FTiled, write=FTiled, default=1};
public:
	/* TPersistent.Destroy */ __fastcall virtual ~TAHMWinWallPaper(void) { }
	
};

class DELPHICLASS TAHMScreenSave;
class PASCALIMPLEMENTATION TAHMScreenSave : public Classes::TPersistent 
{
	typedef Classes::TPersistent inherited;
	
private:
	bool __fastcall GetActive(void);
	int __fastcall GetSeconds(void);
	void __fastcall SetActive(const bool Value);
	void __fastcall SetSeconds(const int Value);
	
__published:
	__property int Seconds = {read=GetSeconds, write=SetSeconds, stored=false, nodefault};
	__property bool Installed = {read=GetActive, write=SetActive, stored=false, nodefault};
public:
	/* TPersistent.Destroy */ __fastcall virtual ~TAHMScreenSave(void) { }
	
public:
	/* TObject.Create */ __fastcall TAHMScreenSave(void) : Classes::TPersistent() { }
	
};

enum TAHMExitType { xLogoff, xReboot, xShutDown, xPowerOff, xForce };

class DELPHICLASS TAHMShutdown;
class DELPHICLASS TAHMSystemManager;
class DELPHICLASS TAHMSysKeys;
class PASCALIMPLEMENTATION TAHMSysKeys : public Classes::TPersistent 
{
	typedef Classes::TPersistent inherited;
	
private:
	void __fastcall SetCapsLock(const bool value);
	void __fastcall SetNumLock(const bool value);
	void __fastcall SetScrollLock(const bool value);
	bool __fastcall GetCapsLock(void);
	bool __fastcall GetScrollLock(void);
	bool __fastcall GetNumLock(void);
	
__published:
	__property bool CapsLock = {read=GetCapsLock, write=SetCapsLock, stored=false, nodefault};
	__property bool NumLock = {read=GetNumLock, write=SetNumLock, stored=false, nodefault};
	__property bool ScrollLock = {read=GetScrollLock, write=SetScrollLock, stored=false, nodefault};
public:
		
	/* TPersistent.Destroy */ __fastcall virtual ~TAHMSysKeys(void) { }
	
public:
	/* TObject.Create */ __fastcall TAHMSysKeys(void) : Classes::TPersistent() { }
	
};

typedef void __fastcall (__closure *TAHMOnErrorShutdown)(System::TObject* Sender, int Error);

class DELPHICLASS TAHMSystemOptions;
class PASCALIMPLEMENTATION TAHMSystemOptions : public Classes::TPersistent 
{
	typedef Classes::TPersistent inherited;
	
private:
	bool FWinIcons;
	bool FWinOfficeBar;
	bool FWinTaskBar;
	bool FMinimizeAll;
	TAHMSystemManager* FAHMSystemManager;
	bool __fastcall pGetWinAnimation(void);
	bool __fastcall pGetWinDragFull(void);
	void __fastcall SetWinAnimation(const bool Value);
	void __fastcall SetWinDragFull(const bool Value);
	bool __fastcall GetFontSmoothing(void);
	bool __fastcall GetWarningBeep(void);
	void __fastcall SetFontSmoothing(const bool Value);
	void __fastcall SetWarningbeep(const bool Value);
	bool __fastcall GetSnapToDefaultBtn(void);
	void __fastcall SetSnapToDefaultBtn(const bool Value);
	void __fastcall SetWinIcons(const bool Value);
	void __fastcall SetWinOfficeBar(const bool Value);
	void __fastcall SetWinTaskbar(const bool Value);
	void __fastcall SetMinimizeAll(const bool Value);
	
public:
	__fastcall virtual TAHMSystemOptions(TAHMSystemManager* AOwner);
	__fastcall virtual ~TAHMSystemOptions(void);
	
__published:
	__property bool pAnimation = {read=pGetWinAnimation, write=SetWinAnimation, stored=false, nodefault
		};
	__property bool pDragFullWindows = {read=pGetWinDragFull, write=SetWinDragFull, stored=false, nodefault
		};
	__property bool pFontSmoothing = {read=GetFontSmoothing, write=SetFontSmoothing, stored=false, nodefault
		};
	__property bool pSnapToDefaultBtn = {read=GetSnapToDefaultBtn, write=SetSnapToDefaultBtn, stored=false
		, nodefault};
	__property bool pWarningbeep = {read=GetWarningBeep, write=SetWarningbeep, stored=false, nodefault}
		;
	__property bool pTaskBar = {read=FWinTaskBar, write=SetWinTaskbar, stored=false, nodefault};
	__property bool pIcons = {read=FWinIcons, write=SetWinIcons, stored=false, nodefault};
	__property bool pOfficeBar = {read=FWinOfficeBar, write=SetWinOfficeBar, stored=false, nodefault};
	__property bool pDoMinimizeAll = {read=FMinimizeAll, write=SetMinimizeAll, stored=false, nodefault}
		;
};

class PASCALIMPLEMENTATION TAHMSystemManager : public Ahmsystemclass::TAHMSystemsComponent 
{
	typedef Ahmsystemclass::TAHMSystemsComponent inherited;
	
private:
	TAHMSysKeys* FSystemKeys;
	TAHMOnErrorShutdown FOnErrorShutdown;
	Classes::TNotifyEvent FOnCallShutdown;
	TAHMShutdown* FShutdown;
	TAHMScreenSave* FScreenSaver;
	TAHMWinWallPaper* FWallPaper;
	TAHMSystemOptions* FAHMSystemOptions;
	
public:
	bool __fastcall EmptyBin(bool Confirmation, bool Progress, bool Sound);
	int __fastcall CallShutdown(void);
	bool __fastcall CallScreenSaver(void);
	bool __fastcall SetWallPaper(void);
	bool __fastcall DoHideWindow(char * ATaskName, bool AVisible);
	__fastcall virtual TAHMSystemManager(Classes::TComponent* AOwner);
	__fastcall virtual ~TAHMSystemManager(void);
	
__published:
	__property TAHMSystemOptions* Properties = {read=FAHMSystemOptions, write=FAHMSystemOptions};
	__property TAHMSysKeys* SystemKeys = {read=FSystemKeys, write=FSystemKeys};
	__property TAHMScreenSave* ScreenSaver = {read=FScreenSaver, write=FScreenSaver};
	__property TAHMShutdown* Shutdown = {read=FShutdown, write=FShutdown};
	__property TAHMWinWallPaper* WallPaper = {read=FWallPaper, write=FWallPaper};
	__property Classes::TNotifyEvent OnCallShutdown = {read=FOnCallShutdown, write=FOnCallShutdown};
	__property TAHMOnErrorShutdown OnErrorShutdown = {read=FOnErrorShutdown, write=FOnErrorShutdown};
};

class PASCALIMPLEMENTATION TAHMShutdown : public Classes::TPersistent 
{
	typedef Classes::TPersistent inherited;
	
private:
	TAHMSystemManager* FAHMSystemManager;
	bool FConfirm;
	System::AnsiString FConfirmation;
	TAHMExitType FExittype;
	
public:
	__fastcall virtual TAHMShutdown(TAHMSystemManager* AOwner);
	__fastcall virtual ~TAHMShutdown(void);
	int __fastcall Execute(void);
	
__published:
	__property bool Confirm = {read=FConfirm, write=FConfirm, default=1};
	__property System::AnsiString Confirmation = {read=FConfirmation, write=FConfirmation};
	__property TAHMExitType Exittype = {read=FExittype, write=FExittype, default=1};
};

//-- var, const, procedure ---------------------------------------------------
extern PACKAGE int __fastcall AHMExitWindows(const int Flags);
extern PACKAGE void __fastcall AHMSetWallPaper(System::AnsiString FileName, bool IsTiled);
extern PACKAGE bool __fastcall MinimizeAllWindows(void);

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