//---------------------------------------------------------------------------

#ifndef Waiting_FormH
#define Waiting_FormH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include "TntExtCtrls.hpp"
#include "TntStdCtrls.hpp"
#include "TntForms.hpp"
//---------------------------------------------------------------------------
typedef enum {EWM_MACHINE_STOP} EWaitingMode;
//---------------------------------------------------------------------------
class TWaitingForm : public TTntForm
{
__published:	// IDE-managed Components
	TTimer *StatusCheckTimer;
	TTntPanel *Panel1;
	TTntLabel *MessageLabel;
	void __fastcall StatusCheckTimerTimer(TObject *Sender);
private:	// User declarations
	unsigned int WaitingStartTime;
	EWaitingMode WaitingMode;
    int WaitingResult;

    void __fastcall ShowWaitingMessage(WideString msg);
public:		// User declarations
	__fastcall TWaitingForm(TComponent* Owner);
	int __fastcall WaitingMachineStop(void);
	void __fastcall SetMessage(WideString msg);
};
//---------------------------------------------------------------------------
extern PACKAGE TWaitingForm *WaitingForm;
//---------------------------------------------------------------------------
#endif
