Skip to content
25 changes: 25 additions & 0 deletions src/global.h
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,31 @@ class CGenErr
QString strErrorType;
};

class CInfoExit
{
public:
CInfoExit ( QString strMsg ) : strInfoMsg ( strMsg ) {}

QString GetInfoMessage() const { return strInfoMsg; }

protected:
QString strInfoMsg;
};

class CErrorExit
{
public:
CErrorExit ( int exitcode, QString strNewErrorMsg ) : iExitcode ( exitcode ), strErrorMsg ( strNewErrorMsg ) {}

QString GetErrorMessage() const { return strErrorMsg; }

int GetExitCode() const { return iExitcode; }

protected:
QString strErrorMsg;
int iExitcode;
};

class CCustomEvent : public QEvent
{
public:
Expand Down
Loading