File indexing completed on 2024-04-28 15:34:47
0001 /* -*- C++ -*- 0002 This file is part of ThreadWeaver. 0003 0004 SPDX-FileCopyrightText: 2005-2013 Mirko Boehm <mirko@kde.org> 0005 0006 SPDX-License-Identifier: LGPL-2.0-or-later 0007 */ 0008 0009 #ifndef JOBLOGGINGWEAVER_H 0010 #define JOBLOGGINGWEAVER_H 0011 0012 #include "JobLoggingDecorator.h" 0013 #include "src/jobpointer.h" 0014 #include "src/weaver.h" 0015 0016 class JobLoggingWeaver : public ThreadWeaver::Weaver 0017 { 0018 Q_OBJECT 0019 public: 0020 explicit JobLoggingWeaver(QObject *parent = nullptr); 0021 void enqueue(const QVector<ThreadWeaver::JobPointer> &jobs) override; 0022 0023 private: 0024 JobLoggingDecoratorCollector collector_; 0025 }; 0026 0027 #endif // JOBLOGGINGWEAVER_H