LeechCraft  0.6.70-15082-g543737046d
Modular cross-platform feature rich live environment.
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 
16 class QNetworkAccessManager;
17 class QUrl;
18 
19 namespace Ui
20 {
21  class VkCaptchaDialog;
22 }
23 
24 namespace 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 }
LC::Util::SvcAuth::VkCaptchaDialog
Definition: vkcaptchadialog.h:26
UTIL_SVCAUTH_API
#define UTIL_SVCAUTH_API
Definition: svcauthconfig.h:16
Ui
Definition: backendselector.h:15
svcauthconfig.h
LC::Util::SvcAuth
Definition: vkauthmanager.cpp:30