LeechCraft 0.6.70-14794-g33744ae6ce
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
vkcaptchadialog.h
Go to the documentation of this file.
1/**********************************************************************
2 * LeechCraft - modular cross-platform feature rich internet client.
3 * Copyright (C) 2006-2014 Georg Rudoy
4 *
5 * Distributed under the Boost Software License, Version 1.0.
6 * (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE_1_0.txt)
7 **********************************************************************/
8
9#pragma once
10
11#include <memory>
12#include <QDialog>
13#include <QVariantMap>
14#include "svcauthconfig.h"
15
16class QNetworkAccessManager;
17class QUrl;
18
19namespace Ui
20{
21 class VkCaptchaDialog;
22}
23
24namespace LC::Util::SvcAuth
25{
26 class UTIL_SVCAUTH_API VkCaptchaDialog : public QDialog
27 {
28 Q_OBJECT
29
30 const std::unique_ptr<Ui::VkCaptchaDialog> Ui_;
31
32 const QString Cid_;
33 public:
34 VkCaptchaDialog (const QVariantMap& errorMap, QNetworkAccessManager*, QWidget* = nullptr);
35 VkCaptchaDialog (const QUrl&, const QString&, QNetworkAccessManager*, QWidget* = nullptr);
36 ~VkCaptchaDialog () override;
37
38 void SetContextName (const QString&);
39
40 void done (int) override;
41 signals:
42 void gotCaptcha (const QString& cid, const QString& value);
43 };
44}
void gotCaptcha(const QString &cid, const QString &value)
#define UTIL_SVCAUTH_API
Definition: svcauthconfig.h:16