KDECore
kar.cpp
Go to the documentation of this file.
typedef OpenMode
virtual bool openArchive(QIODevice::OpenMode mode)
Opens the archive for reading.
Definition: kar.cpp:82
virtual KArchiveDirectory * rootDir()
Retrieves or create the root directory.
Definition: karchive.cpp:391
int toInt(bool *ok, int base) const
virtual bool atEnd() const
QByteArray trimmed() const
virtual bool seek(qint64 pos)
QIODevice::OpenMode mode() const
Returns the mode in which the archive was opened.
Definition: karchive.cpp:470
virtual qint64 pos() const
void resize(int size)
int indexOf(char ch, int from) const
QString fromLocal8Bit(const char *str, int size)
QByteArray & replace(int pos, int len, const char *after)
qint64 read(char *data, qint64 maxSize)
virtual bool doWriteSymLink(const QString &name, const QString &target, const QString &user, const QString &group, mode_t perm, time_t atime, time_t mtime, time_t ctime)
Writes a symbolic link to the archive.
Definition: kar.cpp:76
QByteArray mid(int pos, int len) const
virtual bool doPrepareWriting(const QString &name, const QString &user, const QString &group, qint64 size, mode_t perm, time_t atime, time_t mtime, time_t ctime)
This virtual method must be implemented by subclasses.
Definition: kar.cpp:59
virtual bool doWriteDir(const QString &name, const QString &user, const QString &group, mode_t perm, time_t atime, time_t mtime, time_t ctime)
Write a directory to the archive.
Definition: kar.cpp:70
QByteArray left(int len) const
KAr(const QString &filename)
Creates an instance that operates on the given filename.
Definition: kar.cpp:42
char * data()
virtual ~KAr()
If the ar file is still opened, then it will be closed automatically by the destructor.
Definition: kar.cpp:52
bool endsWith(const QByteArray &ba) const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.