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

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 "misc/searchtreebasewidget.h"
0011 class QWidget;
0012 class LIBRUQOLAWIDGETS_TESTS_EXPORT MyAccountManageDeviceConfigureWidget : public SearchTreeBaseWidget
0013 {
0014     Q_OBJECT
0015 public:
0016     explicit MyAccountManageDeviceConfigureWidget(RocketChatAccount *account, QWidget *parent = nullptr);
0017     ~MyAccountManageDeviceConfigureWidget() override;
0018 
0019 protected:
0020     void updateLabel() override;
0021     void slotLoadElements(int offset = -1, int count = -1, const QString &searchName = {}) override;
0022     void slotCustomContextMenuRequested(const QPoint &pos) override;
0023 
0024 private:
0025     LIBRUQOLAWIDGETS_NO_EXPORT void slotDeviceRemoved(const QString &emojiId);
0026     LIBRUQOLAWIDGETS_NO_EXPORT void slotDisconnectDevice(const QModelIndex &index);
0027     [[nodiscard]] LIBRUQOLAWIDGETS_NO_EXPORT QString displayShowMessage() const;
0028 };