KDECore
kcompositejob.h
Go to the documentation of this file.
00001 /* This file is part of the KDE project 00002 Copyright (C) 2006 Kevin Ottens <ervin@kde.org> 00003 00004 This library is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU Library General Public 00006 License version 2 as published by the Free Software Foundation. 00007 00008 This library is distributed in the hope that it will be useful, 00009 but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00011 Library General Public License for more details. 00012 00013 You should have received a copy of the GNU Library General Public License 00014 along with this library; see the file COPYING.LIB. If not, write to 00015 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00016 Boston, MA 02110-1301, USA. 00017 00018 */ 00019 00020 #ifndef KCOMPOSITEJOB_H 00021 #define KCOMPOSITEJOB_H 00022 00023 #include <kdecore_export.h> 00024 #include <kjob.h> 00025 00026 #include <QtCore/QList> 00027 00028 class KCompositeJobPrivate; 00033 class KDECORE_EXPORT KCompositeJob : public KJob 00034 { 00035 Q_OBJECT 00036 00037 public: 00043 explicit KCompositeJob( QObject *parent = 0 ); 00044 00048 virtual ~KCompositeJob(); 00049 00050 protected: 00059 virtual bool addSubjob( KJob *job ); 00060 00067 virtual bool removeSubjob( KJob *job ); 00068 00074 bool hasSubjobs(); 00075 00081 const QList<KJob*> &subjobs() const; 00082 00086 void clearSubjobs(); 00087 00088 protected Q_SLOTS: 00096 virtual void slotResult( KJob *job ); 00097 00106 virtual void slotInfoMessage( KJob *job, const QString &plain, const QString &rich ); 00107 00108 protected: 00109 KCompositeJob(KCompositeJobPrivate &dd, QObject *parent); 00110 private: 00111 Q_DECLARE_PRIVATE(KCompositeJob) 00112 }; 00113 00114 #endif
KDE 4.6 API Reference