File indexing completed on 2024-07-14 04:36:54

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 #ifndef QACCESSIBILITYCLIENT_ACCESSIBLEOBJECT_P_H
0008 #define QACCESSIBILITYCLIENT_ACCESSIBLEOBJECT_P_H
0009 
0010 #include <QString>
0011 #include <QSharedPointer>
0012 #include <QAction>
0013 
0014 namespace QAccessibleClient {
0015 
0016 class RegistryPrivate;
0017 
0018 class AccessibleObjectPrivate
0019 {
0020 public:
0021     AccessibleObjectPrivate(RegistryPrivate *reg, const QString &service_, const QString &path_);
0022     ~AccessibleObjectPrivate();
0023 
0024     RegistryPrivate *registryPrivate;
0025     QString service;
0026     QString path;
0027 
0028     bool defunct;
0029     mutable QVector< QSharedPointer<QAction> > actions;
0030     mutable bool actionsFetched;
0031 
0032     bool operator==(const AccessibleObjectPrivate &other) const;
0033 
0034     void setDefunct();
0035 
0036 private:
0037     Q_DISABLE_COPY(AccessibleObjectPrivate)
0038 };
0039 
0040 }
0041 
0042 #endif