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

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

#ifndef AHMTDisplayManagerHPP
#define AHMTDisplayManagerHPP
#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 Ahmtdisplaymanager
{
//-- type declarations -------------------------------------------------------
typedef void __fastcall (__closure *TAHMRestartRequest)(System::TObject* Sender, bool &RebootNow);

typedef void __fastcall (__closure *TAHMDisplayAfterChange)(System::TObject* Sender, System::AnsiString 
	NewMode);

class DELPHICLASS TAHMDisplayManager;
class PASCALIMPLEMENTATION TAHMDisplayManager : public Ahmsystemclass::TAHMSystemsComponent 
{
	typedef Ahmsystemclass::TAHMSystemsComponent inherited;
	
private:
	Classes::TStrings* FModes;
	System::AnsiString FMode;
	TAHMRestartRequest FRestartRequest;
	Classes::TNotifyEvent FBeforeRestart;
	Classes::TNotifyEvent FModeActive;
	Classes::TNotifyEvent FOnSuccess;
	Classes::TNotifyEvent FOnFailed;
	Classes::TNotifyEvent FOnNoStore;
	Classes::TNotifyEvent FOnRebootFail;
	TAHMDisplayAfterChange FAfterChange;
	void __fastcall SetMode(const System::AnsiString Value);
	System::AnsiString __fastcall GetCurrentMode(void);
	void __fastcall SetCurrentMode(const System::AnsiString Value);
	
public:
	__fastcall virtual TAHMDisplayManager(Classes::TComponent* AOwner);
	virtual void __fastcall Loaded(void);
	__fastcall virtual ~TAHMDisplayManager(void);
	virtual void __fastcall Update(void);
	__property Classes::TStrings* Modes = {read=FModes};
	bool __fastcall Execute(void);
	
__published:
	__property System::AnsiString Mode = {read=FMode, write=SetMode, stored=false};
	__property System::AnsiString CurrentMode = {read=GetCurrentMode, write=SetCurrentMode, stored=false
		};
	__property TAHMRestartRequest RestartRequest = {read=FRestartRequest, write=FRestartRequest};
	__property Classes::TNotifyEvent BeforeRestart = {read=FBeforeRestart, write=FBeforeRestart};
	__property Classes::TNotifyEvent OnAlreadyActive = {read=FModeActive, write=FModeActive};
	__property Classes::TNotifyEvent OnSuccess = {read=FOnSuccess, write=FOnSuccess};
	__property Classes::TNotifyEvent OnFailed = {read=FOnFailed, write=FOnFailed};
	__property Classes::TNotifyEvent OnNoStore = {read=FOnNoStore, write=FOnNoStore};
	__property Classes::TNotifyEvent OnRebootFail = {read=FOnRebootFail, write=FOnRebootFail};
	__property TAHMDisplayAfterChange AfterChange = {read=FAfterChange, write=FAfterChange};
};

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

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