File indexing completed on 2024-05-12 05:12:46

0001 /*
0002     This file is part of Akonadi.
0003 
0004     SPDX-FileCopyrightText: 2009 Till Adam <adam@kde.org>
0005 
0006     SPDX-License-Identifier: GPL-2.0-or-later
0007 */
0008 
0009 #pragma once
0010 
0011 #include <QWidget>
0012 
0013 #include <memory>
0014 
0015 class QModelIndex;
0016 class QFile;
0017 class JobTrackerWidgetPrivate;
0018 
0019 class JobTrackerWidget : public QWidget
0020 {
0021     Q_OBJECT
0022 
0023 public:
0024     explicit JobTrackerWidget(const char *name, QWidget *parent, const QString &checkboxText);
0025     ~JobTrackerWidget() override;
0026 
0027 private:
0028     void contextMenu(const QPoint &pos);
0029     void slotSaveToFile();
0030     void selectOnlyErrorChanged(bool state);
0031     void searchColumnChanged(int index);
0032     void expandAll();
0033     void copyJobInfo();
0034     void collapseAll();
0035     void textFilterChanged(const QString &str);
0036     void writeRows(const QModelIndex &parent, QFile &file, int indentLevel);
0037 
0038 private:
0039     std::unique_ptr<JobTrackerWidgetPrivate> const d;
0040 };