1// Copyright (C) 2016 The Qt Company Ltd and/or its subsidiary(-ies).
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
3
4#ifndef MAINWINDOW_H
5#define MAINWINDOW_H
6
7#include <QMainWindow>
8
9QT_FORWARD_DECLARE_CLASS(QTabWidget)
10
11class QDBusViewer;
12
13class MainWindow : public QMainWindow
14{
15 Q_OBJECT
16public:
17 explicit MainWindow(QWidget *parent = 0);
18 ~MainWindow();
19
20 void addCustomBusTab(const QString &bus);
21
22private slots:
23 void about();
24
25private:
26 void saveSettings();
27 void restoreSettings();
28
29 QTabWidget *tabWidget;
30 QDBusViewer *sessionBusViewer;
31 QDBusViewer *systemBusViewer;
32};
33
34#endif // MAINWINDOW_H
35

source code of qttools/src/qdbus/qdbusviewer/mainwindow.h