File indexing completed on 2024-05-05 04:38:44
0001 /* 0002 SPDX-FileCopyrightText: 2007-2008 Hamish Rodda <rodda@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #include "executecompositejob.h" 0008 #include "debug.h" 0009 0010 namespace KDevelop { 0011 0012 ExecuteCompositeJob::ExecuteCompositeJob(QObject* parent, const QList<KJob*>& jobs) 0013 : KDevCoreAddons::KSequentialCompoundJob(parent) 0014 { 0015 qCDebug(UTIL) << "execute composite" << jobs; 0016 for (KJob* job : jobs) { 0017 if (addSubjob(job)) { 0018 if (objectName().isEmpty()) { 0019 setObjectName(job->objectName()); 0020 } 0021 } else { 0022 qCWarning(UTIL) << "failed to add null or duplicate subjob" << job; 0023 } 0024 } 0025 } 0026 0027 ExecuteCompositeJob::~ExecuteCompositeJob() = default; 0028 0029 } 0030 0031 #include "moc_executecompositejob.cpp"