File indexing completed on 2024-12-08 04:34:12
0001 /* 0002 SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include "accountmanager.h" 0010 #include "libruqolawidgets_private_export.h" 0011 #include <QStackedWidget> 0012 class CreateNewServerCheckUrlWidget; 0013 class CreateNewServerWidget; 0014 class LIBRUQOLAWIDGETS_TESTS_EXPORT CreateNewServerStackWidget : public QStackedWidget 0015 { 0016 Q_OBJECT 0017 public: 0018 explicit CreateNewServerStackWidget(QWidget *parent = nullptr); 0019 ~CreateNewServerStackWidget() override; 0020 0021 void setExistingAccountName(const QStringList &lst); 0022 [[nodiscard]] AccountManager::AccountManagerInfo accountInfo() const; 0023 0024 void setAccountInfo(const AccountManager::AccountManagerInfo &info); 0025 0026 Q_SIGNALS: 0027 void updateOkButton(bool state); 0028 void authentication(AuthenticationManager::AuthMethodType type); 0029 0030 private: 0031 CreateNewServerCheckUrlWidget *const mCreateNewServerCheckUrlWidget; 0032 CreateNewServerWidget *const mCreateNewServerWidget; 0033 };