1 /*
2     SPDX-FileCopyrightText: 1998 Helge Deller <deller@gmx.de>
3 
4     SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
5 */
6 
7 #ifndef _INFO_H_
8 #define _INFO_H_
9 
10 #include <QLabel>
11 #include <QPushButton>
12 #include <QStackedWidget>
13 #include <QTreeWidget>
14 #include <QWidget>
15 
16 #include <KAboutData>
17 #include <KCModule>
18 
19 #include "os_current.h"
20 
21 class KInfoListWidget : public KCModule
22 {
23 public:
24     KInfoListWidget(const QString &_title, QWidget *parent, bool _getlistbox(QTreeWidget *) = nullptr);
25 
26     void load() override;
27     QString quickHelp() const override;
28 
29 private:
30     QTreeWidget *tree;
31     bool (*getlistbox)(QTreeWidget *);
32     QString title;
33 
34     QLabel *noInfoText;
35     QString errorString;
36     QStackedWidget *widgetStack;
37 };
38 
39 #endif
40