www.pudn.com > TurboPadSource.tar.gz > status.h
/**
* \class Status
* Status Class
*
* Holds information on the status of the program.
* Used in communication between parent and child windows.
*/
#ifndef Status_H
#define Status_H
class Status
{
public:
Status();
void SetVeto(bool set);
bool NeedVeto();
bool IsIdle();
void SetIdle();
int GetStatus();
void SetStatus(int st);
private:
int status; // Current Status/Operation
bool veto; // If the operation needs to be cancelled
};
enum StatusMode
{
Idle,
OpeningWindows,
ClosingWindows,
ClosingProgram
};
#endif