mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-11 00:39:59 +00:00
155cca0c9a
Fix folder name. Keep Qt optional. Move open dialogue from doc to tools. Rename 'load' to 'open'. Deleted wrong comment.
55 lines
1.3 KiB
C++
55 lines
1.3 KiB
C++
#ifndef ESMFILE_HPP
|
|
#define ESMFILE_HPP
|
|
|
|
#include <QDateTime>
|
|
#include <QStringList>
|
|
|
|
#include "../modelitem.hpp"
|
|
|
|
class EsmFile : public ModelItem
|
|
{
|
|
Q_OBJECT
|
|
Q_PROPERTY(QString filename READ fileName)
|
|
|
|
public:
|
|
EsmFile(QString fileName = QString(), ModelItem *parent = 0);
|
|
|
|
~EsmFile()
|
|
{}
|
|
|
|
void setFileName(const QString &fileName);
|
|
void setAuthor(const QString &author);
|
|
void setSize(const int size);
|
|
void setDates(const QDateTime &modified, const QDateTime &accessed);
|
|
void setVersion(const float version);
|
|
void setPath(const QString &path);
|
|
void setMasters(const QStringList &masters);
|
|
void setDescription(const QString &description);
|
|
|
|
inline QString fileName() { return mFileName; }
|
|
inline QString author() { return mAuthor; }
|
|
inline int size() { return mSize; }
|
|
inline QDateTime modified() { return mModified; }
|
|
inline QDateTime accessed() { return mAccessed; }
|
|
inline float version() { return mVersion; }
|
|
inline QString path() { return mPath; }
|
|
inline QStringList masters() { return mMasters; }
|
|
inline QString description() { return mDescription; }
|
|
|
|
|
|
private:
|
|
QString mFileName;
|
|
QString mAuthor;
|
|
int mSize;
|
|
QDateTime mModified;
|
|
QDateTime mAccessed;
|
|
float mVersion;
|
|
QString mPath;
|
|
QStringList mMasters;
|
|
QString mDescription;
|
|
|
|
};
|
|
|
|
|
|
#endif
|