• Skip to content
  • Skip to link menu
KDE 4.5 API Reference
  • KDE API Reference
  • kdesdk
  • Sitemap
  • Contact Us
 

kbugbuster

bugjob.h

Go to the documentation of this file.
00001 /* This file is part of kdesdk / KBugBuster.
00002 
00003    Copyright 2008  KBugBuster Authors <kde-ev-board@kde.org>
00004 
00005    This program is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU General Public License as
00007    published by the Free Software Foundation; either version 2 of
00008    the License or (at your option) version 3 or any later version
00009    accepted by the membership of KDE e.V. (or its successor approved
00010    by the membership of KDE e.V.), which shall act as a proxy 
00011    defined in Section 14 of version 3 of the license.
00012 
00013    This program is distributed in the hope that it will be useful,
00014    but WITHOUT ANY WARRANTY; without even the implied warranty of
00015    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016    GNU General Public License for more details.
00017 
00018    You should have received a copy of the GNU General Public License
00019    along with this program.  If not, see <http://www.gnu.org/licenses/>.
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 /*, const KParts::URLArgs &args = KParts::URLArgs()*/ );
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  * vim:sw=4:ts=4:et
00065  */

kbugbuster

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

kdesdk

Skip menu "kdesdk"
  • kapptemplate
  • kate
  •     kate
  • kbugbuster
  • kcachegrind
  • kompare
  • lokalize
  • umbrello
  •   umbrello
Generated for kdesdk by doxygen 1.5.9-20090814
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