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
|
2023-01-02 06:25:33 +03:00
|
|
|
// SPDX-FileCopyrightText: 2023 Nheko Contributors
|
2021-03-05 02:35:15 +03:00
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
2018-03-12 23:23:26 +03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
|
2018-09-20 09:59:14 +03:00
|
|
|
class QPushButton;
|
2018-03-12 23:23:26 +03:00
|
|
|
|
|
|
|
namespace dialogs {
|
|
|
|
|
2022-10-10 15:38:29 +03:00
|
|
|
class ReCaptcha final : public QWidget
|
2018-03-12 23:23:26 +03:00
|
|
|
{
|
2021-09-18 01:22:33 +03:00
|
|
|
Q_OBJECT
|
2018-03-12 23:23:26 +03:00
|
|
|
|
|
|
|
public:
|
2021-09-18 01:22:33 +03:00
|
|
|
ReCaptcha(const QString &session, QWidget *parent = nullptr);
|
2018-03-12 23:23:26 +03:00
|
|
|
|
|
|
|
signals:
|
2021-09-18 01:22:33 +03:00
|
|
|
void confirmation();
|
|
|
|
void cancel();
|
2018-03-12 23:23:26 +03:00
|
|
|
|
|
|
|
private:
|
2021-09-18 01:22:33 +03:00
|
|
|
QPushButton *openCaptchaBtn_;
|
|
|
|
QPushButton *confirmBtn_;
|
|
|
|
QPushButton *cancelBtn_;
|
2018-03-12 23:23:26 +03:00
|
|
|
};
|
|
|
|
} // dialogs
|