File indexing completed on 2024-10-13 12:39:48

0001 /*
0002     SPDX-FileCopyrightText: 2018 Frederik Gladhorn <gladhorn@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0005 */
0006 
0007 #include "qaccessibilityclient/accessibleobject.h"
0008 #include "qaccessibilityclient/registry.h"
0009 
0010 #ifndef DUMPER_H
0011 #define DUMPER_H
0012 
0013 class Dumper : public QObject
0014 {
0015     Q_OBJECT
0016 public:
0017     explicit Dumper(QObject *parent = nullptr);
0018     void run(const QString &appname) const;
0019     void printChild(const QAccessibleClient::AccessibleObject &object, int indent = 0) const;
0020     void showStates(bool show) { m_showStates = show; }
0021 
0022 private:
0023     bool m_showStates = false;
0024 };
0025 
0026 #endif