File indexing completed on 2025-01-26 03:28:30

0001 /*
0002     SPDX-FileCopyrightText: 2012 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 #pragma once
0008 #include <qaccessibilityclient/accessibleobject.h>
0009 
0010 class AccessibleWrapper
0011 {
0012 public:
0013     explicit AccessibleWrapper(const QAccessibleClient::AccessibleObject &object, AccessibleWrapper *parent);
0014     ~AccessibleWrapper();
0015 
0016     QAccessibleClient::AccessibleObject acc;
0017 
0018     [[nodiscard]] int childCount() const;
0019     [[nodiscard]] AccessibleWrapper *child(int index);
0020     [[nodiscard]] AccessibleWrapper *parent() const;
0021 
0022 private:
0023     friend class AccessibleObjectTreeModel;
0024 
0025     AccessibleWrapper *const mParent;
0026     QList<AccessibleWrapper *> mChildren;
0027 };