• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeutils API Reference
  • KDE Home
  • Contact Us
 

ark

  • Kerfuffle
  • ReadOnlyArchiveInterface
Signals | Public Member Functions | Protected Member Functions | List of all members
Kerfuffle::ReadOnlyArchiveInterface Class Referenceabstract

#include <archiveinterface.h>

Inheritance diagram for Kerfuffle::ReadOnlyArchiveInterface:
Inheritance graph
[legend]

Signals

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)
 

Public Member Functions

 ReadOnlyArchiveInterface (QObject *parent, const QVariantList &args)
 
virtual ~ReadOnlyArchiveInterface ()
 
virtual bool copyFiles (const QList< QVariant > &files, const QString &destinationDirectory, ExtractionOptions options)=0
 
virtual bool doKill ()
 
virtual bool doResume ()
 
virtual bool doSuspend ()
 
QString filename () const
 
virtual bool isReadOnly () const
 
virtual bool list ()=0
 
virtual bool open ()
 
void setPassword (const QString &password)
 
bool waitForFinishedSignal ()
 
- Public Member Functions inherited from QObject
 QObject (QObject *parent)
 
 QObject (QObject *parent, const char *name)
 
virtual  ~QObject ()
 
bool blockSignals (bool block)
 
QObject * child (const char *objName, const char *inheritsClass, bool recursiveSearch) const
 
const QObjectList & children () const
 
const char * className () const
 
bool connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
bool disconnect (const QObject *receiver, const char *method)
 
bool disconnect (const char *signal, const QObject *receiver, const char *method)
 
void dumpObjectInfo ()
 
void dumpObjectTree ()
 
QList< QByteArray > dynamicPropertyNames () const
 
virtual bool event (QEvent *e)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
T findChild (const QString &name) const
 
QList< T > findChildren (const QRegExp &regExp) const
 
QList< T > findChildren (const QString &name) const
 
bool inherits (const char *className) const
 
void insertChild (QObject *object)
 
void installEventFilter (QObject *filterObj)
 
bool isA (const char *className) const
 
bool isWidgetType () const
 
void killTimer (int id)
 
virtual const QMetaObject * metaObject () const
 
void moveToThread (QThread *targetThread)
 
const char * name () const
 
const char * name (const char *defaultName) const
 
QString objectName () const
 
QObject * parent () const
 
QVariant property (const char *name) const
 
void removeChild (QObject *object)
 
void removeEventFilter (QObject *obj)
 
void setName (const char *name)
 
void setObjectName (const QString &name)
 
void setParent (QObject *parent)
 
bool setProperty (const char *name, const QVariant &value)
 
bool signalsBlocked () const
 
int startTimer (int interval)
 
QThread * thread () const
 

Protected Member Functions

QString password () const
 
void setWaitForFinishedSignal (bool value)
 
- Protected Member Functions inherited from QObject
bool checkConnectArgs (const char *signal, const QObject *object, const char *method)
 
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const char *signal)
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const char *signal)
 
int receivers (const char *signal) const
 
QObject * sender () const
 
int senderSignalIndex () const
 
virtual void timerEvent (QTimerEvent *event)
 

Additional Inherited Members

- Static Public Member Functions inherited from QObject
bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
bool connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
QString tr (const char *sourceText, const char *disambiguation, int n)
 
QString trUtf8 (const char *sourceText, const char *disambiguation, int n)
 
- Static Protected Member Functions inherited from QObject
QByteArray normalizeSignalSlot (const char *signalSlot)
 
- Properties inherited from QObject
 objectName
 

Detailed Description

Definition at line 43 of file archiveinterface.h.

Constructor & Destructor Documentation

Kerfuffle::ReadOnlyArchiveInterface::ReadOnlyArchiveInterface ( QObject *  parent,
const QVariantList &  args 
)
explicit

Definition at line 37 of file archiveinterface.cpp.

Kerfuffle::ReadOnlyArchiveInterface::~ReadOnlyArchiveInterface ( )
virtual

Definition at line 44 of file archiveinterface.cpp.

Member Function Documentation

virtual bool Kerfuffle::ReadOnlyArchiveInterface::copyFiles ( const QList< QVariant > &  files,
const QString &  destinationDirectory,
ExtractionOptions  options 
)
pure 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.

Implemented in Kerfuffle::CliInterface, LibSingleFileInterface, and KArchiveInterface.

bool Kerfuffle::ReadOnlyArchiveInterface::doKill ( )
virtual

Reimplemented in Kerfuffle::CliInterface, and LibArchiveInterface.

Definition at line 73 of file archiveinterface.cpp.

bool Kerfuffle::ReadOnlyArchiveInterface::doResume ( )
virtual

Reimplemented in Kerfuffle::CliInterface.

Definition at line 85 of file archiveinterface.cpp.

bool Kerfuffle::ReadOnlyArchiveInterface::doSuspend ( )
virtual

Reimplemented in Kerfuffle::CliInterface.

Definition at line 79 of file archiveinterface.cpp.

void Kerfuffle::ReadOnlyArchiveInterface::entry ( const ArchiveEntry &  archiveEntry)
signal
void Kerfuffle::ReadOnlyArchiveInterface::entryRemoved ( const QString &  path)
signal
void Kerfuffle::ReadOnlyArchiveInterface::error ( const QString &  message,
const QString &  details = QString() 
)
signal
QString Kerfuffle::ReadOnlyArchiveInterface::filename ( ) const

Returns the filename of the archive currently being handled.

Definition at line 48 of file archiveinterface.cpp.

void Kerfuffle::ReadOnlyArchiveInterface::finished ( bool  result)
signal
void Kerfuffle::ReadOnlyArchiveInterface::info ( const QString &  info)
signal
bool Kerfuffle::ReadOnlyArchiveInterface::isReadOnly ( ) const
virtual

Returns whether the file can only be read.

Returns
true The file cannot be written.
false The file can be read and written.

Reimplemented in Kerfuffle::ReadWriteArchiveInterface.

Definition at line 53 of file archiveinterface.cpp.

virtual bool Kerfuffle::ReadOnlyArchiveInterface::list ( )
pure 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.

Implemented in Kerfuffle::CliInterface, LibArchiveInterface, LibSingleFileInterface, and KArchiveInterface.

bool Kerfuffle::ReadOnlyArchiveInterface::open ( )
virtual

Definition at line 58 of file archiveinterface.cpp.

QString Kerfuffle::ReadOnlyArchiveInterface::password ( ) const
protected

Definition at line 68 of file archiveinterface.cpp.

void Kerfuffle::ReadOnlyArchiveInterface::progress ( double  progress)
signal
void Kerfuffle::ReadOnlyArchiveInterface::setPassword ( const QString &  password)

Definition at line 63 of file archiveinterface.cpp.

void Kerfuffle::ReadOnlyArchiveInterface::setWaitForFinishedSignal ( bool  value)
protected

Setting this option to true will not exit the thread with the exit of the various functions, but rather when finished(bool) is called.

Doing this one can use the event loop easily while doing the operation.

Definition at line 105 of file archiveinterface.cpp.

void Kerfuffle::ReadOnlyArchiveInterface::userQuery ( Query *  query)
signal
bool Kerfuffle::ReadOnlyArchiveInterface::waitForFinishedSignal ( )

Definition at line 100 of file archiveinterface.cpp.


The documentation for this class was generated from the following files:
  • archiveinterface.h
  • archiveinterface.cpp
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

KDE's Doxygen guidelines are available online.

ark

Skip menu "ark"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdeutils API Reference

Skip menu "kdeutils API Reference"
  • ark
  • filelight
  • kcalc
  • kcharselect
  • kdf
  • kfloppy
  • kgpg
  • ktimer
  • kwallet
  • sweeper

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal