kbugbuster
bugjob.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef KBB_BUGJOB_H
00022 #define KBB_BUGJOB_H
00023
00024 #include <kio/jobclasses.h>
00025
00026 #include "bugserver.h"
00027
00028 class BugJob : public KIO::Job
00029 {
00030 Q_OBJECT
00031 public:
00032 BugJob( BugServer * );
00033 virtual ~BugJob();
00034
00035 BugServer *server() const { return mServer; }
00036
00037 signals:
00038 void infoMessage( const QString &text );
00039 void infoPercent( unsigned long percent );
00040 void error( const QString &text );
00041 void jobEnded( BugJob * );
00042
00043 protected:
00044 void start( const KUrl &url );
00045
00046 virtual void process( const QByteArray &data ) = 0;
00047
00048 private slots:
00049 void ioResult( KJob *job );
00050
00051 void ioData( KIO::Job *job, const QByteArray &data );
00052
00053 void ioInfoMessage( KJob *job, const QString &text, const QString & );
00054
00055 void ioInfoPercent( KJob *job, unsigned long percent );
00056
00057 private:
00058 QByteArray m_data;
00059 BugServer *mServer;
00060 };
00061
00062 #endif
00063
00064
00065