Warning, file /libraries/libqaccessibilityclient/examples/accessibleapps/clientcachedialog.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 SPDX-FileCopyrightText: 2012 Frederik Gladhorn <gladhorn@kde.org> 0003 SPDX-FileCopyrightText: 2012 Sebastian Sauer <sebastian.sauer@kdab.com> 0004 0005 0006 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0007 */ 0008 0009 #ifndef CLIENTCACHEDIALOG_H 0010 #define CLIENTCACHEDIALOG_H 0011 0012 #include <QDialog> 0013 0014 #include "qaccessibilityclient/accessibleobject.h" 0015 #include "qaccessibilityclient/registry.h" 0016 0017 class QComboBox; 0018 class QLabel; 0019 class QStandardItemModel; 0020 class QTreeView; 0021 0022 class ClientCacheDialog : public QDialog 0023 { 0024 Q_OBJECT 0025 public: 0026 ClientCacheDialog(QAccessibleClient::Registry *registry, QWidget *parent = nullptr); 0027 private Q_SLOTS: 0028 void clearCache(); 0029 void cacheStrategyChanged(); 0030 void updateView(); 0031 private: 0032 QAccessibleClient::Registry *m_registry; 0033 QAccessibleClient::RegistryPrivateCacheApi *m_cache; 0034 QTreeView *m_view; 0035 QStandardItemModel *m_model; 0036 QComboBox *m_cacheCombo; 0037 QLabel *m_countLabel; 0038 }; 0039 0040 #endif