1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 06:53:53 +00:00
openmw/components/contentselector/model/loadordererror.hpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
1 KiB
C++
Raw Normal View History

#ifndef LOADORDERERROR_HPP
#define LOADORDERERROR_HPP
#include <QString>
namespace ContentSelectorModel
{
2015-01-01 02:53:35 +00:00
/// \brief Details of a suspected Load Order problem a plug-in will have. This is basically a POD.
class LoadOrderError
{
public:
enum ErrorCode
{
ErrorCode_None = 0,
ErrorCode_MissingDependency = 1,
ErrorCode_InactiveDependency = 2,
ErrorCode_LoadOrder = 3
};
2016-01-03 17:20:34 +00:00
inline LoadOrderError()
: mErrorCode(ErrorCode_None)
{
}
inline LoadOrderError(ErrorCode errorCode, QString fileName)
2016-01-03 17:20:34 +00:00
: mErrorCode(errorCode)
, mFileName(fileName)
{
}
inline ErrorCode errorCode() const { return mErrorCode; }
inline QString fileName() const { return mFileName; }
QString toolTip() const;
private:
ErrorCode mErrorCode;
QString mFileName;
static QString sErrorToolTips[ErrorCode_LoadOrder];
};
}
#endif // LOADORDERERROR_HPP