ark
karchiveplugin.cpp
Go to the documentation of this file.
65 emit error(i18nc("@info", "Could not open the archive <filename>%1</filename> for reading", filename()));
72 void KArchiveInterface::getAllEntries(const KArchiveDirectory *dir, const QString &prefix, QList< QVariant > &list)
86 bool KArchiveInterface::copyFiles(const QList<QVariant> &files, const QString &destinationDirectory, ExtractionOptions options)
92 emit error(i18nc("@info", "Could not open the archive <filename>%1</filename> for reading", filename()));
108 emit error(i18nc("@info", "File <filename>%1</filename> not found in the archive" , file.toString()));
128 if (QFile::exists(realDestination + QLatin1Char('/') + archiveEntry->name()) && !overwriteAllSelected) {
198 QString fileName = prefix.isEmpty() ? aentry->name() : prefix + QLatin1Char('/') + aentry->name();
222 bool KArchiveInterface::addFiles(const QStringList &files, const Kerfuffle::CompressionOptions &options)
232 emit error(i18nc("@info", "Could not open the archive <filename>%1</filename> for writing.", filename()));
249 emit error(i18nc("@info", "Could not add the directory <filename>%1</filename> to the archive", path));
257 emit error(i18nc("@info", "Could not add the file <filename>%1</filename> to the archive.", path));
void userQuery(Query *query)
QString filename() const
Returns the filename of the archive currently being handled.
Definition: archiveinterface.cpp:48
bool deleteFiles(const QList< QVariant > &files)
Definition: karchiveplugin.cpp:268
bool exists() const
void entry(const ArchiveEntry &archiveEntry)
int count(const T &value) const
void append(const T &value)
bool isDir() const
QString fileName() const
bool isEmpty() const
bool isEmpty() const
bool endsWith(const QString &s, Qt::CaseSensitivity cs) const
const T value(const Key &key) const
bool exists() const
bool contains(const T &value) const
Definition: karchiveplugin.h:31
KArchiveInterface(QObject *parent=0, const QVariantList &args=QVariantList())
Definition: karchiveplugin.cpp:34
void error(const QString &message, const QString &details=QString())
bool addFiles(const QStringList &files, const CompressionOptions &options)
Definition: karchiveplugin.cpp:222
Definition: queries.h:77
QString fromLatin1(const char *str, int size)
bool copyFiles(const QList< QVariant > &files, const QString &destinationDirectory, ExtractionOptions options)
Extract files from archive.
Definition: karchiveplugin.cpp:86
QString toString() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:42:37 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:42:37 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.