ff7tk
1.2.0.13
Work with Final Fantasy 7 game data
|
Go to the documentation of this file.
12 #include <ff7tkformats_export.h>
30 const QString &fileDir()
const;
31 QString filePath()
const;
34 QMultiHashIterator<quint16, LgpHeaderEntry *> it;
60 explicit Lgp(
const QString &name);
61 explicit Lgp(QFile *device);
62 virtual ~
Lgp()
override;
63 void clear()
override;
64 QStringList
fileList()
const override;
75 const QString &companyName();
76 void setCompanyName(
const QString &companyName);
77 const QString &productName();
78 void setProductName(
const QString &productName);
79 bool pack(
const QString &destination=QString(),
ArchiveObserver *observer =
nullptr)
override;
80 LgpError
error()
const;
85 bool openCompanyName();
86 bool openProductName();
88 void setError(LgpError error,
const QString &errorString = QString());
89 static QByteArray readAll(QIODevice *d,
bool *ok);
@ PermissionsError
Definition: Lgp.h:53
QIODevice * file(const QString &filePath) override
Definition: Lgp.cpp:201
virtual bool pack(const QString &destination=QString(), ArchiveObserver *observer=nullptr)=0
@ RenameError
Definition: Lgp.h:50
void setError(ArchiveError error, const QString &errorString=QString())
Definition: Archive.cpp:191
@ WriteError
Definition: Lgp.h:45
@ OpenError
Definition: Lgp.h:46
virtual int fileCount() const =0
@ InvalidError
Definition: Lgp.h:55
@ OpenTempError
Definition: Lgp.h:47
QString fileName() const
Definition: Archive.cpp:152
virtual void clear()
Definition: Archive.h:45
virtual bool renameFile(const QString &filePath, const QString &newFilePath)=0
@ RemoveError
Definition: Lgp.h:49
ArchiveError error() const
Definition: Archive.cpp:182
virtual bool addFile(const QString &filePath, QIODevice *data)=0
friend class Lgp
Definition: Lgp.h:20
@ ReadError
Definition: Lgp.h:44
virtual bool openHeader()=0
virtual QIODevice * file(const QString &filePath)=0
@ CopyError
Definition: Lgp.h:54
@ PositionError
Definition: Lgp.h:51
@ ResizeError
Definition: Lgp.h:52
@ NoError
Definition: Lgp.h:43
friend class LgpIterator
Definition: Lgp.h:40
The Archive class is a device list in a file system or an archive file.
Definition: Archive.h:22
QString filePath() const
Definition: Lgp.cpp:105
QIODevice * modifiedFile(const QString &filePath) override
Definition: Lgp.cpp:215
virtual bool setFile(const QString &filePath, QIODevice *data)=0
virtual QStringList fileList() const =0
virtual bool fileExists(const QString &filePath) const =0
virtual bool removeFile(const QString &filePath)=0
virtual bool isNameValid(const QString &filePath) const =0
LgpError
Definition: Lgp.h:42
@ AbortError
Definition: Lgp.h:48
virtual QIODevice * modifiedFile(const QString &filePath)=0