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