47 DataFileAbstract() =
default;
48 ~DataFileAbstract() =
default;
66 [[nodiscard]]
bool isValid()
const {
return m_error.isEmpty(); }
75 [[nodiscard]] QString
error()
const {
return m_error; }
84 [[nodiscard]] QStringList
warnings()
const {
return m_warnings; }
102 [[nodiscard]]
static QSharedPointer<QFile>
openFileURL(
const QString& fileName);
105 void addWarning(
const QString& warning) { m_warnings += warning; }
106 void setError(
const QString& newError) { m_error = newError; }
110 QStringList m_warnings;