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 <QWidget>
0011 class RocketChatAccount;
0012 class QLineEdit;
0013 class MyAccountPersonalAccessTokenTreeView;
0014 class PersonalAccessTokenInfosModel;
0015 class PersonalAccessTokenInfosFilterProxyModel;
0016 class LIBRUQOLAWIDGETS_TESTS_EXPORT MyAccountPersonalAccessTokenConfigureWidget : public QWidget
0017 {
0018     Q_OBJECT
0019 public:
0020     explicit MyAccountPersonalAccessTokenConfigureWidget(RocketChatAccount *account, QWidget *parent = nullptr);
0021     ~MyAccountPersonalAccessTokenConfigureWidget() override;
0022 
0023     void initialize();
0024 
0025 private:
0026     LIBRUQOLAWIDGETS_NO_EXPORT void slotCreateToken();
0027     LIBRUQOLAWIDGETS_NO_EXPORT void slotRemoveToken(const QString &tokenName);
0028     LIBRUQOLAWIDGETS_NO_EXPORT void slotRegenerateToken(const QString &tokenName);
0029     LIBRUQOLAWIDGETS_NO_EXPORT void slotTextChanged(const QString &str);
0030     RocketChatAccount *const mRocketChatAccount;
0031     QLineEdit *const mSearchLineWidget;
0032     MyAccountPersonalAccessTokenTreeView *const mPersonalAccessTokenTreeView;
0033     PersonalAccessTokenInfosModel *const mPersonalAccessTokenModel;
0034     PersonalAccessTokenInfosFilterProxyModel *const mPersonalAccessTokenFilterProxyModel;
0035 };