24 Q_DECLARE_TR_FUNCTIONS(
KTar)
38 explicit KTar(
const QString &filename,
const QString &mimetype = QString());
48 explicit KTar(QIODevice *dev);
67 const QString &target,
71 const QDateTime &atime,
72 const QDateTime &mtime,
73 const QDateTime &ctime)
override;
79 const QDateTime &atime,
80 const QDateTime &mtime,
81 const QDateTime &ctime)
override;
88 const QDateTime &atime,
89 const QDateTime &mtime,
90 const QDateTime &ctime)
override;
107 void virtual_hook(
int id,
void *data)
override;
111 KTarPrivate *
const d;
KArchive is a base class for reading and writing archives.
Definition karchive.h:40
A class for reading / writing (optionally compressed) tar archives.
Definition ktar.h:23
bool doFinishWriting(qint64 size) override
Reimplemented from KArchive.
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
Reimplemented from KArchive.
KTar(const QString &filename, const QString &mimetype=QString())
Creates an instance that operates on the given filename using the compression filter associated to gi...
~KTar() override
If the tar ball is still opened, then it will be closed automatically by the destructor.
bool createDevice(QIODevice::OpenMode mode) override
Can be reimplemented in order to change the creation of the device (when using the fileName construct...
void setOrigFileName(const QByteArray &fileName)
Special function for setting the "original file name" in the gzip header, when writing a tar....
bool openArchive(QIODevice::OpenMode mode) override
Opens the archive for reading.
KTar(QIODevice *dev)
Creates an instance that operates on the given device.
bool closeArchive() override
Closes the archive.
bool doWriteDir(const QString &name, const QString &user, const QString &group, mode_t perm, const QDateTime &atime, const QDateTime &mtime, const QDateTime &ctime) override
Reimplemented from KArchive.
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
Reimplemented from KArchive.