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

ark

  • sources
  • kde-4.14
  • kdeutils
  • ark
  • plugins
  • libsinglefileplugin
singlefileplugin.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2009 Raphael Kubo da Costa <rakuco@FreeBSD.org>
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions
6  * are met:
7  *
8  * 1. Redistributions of source code must retain the above copyright
9  * notice, this list of conditions and the following disclaimer.
10  * 2. Redistributions in binary form must reproduce the above copyright
11  * notice, this list of conditions and the following disclaimer in the
12  * documentation and/or other materials provided with the distribution.
13  *
14  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
15  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
16  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
17  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
18  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES ( INCLUDING, BUT
19  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
20  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION ) HOWEVER CAUSED AND ON ANY
21  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22  * ( INCLUDING NEGLIGENCE OR OTHERWISE ) ARISING IN ANY WAY OUT OF THE USE OF
23  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24  */
25 
26 #ifndef SINGLEFILEPLUGIN_H
27 #define SINGLEFILEPLUGIN_H
28 
29 #include "kerfuffle/archiveinterface.h"
30 
31 class LibSingleFileInterface : public Kerfuffle::ReadOnlyArchiveInterface
32 {
33  Q_OBJECT
34 
35 public:
36  LibSingleFileInterface(QObject *parent, const QVariantList & args);
37  virtual ~LibSingleFileInterface();
38 
39  virtual bool list();
40  virtual bool copyFiles(const QList<QVariant> & files, const QString & destinationDirectory, Kerfuffle::ExtractionOptions options);
41 
42 protected:
43  const QString uncompressedFileName() const;
44  QString overwriteFileName(QString& filename);
45 
46  QString m_mimeType;
47  QStringList m_possibleExtensions;
48 };
49 
50 #endif // SINGLEFILEPLUGIN_H
LibSingleFileInterface::~LibSingleFileInterface
virtual ~LibSingleFileInterface()
Definition: singlefileplugin.cpp:44
LibSingleFileInterface::uncompressedFileName
const QString uncompressedFileName() const
Definition: singlefileplugin.cpp:144
Kerfuffle::ReadOnlyArchiveInterface::filename
QString filename() const
Returns the filename of the archive currently being handled.
Definition: archiveinterface.cpp:48
Kerfuffle::ReadOnlyArchiveInterface
Definition: archiveinterface.h:43
LibSingleFileInterface::overwriteFileName
QString overwriteFileName(QString &filename)
Definition: singlefileplugin.cpp:121
archiveinterface.h
QHash
QObject
LibSingleFileInterface::m_mimeType
QString m_mimeType
Definition: singlefileplugin.h:46
LibSingleFileInterface
Definition: singlefileplugin.h:31
LibSingleFileInterface::copyFiles
virtual bool copyFiles(const QList< QVariant > &files, const QString &destinationDirectory, Kerfuffle::ExtractionOptions options)
Extract files from archive.
Definition: singlefileplugin.cpp:48
LibSingleFileInterface::LibSingleFileInterface
LibSingleFileInterface(QObject *parent, const QVariantList &args)
Definition: singlefileplugin.cpp:39
QString
QList
QStringList
LibSingleFileInterface::m_possibleExtensions
QStringList m_possibleExtensions
Definition: singlefileplugin.h:47
LibSingleFileInterface::list
virtual bool list()
List archive contents.
Definition: singlefileplugin.cpp:105
QObject::parent
QObject * parent() 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

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