File indexing completed on 2024-12-01 04:36:53

0001 /*
0002    SPDX-FileCopyrightText: 2022-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include "libruqolawidgets_private_export.h"
0010 #include <QTreeView>
0011 class LIBRUQOLAWIDGETS_TESTS_EXPORT MyAccountPersonalAccessTokenTreeView : public QTreeView
0012 {
0013     Q_OBJECT
0014 public:
0015     explicit MyAccountPersonalAccessTokenTreeView(QWidget *parent = nullptr);
0016     ~MyAccountPersonalAccessTokenTreeView() override;
0017 
0018 Q_SIGNALS:
0019     void removeToken(const QString &tokenName);
0020     void createToken();
0021     void regenerateToken(const QString &tokenName);
0022 
0023 private:
0024     LIBRUQOLAWIDGETS_NO_EXPORT void slotCustomContextMenuRequested(const QPoint &pos);
0025     LIBRUQOLAWIDGETS_NO_EXPORT void removeClicked(const QString &tokenName);
0026 };