File indexing completed on 2024-05-19 04:39:57
0001 /* 0002 This file is part of the KDE project 0003 0004 SPDX-FileCopyrightText: 2007-2008 Hamish Rodda <rodda@kde.org> 0005 SPDX-FileCopyrightText: 2023 Igor Kushnir <igorkuo@gmail.com> 0006 0007 SPDX-License-Identifier: LGPL-2.0-or-later 0008 */ 0009 0010 #ifndef KSEQUENTIALCOMPOUNDJOB_P_H 0011 #define KSEQUENTIALCOMPOUNDJOB_P_H 0012 0013 #include "ksequentialcompoundjob.h" 0014 0015 #include "kcompoundjob_p.h" 0016 0017 namespace KDevCoreAddons 0018 { 0019 // This is a private class, but it's exported for KIO::Job's 0020 // usage. Other Job classes in KDE Frameworks may use it too. 0021 class KDEVPLATFORMUTIL_EXPORT KSequentialCompoundJobPrivate : public KCompoundJobPrivate 0022 { 0023 public: 0024 KSequentialCompoundJobPrivate(); 0025 ~KSequentialCompoundJobPrivate() override; 0026 0027 bool isCurrentlyRunningSubjob(KJob *job) const; 0028 0029 /** 0030 * Starts m_subjobs.front(). 0031 * 0032 * @pre !m_subjobs.empty() 0033 */ 0034 void startNextSubjob(); 0035 0036 void disconnectSubjob(KJob *job) override; 0037 0038 bool m_abortOnSubjobError = true; 0039 0040 bool m_killingSubjob = false; 0041 bool m_killingFailed = false; 0042 0043 int m_jobIndex = -1; 0044 int m_jobCount = 0; 0045 0046 Q_DECLARE_PUBLIC(KSequentialCompoundJob) 0047 }; 0048 0049 } // namespace KDevCoreAddons 0050 0051 #endif