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

ark

karchiveplugin.h

Go to the documentation of this file.
00001 /*
00002  * ark -- archiver for the KDE project
00003  *
00004  * Copyright (C) 2007 Henrique Pinto <henrique.pinto@kdemail.net>
00005  *
00006  * This program is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU General Public License
00008  * as published by the Free Software Foundation; either version 2
00009  * of the License, or (at your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
00019  *
00020  */
00021 #ifndef KARCHIVEPLUGIN_H
00022 #define KARCHIVEPLUGIN_H
00023 #include "kerfuffle/archiveinterface.h"
00024 
00025 using namespace Kerfuffle;
00026 
00027 class KArchive;
00028 class KArchiveEntry;
00029 class KArchiveDirectory;
00030 
00031 class KArchiveInterface: public ReadWriteArchiveInterface
00032 {
00033     Q_OBJECT
00034     public:
00035         explicit KArchiveInterface( const QString & filename, QObject *parent = 0 );
00036         ~KArchiveInterface();
00037 
00038         bool list();
00039         bool copyFiles( const QList<QVariant> & files, const QString & destinationDirectory, bool preservePaths );
00040 
00041         bool addFiles( const QStringList & files );
00042         bool deleteFiles( const QList<QVariant> & files );
00043 
00044     private:
00045         bool browseArchive( KArchive *archive );
00046 
00047         bool processDir( const KArchiveDirectory *dir, const QString & prefix = QString() );
00048 
00049         void createEntryFor( const KArchiveEntry *aentry, const QString& prefix );
00050 
00051         KArchive *archive();
00052 
00053         KArchive *m_archive;
00054 };
00055 
00056 #endif // KARCHIVEPLUGIN_H

ark

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

kdeutils

Skip menu "kdeutils"
  • ark
  • kcalc
  • kcharselect
  • kdessh
  • kdf
  • kfloppy
  • kgpg
  • ktimer
  • kwallet
  • okteta
  • printer-applet
  • superkaramba
  • sweeper
Generated for kdeutils by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal