ark
archive.cpp
Go to the documentation of this file.
45 return (p1->property(QLatin1String( "X-KDE-Priority" )).toInt()) > (p2->property(QLatin1String( "X-KDE-Priority" )).toInt());
73 offers = KMimeTypeTrader::self()->query(mimeType, QLatin1String( "Kerfuffle/Plugin" ), QLatin1String( "(exist Library)" ));
169 DeleteJob *newJob = new DeleteJob(files, static_cast<ReadWriteArchiveInterface*>(m_iface), this);
177 AddJob *newJob = new AddJob(files, options, static_cast<ReadWriteArchiveInterface*>(m_iface), this);
183 ExtractJob* Archive::copyFiles(const QList<QVariant> & files, const QString & destinationDir, ExtractionOptions options)
static KService::List findPluginOffers(const QString &filename, const QString &fixedMimeType)
Definition: archive.cpp:66
QString & append(QChar ch)
QString toUpper() const
Definition: queries.h:44
Definition: jobs.h:155
bool contains(const QString &str, Qt::CaseSensitivity cs) const
Definition: jobs.h:140
QString filename() const
Returns the filename of the archive currently being handled.
Definition: archiveinterface.cpp:48
bool exists() const
void chop(int n)
Definition: jobs.h:92
void append(const T &value)
void setPassword(const QString &password)
Definition: archiveinterface.cpp:63
bool isEmpty() const
static QString determineMimeType(const QString &filename)
Definition: archive.cpp:48
qint64 read(char *data, qint64 maxSize)
virtual bool open(QFlags< QIODevice::OpenModeFlag > mode)
QString right(int n) const
Definition: archive.h:88
void setParent(QObject *parent)
virtual qint64 size() const
static bool comparePlugins(const KService::Ptr &p1, const KService::Ptr &p2)
Definition: archive.cpp:43
Definition: jobs.h:118
virtual bool isReadOnly() const
Returns whether the file can only be read.
Definition: archiveinterface.cpp:53
ExtractJob * copyFiles(const QList< QVariant > &files, const QString &destinationDir, ExtractionOptions options=ExtractionOptions())
Definition: archive.cpp:183
DeleteJob * deleteFiles(const QList< QVariant > &files)
Definition: archive.cpp:164
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
AddJob * addFiles(const QStringList &files, const CompressionOptions &options=CompressionOptions())
Compression options that should be handled by all interfaces:
Definition: archive.cpp:174
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:42:36 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:36 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.