ark
#include <cliinterface.h>

Public Types | |
enum | OperationMode { List, Copy, Add, Delete } |
Public Member Functions | |
CliInterface (QObject *parent, const QVariantList &args) | |
virtual | ~CliInterface () |
virtual bool | addFiles (const QStringList &files, const CompressionOptions &options) |
virtual bool | copyFiles (const QList< QVariant > &files, const QString &destinationDirectory, ExtractionOptions options) |
virtual bool | deleteFiles (const QList< QVariant > &files) |
bool | doKill () |
bool | doResume () |
bool | doSuspend () |
QString | escapedCharacters () |
virtual bool | list () |
virtual ParameterList | parameterList () const =0 |
virtual bool | readListLine (const QString &line)=0 |
void | setEscapedCharacters (const QString &characters) |
void | setListEmptyLines (bool emptyLines) |
![]() | |
ReadWriteArchiveInterface (QObject *parent, const QVariantList &args) | |
virtual | ~ReadWriteArchiveInterface () |
virtual bool | isReadOnly () const |
![]() | |
ReadOnlyArchiveInterface (QObject *parent, const QVariantList &args) | |
virtual | ~ReadOnlyArchiveInterface () |
QString | filename () const |
virtual bool | open () |
void | setPassword (const QString &password) |
bool | waitForFinishedSignal () |
Public Attributes | |
OperationMode | m_operationMode |
Additional Inherited Members | |
![]() | |
void | entry (const ArchiveEntry &archiveEntry) |
void | entryRemoved (const QString &path) |
void | error (const QString &message, const QString &details=QString()) |
void | finished (bool result) |
void | info (const QString &info) |
void | progress (double progress) |
void | userQuery (Query *query) |
![]() | |
QString | password () const |
void | setWaitForFinishedSignal (bool value) |
Detailed Description
Definition at line 224 of file cliinterface.h.
Member Enumeration Documentation
Enumerator | |
---|---|
List | |
Copy | |
Add | |
Delete |
Definition at line 229 of file cliinterface.h.
Constructor & Destructor Documentation
|
explicit |
Definition at line 54 of file cliinterface.cpp.
|
virtual |
Definition at line 77 of file cliinterface.cpp.
Member Function Documentation
|
virtual |
Implements Kerfuffle::ReadWriteArchiveInterface.
Definition at line 242 of file cliinterface.cpp.
|
virtual |
Extract files from archive.
Globally recognized extraction options:
- PreservePaths - preserve file paths (extract flat if false)
- RootNode - node in the archive which will correspond to the
- destinationDirectory When subclassing, you can block as long as you need, the function runs in its own thread.
- Returns
- whether the listing succeeded.
- Note
- If returning false, make sure to emit the error() signal beforewards to notify the user of the error condition.
Implements Kerfuffle::ReadOnlyArchiveInterface.
Definition at line 103 of file cliinterface.cpp.
|
virtual |
Implements Kerfuffle::ReadWriteArchiveInterface.
Definition at line 292 of file cliinterface.cpp.
|
virtual |
Reimplemented from Kerfuffle::ReadOnlyArchiveInterface.
Definition at line 688 of file cliinterface.cpp.
|
virtual |
Reimplemented from Kerfuffle::ReadOnlyArchiveInterface.
Definition at line 707 of file cliinterface.cpp.
|
virtual |
Reimplemented from Kerfuffle::ReadOnlyArchiveInterface.
Definition at line 702 of file cliinterface.cpp.
QString Kerfuffle::CliInterface::escapedCharacters | ( | ) |
Returns the list of characters which are preceded by a backslash when a file name in an archive is passed to a program.
- See also
- setEscapedCharacters().
|
virtual |
List archive contents.
This runs the process of reading archive contents. When subclassing, you can block as long as you need, the function runs in its own thread.
- Returns
- whether the listing succeeded.
- Note
- If returning false, make sure to emit the error() signal beforewards to notify the user of the error condition.
Implements Kerfuffle::ReadOnlyArchiveInterface.
Definition at line 87 of file cliinterface.cpp.
|
pure virtual |
|
pure virtual |
void Kerfuffle::CliInterface::setEscapedCharacters | ( | const QString & | characters | ) |
Sets which characters will be preceded by a backslash when a file name in an archive is passed to a program.
- See also
- escapedCharacters().
void CliInterface::setListEmptyLines | ( | bool | emptyLines | ) |
Sets if the listing should include empty lines.
The default value is false.
Definition at line 82 of file cliinterface.cpp.
Member Data Documentation
OperationMode Kerfuffle::CliInterface::m_operationMode |
Definition at line 232 of file cliinterface.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:08:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.