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

KIO

filejob.h

Go to the documentation of this file.
00001 /*
00002  *  This file is part of the KDE libraries
00003  *  Copyright (c) 2006 Allan Sandfeld Jensen <kde@carewolf.com>
00004  *
00005  *  This library is free software; you can redistribute it and/or
00006  *  modify it under the terms of the GNU Library General Public
00007  *  License version 2 as published by the Free Software Foundation.
00008  *
00009  *  This library is distributed in the hope that it will be useful,
00010  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012  *  Library General Public License for more details.
00013  *
00014  *  You should have received a copy of the GNU Library General Public License
00015  *  along with this library; see the file COPYING.LIB.  If not, write to
00016  *  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017  *  Boston, MA 02110-1301, USA.
00018  *
00019  **/
00020 
00021 #ifndef KIO_FILEJOB_H
00022 #define KIO_FILEJOB_H
00023 
00024 #include <kurl.h>
00025 #include <kio/jobclasses.h>
00026 
00027 namespace KIO {
00028 
00029 class FileJobPrivate;
00037 class KIO_EXPORT FileJob : public SimpleJob
00038 {
00039 Q_OBJECT
00040 
00041 public:
00042     ~FileJob();
00043 
00050     void read( KIO::filesize_t size );
00051 
00057     void write( const QByteArray &data );
00058 
00064     void close();
00065 
00072     void seek( KIO::filesize_t offset );
00073 
00079     KIO::filesize_t size();
00080 
00081 Q_SIGNALS:
00087     void data( KIO::Job *job, const QByteArray &data );
00088 
00095     void redirection( KIO::Job *job, const KUrl &url );
00096 
00102     void mimetype( KIO::Job *job, const QString &type );
00103 
00109     void open(KIO::Job *job);
00110 
00116     void written( KIO::Job *job, KIO::filesize_t written);
00117 
00122     void close(KIO::Job *job);
00123 
00129     void position( KIO::Job *job, KIO::filesize_t offset);
00130 
00131 protected:
00132     FileJob(FileJobPrivate &dd);
00133 
00134 private:
00135     Q_PRIVATE_SLOT(d_func(), void slotRedirection( const KUrl &url))
00136     Q_PRIVATE_SLOT(d_func(), void slotData( const QByteArray &data))
00137     Q_PRIVATE_SLOT(d_func(), void slotMimetype( const QString &mimetype ))
00138     Q_PRIVATE_SLOT(d_func(), void slotOpen( ))
00139     Q_PRIVATE_SLOT(d_func(), void slotWritten( KIO::filesize_t ))
00140     Q_PRIVATE_SLOT(d_func(), void slotFinished( ))
00141     Q_PRIVATE_SLOT(d_func(), void slotPosition( KIO::filesize_t ))
00142     Q_PRIVATE_SLOT(d_func(), void slotTotalSize( KIO::filesize_t ))
00143 
00144     Q_DECLARE_PRIVATE(FileJob)
00145 };
00146 
00147 } // namespace
00148 
00149 #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
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.7
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