• 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
  • karchiveplugin
karchiveplugin.h
Go to the documentation of this file.
1 /*
2  * ark -- archiver for the KDE project
3  *
4  * Copyright (C) 2007 Henrique Pinto <henrique.pinto@kdemail.net>
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * as published by the Free Software Foundation; either version 2
9  * of the License, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19  *
20  */
21 #ifndef KARCHIVEPLUGIN_H
22 #define KARCHIVEPLUGIN_H
23 #include "kerfuffle/archiveinterface.h"
24 
25 using namespace Kerfuffle;
26 
27 class KArchive;
28 class KArchiveEntry;
29 class KArchiveDirectory;
30 
31 class KArchiveInterface: public ReadWriteArchiveInterface
32 {
33  Q_OBJECT
34 public:
35  explicit KArchiveInterface(QObject *parent = 0, const QVariantList &args = QVariantList());
36  ~KArchiveInterface();
37 
38  bool list();
39  bool copyFiles(const QList<QVariant> &files, const QString &destinationDirectory, ExtractionOptions options);
40 
41  bool addFiles(const QStringList &files, const CompressionOptions &options);
42  bool deleteFiles(const QList<QVariant> & files);
43 
44 private:
45  enum {
46  OverwriteYes,
47  OverwriteSkip,
48  OverwriteAll,
49  OverwriteAutoSkip,
50  OverwriteCancel
51  };
52 
53  bool browseArchive(KArchive *archive);
54 
55  bool processDir(const KArchiveDirectory *dir, const QString & prefix = QString());
56 
57  void createEntryFor(const KArchiveEntry *aentry, const QString& prefix);
58 
59  QString permissionsString(mode_t perm);
60 
61  void getAllEntries(const KArchiveDirectory *dir, const QString &prefix, QList< QVariant > &list);
62 
63  int handleFileExistsMessage(const QString &dir, const QString &fileName);
64 
65  KArchive *archive();
66 
67  KArchive *m_archive;
68 };
69 
70 #endif // KARCHIVEPLUGIN_H
Kerfuffle::ReadWriteArchiveInterface
Definition: archiveinterface.h:121
archiveinterface.h
QHash
QObject
QString
QList
QStringList
KArchiveInterface
Definition: karchiveplugin.h:31
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