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 | |
9 | QT_FORWARD_DECLARE_CLASS(QTabWidget) |
10 | |
11 | class QDBusViewer; |
12 | |
13 | class MainWindow : public QMainWindow |
14 | { |
15 | Q_OBJECT |
16 | public: |
17 | explicit MainWindow(QWidget *parent = 0); |
18 | ~MainWindow(); |
19 | |
20 | void addCustomBusTab(const QString &bus); |
21 | |
22 | private slots: |
23 | void about(); |
24 | |
25 | private: |
26 | void saveSettings(); |
27 | void restoreSettings(); |
28 | |
29 | QTabWidget *tabWidget; |
30 | QDBusViewer *sessionBusViewer; |
31 | QDBusViewer *systemBusViewer; |
32 | }; |
33 | |
34 | #endif // MAINWINDOW_H |
35 |