2021-03-05 02:35:15 +03:00
|
|
|
// SPDX-FileCopyrightText: 2021 Nheko Contributors
|
2022-01-01 06:57:53 +03:00
|
|
|
// SPDX-FileCopyrightText: 2022 Nheko Contributors
|
2021-03-05 02:35:15 +03:00
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
2020-02-23 13:42:29 +03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
|
|
|
|
class QPushButton;
|
|
|
|
class QLabel;
|
|
|
|
|
|
|
|
namespace dialogs {
|
|
|
|
|
|
|
|
class FallbackAuth : public QWidget
|
|
|
|
{
|
2021-09-18 01:22:33 +03:00
|
|
|
Q_OBJECT
|
2020-02-23 13:42:29 +03:00
|
|
|
|
|
|
|
public:
|
2021-09-18 01:22:33 +03:00
|
|
|
FallbackAuth(const QString &authType, const QString &session, QWidget *parent = nullptr);
|
2020-02-23 13:42:29 +03:00
|
|
|
|
|
|
|
signals:
|
2021-09-18 01:22:33 +03:00
|
|
|
void confirmation();
|
|
|
|
void cancel();
|
2020-02-23 13:42:29 +03:00
|
|
|
|
|
|
|
private:
|
2021-09-18 01:22:33 +03:00
|
|
|
QPushButton *openBtn_;
|
|
|
|
QPushButton *confirmBtn_;
|
|
|
|
QPushButton *cancelBtn_;
|
2020-02-23 13:42:29 +03:00
|
|
|
};
|
|
|
|
} // dialogs
|