22 Q_DECLARE_TR_FUNCTIONS(
KAr)
30 KAr(
const QString &filename);
55 const QDateTime &atime,
56 const QDateTime &mtime,
57 const QDateTime &ctime)
override;
73 const QDateTime &atime,
74 const QDateTime &mtime,
75 const QDateTime &ctime)
override;
78 const QString &target,
82 const QDateTime &atime,
83 const QDateTime &mtime,
84 const QDateTime &ctime)
override;
96 void virtual_hook(
int id,
void *data)
override;
KAr is a class for reading archives in ar format.
Definition kar.h:21
bool doWriteSymLink(const QString &name, const QString &target, const QString &user, const QString &group, mode_t perm, const QDateTime &atime, const QDateTime &mtime, const QDateTime &ctime) override
Writes a symbolic link to the archive.
KAr(const QString &filename)
Creates an instance that operates on the given filename.
bool openArchive(QIODevice::OpenMode mode) override
Opens the archive for reading.
~KAr() override
If the ar file is still opened, then it will be closed automatically by the destructor.
KAr(QIODevice *dev)
Creates an instance that operates on the given device.
bool closeArchive() override
Closes the archive.
bool doPrepareWriting(const QString &name, const QString &user, const QString &group, qint64 size, mode_t perm, const QDateTime &atime, const QDateTime &mtime, const QDateTime &ctime) override
This virtual method must be implemented by subclasses.
bool doWriteDir(const QString &name, const QString &user, const QString &group, mode_t perm, const QDateTime &atime, const QDateTime &mtime, const QDateTime &ctime) override
Write a directory to the archive.
bool doFinishWriting(qint64 size) override
Called after writing the data.
KArchive is a base class for reading and writing archives.
Definition karchive.h:40