51 QHashIterator<quint16, LgpHeaderEntry *>
it;
76 explicit Lgp(
const QString &name);
77 explicit Lgp(QFile *device);
80 QStringList fileList()
const;
81 int fileCount()
const;
83 bool fileExists(
const QString &
filePath)
const;
86 bool setFile(
const QString &
filePath, QIODevice *data);
87 bool addFile(
const QString &
filePath, QIODevice *data);
88 bool removeFile(
const QString &
filePath);
89 bool isNameValid(
const QString &
filePath)
const;
90 bool renameFile(
const QString &
filePath,
const QString &newFilePath);
91 const QString &companyName();
92 void setCompanyName(
const QString &companyName);
93 const QString &productName();
94 void setProductName(
const QString &productName);
95 bool pack(
const QString &destination=QString(),
ArchiveObserver *observer=NULL);
101 bool openCompanyName();
102 bool openProductName();
104 void setError(
LgpError error, const QString &errorString=QString());
106 QString _companyName;
108 QString _productName;
void next()
Advances the iterator by one position.
bool hasPrevious() const
Returns true if there is at least one item behind the iterator, i.e.
void toBack()
Moves the iterator to the back of the container (after the last item).
void toFront()
Moves the iterator to the front of the container (before the first item).
const QString & fileName() const
Returns the current file name (without the directory).
QHashIterator< quint16, LgpHeaderEntry * > it
QIODevice * modifiedFile()
Returns the current modified file.
LgpIterator(const Lgp &lgp)
const QString & fileDir() const
Returns the current file directory (without the file name).
The Archive class is a device list in a file system or an archive file.
QIODevice * file()
Returns the current file.
QString filePath() const
Returns the current full file path (dir + name).
void previous()
Moves the iterator back by one position.
bool hasNext() const
Returns true if there is at least one item ahead of the iterator, i.e.