KCoreAddons

kcompositejob.h
1 /*
2  This file is part of the KDE project
3 
4  SPDX-FileCopyrightText: 2006 Kevin Ottens <[email protected]>
5 
6  SPDX-License-Identifier: LGPL-2.0-only
7 */
8 
9 #ifndef KCOMPOSITEJOB_H
10 #define KCOMPOSITEJOB_H
11 
12 #include <kcoreaddons_export.h>
13 #include <kjob.h>
14 
15 #include <QList>
16 
17 class KCompositeJobPrivate;
24 class KCOREADDONS_EXPORT KCompositeJob : public KJob
25 {
26  Q_OBJECT
27 
28 public:
34  explicit KCompositeJob(QObject *parent = nullptr);
35 
39  ~KCompositeJob() override;
40 
41 protected:
52  virtual bool addSubjob(KJob *job);
53 
62  virtual bool removeSubjob(KJob *job);
63 
69  bool hasSubjobs() const;
70 
76  const QList<KJob *> &subjobs() const;
77 
84  void clearSubjobs();
85 
86 protected Q_SLOTS:
94  virtual void slotResult(KJob *job);
95 
104  virtual void slotInfoMessage(KJob *job, const QString &plain, const QString &rich);
105 
106 protected:
107  KCompositeJob(KCompositeJobPrivate &dd, QObject *parent);
108 private:
109  Q_DECLARE_PRIVATE(KCompositeJob)
110 };
111 
112 #endif
The base class for all jobs able to be composed of one or more subjobs.
Definition: kcompositejob.h:24
The base class for all jobs.
Definition: kjob.h:75
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Aug 6 2020 23:01:05 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.