ark
cliinterface.cpp
Go to the documentation of this file.
104 bool CliInterface::copyFiles(const QList<QVariant> & files, const QString & destinationDirectory, ExtractionOptions options)
357 connect(m_process, SIGNAL(finished(int,QProcess::ExitStatus)), &loop, SLOT(quit()), Qt::DirectConnection);
364 connect(m_process, SIGNAL(readyReadStandardOutput()), SLOT(readStdout()), Qt::DirectConnection);
365 connect(m_process, SIGNAL(finished(int,QProcess::ExitStatus)), SLOT(processFinished(int,QProcess::ExitStatus)), Qt::DirectConnection);
374 bool ret = (loop.exec(QEventLoop::WaitForMoreEvents | QEventLoop::ExcludeUserInputEvents) == 0);
500 if ((m_operationMode == Copy || m_operationMode == Add) && m_param.contains(CaptureProgress) && m_param.value(CaptureProgress).toBool()) {
653 if (choices.count() < 5) { // If the program has no way to cancel the extraction, we resort to killing it
Definition: cliinterface.h:230
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
QString cap(int nth) const
QString relativeFilePath(const QString &fileName) const
void setWaitForFinishedSignal(bool value)
Setting this option to true will not exit the thread with the exit of the various functions...
Definition: archiveinterface.cpp:105
QStringList Default: empty A list of regexp patterns that will cause the extraction to exit with a ge...
Definition: cliinterface.h:194
void clear()
QStringList The names to the program that will handle extracting of this archive (eg "rar")...
Definition: cliinterface.h:84
CliInterface(QObject *parent, const QVariantList &args)
Definition: cliinterface.cpp:54
void entryRemoved(const QString &path)
QList< QByteArray > split(char sep) const
bool isEmpty() const
QStringList The names to the program that will handle adding in this archive format (eg "rar")...
Definition: cliinterface.h:210
QStringList The arguments that are passed to the program above for listing the archive.
Definition: cliinterface.h:75
const T & at(int i) const
bool isNull() const
void userQuery(Query *query)
void removeAt(int i)
bool isEmpty() const
QString Default: empty A regexp pattern that matches the program's password prompt.
Definition: cliinterface.h:58
QString filename() const
Returns the filename of the archive currently being handled.
Definition: archiveinterface.cpp:48
QString join(const QString &separator) const
QThread * thread() const
virtual ParameterList parameterList() const =0
int type(const char *typeName)
bool responseCancelled()
Definition: queries.cpp:200
int size() const
QString password() const
Definition: archiveinterface.cpp:68
void setPattern(const QString &pattern)
int indexIn(const QString &str, int offset, CaretMode caretMode) const
int count(const T &value) const
QString fromLocal8Bit(const char *str, int size)
QStringList This should be a qstringlist with either two elements.
Definition: cliinterface.h:122
virtual bool readListLine(const QString &line)=0
int exec(QFlags< QEventLoop::ProcessEventsFlag > flags)
void setPassword(const QString &password)
Definition: archiveinterface.cpp:63
int toInt(bool *ok, int base) const
QStringList Default: empty A list of regexp patterns that will alert the user that the password was w...
Definition: cliinterface.h:201
virtual bool copyFiles(const QList< QVariant > &files, const QString &destinationDirectory, ExtractionOptions options)
Extract files from archive.
Definition: cliinterface.cpp:104
bool isEmpty() const
QStringList The arguments that are passed to the program above for extracting the archive...
Definition: cliinterface.h:100
bool setCurrent(const QString &path)
QCoreApplication * instance()
QString This is a regexp, defining how to recognize a "File already exists" prompt when extracting...
Definition: cliinterface.h:148
void finished(bool result)
Definition: cliinterface.h:230
const T value(const Key &key) const
Bool (default false) Will look for the %-sign in the stdout while working, in the form of (2%...
Definition: cliinterface.h:51
Definition: cliinterface.h:230
Definition: queries.h:99
QString & replace(int position, int n, QChar after)
QStringList The arguments that are passed to the program above for deleting from the archive...
Definition: cliinterface.h:187
T takeLast()
QStringList (default empty) The format of the root node switch.
Definition: cliinterface.h:141
QString mid(int position, int n) const
QStringList The names to the program that will handle deleting of elements in this archive format (eg...
Definition: cliinterface.h:178
void insert(int i, const T &value)
void setListEmptyLines(bool emptyLines)
Sets if the listing should include empty lines.
Definition: cliinterface.cpp:83
QThread * currentThread()
QStringList The various responses that can be supplied as a response to the "file exists" prompt...
Definition: cliinterface.h:169
void error(const QString &message, const QString &details=QString())
QStringList The arguments that are passed to the program above for adding to the archive.
Definition: cliinterface.h:219
T & last()
Definition: queries.h:77
void progress(double progress)
bool contains(const Key &key) const
QDir current()
virtual bool addFiles(const QStringList &files, const CompressionOptions &options)
Definition: cliinterface.cpp:243
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QString toString() const
QStringList (default empty) The format of the root node switch.
Definition: cliinterface.h:130
virtual bool deleteFiles(const QList< QVariant > &files)
Definition: cliinterface.cpp:293
QStringList The names to the program that will handle listing of this archive (eg "rar")...
Definition: cliinterface.h:67
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.