7#include <QtWidgets/QWidget>
8#include <QtDBus/QDBusConnection>
9#include <QtCore/QRegularExpression>
14QT_FORWARD_DECLARE_CLASS(QTreeView)
15QT_FORWARD_DECLARE_CLASS(QTreeWidget)
16QT_FORWARD_DECLARE_CLASS(QStringListModel)
17QT_FORWARD_DECLARE_CLASS(QLineEdit)
18QT_FORWARD_DECLARE_CLASS(QTextBrowser)
19QT_FORWARD_DECLARE_CLASS(QDomDocument)
20QT_FORWARD_DECLARE_CLASS(QDomElement)
21QT_FORWARD_DECLARE_CLASS(QSplitter)
22QT_FORWARD_DECLARE_CLASS(QSettings)
26 QString mService, mPath, mInterface, mName;
36 void saveState(QSettings *settings)
const;
44 void showServicesViewContextMenu(
const QPoint &);
45 void showTreeViewContextMenu(
const QPoint &);
46 void connectionRequested(
const BusSignature &sig);
47 void callMethod(
const BusSignature &sig);
48 void getProperty(
const BusSignature &sig);
49 void setProperty(
const BusSignature &sig);
50 void dumpMessage(
const QDBusMessage &msg);
51 void dumpError(
const QDBusError &error);
52 void refreshChildren();
54 void serviceOwnerChanged(
const QString &name,
const QString &oldOwner,
const QString &newOwner);
56 void serviceFilterReturnPressed();
57 void activate(
const QModelIndex &item);
59 void logError(
const QString &msg);
60 void anchorClicked(
const QUrl &url);
63 void serviceRegistered(
const QString &service);
64 void logMessage(
const QString &msg);
66 bool eventFilter(QObject *obj, QEvent *event)
override;
69 QString currentService;
71 QAction *refreshChildrenAction;
72 QAction *copyServiceNameAction;
73 QAction *copyObjectPathAction;
74 QAction *copyInterfaceNameAction;
75 QAction *copyMemberSignalNameAction;
76 QAction *copyMemberMethodNameAction;
77 QAction *copyMemberPropertyNameAction;
78 QAction *connectAction;
80 QStringListModel *servicesModel;
82 QLineEdit *serviceFilterLine;
83 QTableView *servicesView;
85 QSplitter *topSplitter;
87 QRegularExpression objectPathRegExp;
void addCustomBusTab(const QString &bus)
MainWindow(QWidget *parent=nullptr)
bool eventFilter(QObject *obj, QEvent *event) override
Filters events if this object has been installed as an event filter for the watched object.
void saveState(QSettings *settings) const
void restoreState(const QSettings *settings)
void showEvent(QShowEvent *) override
This event handler can be reimplemented in a subclass to receive widget show events which are passed ...
The QTableView class provides a default model/view implementation of a table view.
static QString sessionTabGroup()
static QString systemTabGroup()
static QString windowGeometryKey()