• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KIO

deletejob.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 /* This file is part of the KDE libraries
00003     Copyright 2000       Stephan Kulow <coolo@kde.org>
00004     Copyright 2000-2006  David Faure <faure@kde.org>
00005 
00006     This library is free software; you can redistribute it and/or
00007     modify it under the terms of the GNU Library General Public
00008     License as published by the Free Software Foundation; either
00009     version 2 of the License, or (at your option) any later version.
00010 
00011     This library 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 GNU
00014     Library General Public License for more details.
00015 
00016     You should have received a copy of the GNU Library General Public License
00017     along with this library; see the file COPYING.LIB.  If not, write to
00018     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00019     Boston, MA 02110-1301, USA.
00020 */
00021 
00022 #ifndef KIO_DELETEJOB_H
00023 #define KIO_DELETEJOB_H
00024 
00025 #include <QtCore/QStringList>
00026 
00027 #include <kurl.h>
00028 #include "global.h"
00029 
00030 #include "jobclasses.h"
00031 
00032 class QTimer;
00033 
00034 namespace KIO {
00035 
00036     class DeleteJobPrivate;
00043     class KIO_EXPORT DeleteJob : public Job {
00044     Q_OBJECT
00045 
00046     public:
00047         virtual ~DeleteJob();
00048 
00053         KUrl::List urls() const;
00054 
00055     Q_SIGNALS:
00056 
00062         void totalFiles( KJob *job, unsigned long files );
00068         void totalDirs( KJob *job, unsigned long dirs );
00069 
00075         void processedFiles( KIO::Job *job, unsigned long files );
00081         void processedDirs( KIO::Job *job, unsigned long dirs );
00082 
00089         void deleting( KIO::Job *job, const KUrl& file );
00090 
00091     protected Q_SLOTS:
00092         virtual void slotResult( KJob *job );
00093 
00094     protected:
00095         DeleteJob(DeleteJobPrivate &dd);
00096 
00097     private:
00098         Q_PRIVATE_SLOT(d_func(), void slotStart())
00099         Q_PRIVATE_SLOT(d_func(), void slotEntries( KIO::Job*, const KIO::UDSEntryList& list ))
00100         Q_PRIVATE_SLOT(d_func(), void slotReport())
00101         Q_DECLARE_PRIVATE(DeleteJob)
00102     };
00103 
00111     KIO_EXPORT DeleteJob *del( const KUrl& src, JobFlags flags = DefaultFlags );
00112 
00120     KIO_EXPORT DeleteJob *del( const KUrl::List& src, JobFlags flags = DefaultFlags );
00121 }
00122 
00123 #endif

KIO

Skip menu "KIO"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • KIO
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs 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