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;
65 int fileCount()
const override;
67 bool fileExists(
const QString &
filePath)
const override;
70 bool setFile(
const QString &
filePath, QIODevice *data)
override;
71 bool addFile(
const QString &
filePath, QIODevice *data)
override;
72 bool removeFile(
const QString &
filePath)
override;
73 bool isNameValid(
const QString &
filePath)
const override;
74 bool renameFile(
const QString &
filePath,
const QString &newFilePath)
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;
84 bool openHeader()
override;
85 bool openCompanyName();
86 bool openProductName();
88 void setError(LgpError error,
const QString &errorString = QString());
89 static QByteArray readAll(QIODevice *d,
bool *ok);
The Archive class is a device list in a file system or an archive file.
Definition: Archive.h:23
QString fileName() const
Definition: Archive.cpp:152
QIODevice * file()
Definition: Lgp.cpp:69
friend class Lgp
Definition: Lgp.h:20
QIODevice * modifiedFile()
Definition: Lgp.cpp:78
QString filePath() const
Definition: Lgp.cpp:105
QIODevice * modifiedFile(const QString &filePath) override
Definition: Lgp.cpp:215
QIODevice * file(const QString &filePath) override
Definition: Lgp.cpp:201
LgpError
Definition: Lgp.h:42
@ AbortError
Definition: Lgp.h:48
@ OpenTempError
Definition: Lgp.h:47
@ RenameError
Definition: Lgp.h:50
@ OpenError
Definition: Lgp.h:46
@ NoError
Definition: Lgp.h:43
@ PositionError
Definition: Lgp.h:51
@ WriteError
Definition: Lgp.h:45
@ InvalidError
Definition: Lgp.h:55
@ ResizeError
Definition: Lgp.h:52
@ ReadError
Definition: Lgp.h:44
@ RemoveError
Definition: Lgp.h:49
@ CopyError
Definition: Lgp.h:54
@ PermissionsError
Definition: Lgp.h:53
friend class LgpIterator
Definition: Lgp.h:40