2017-08-19 19:12:25 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QDialog>
|
2017-08-20 22:47:53 +02:00
|
|
|
#include <QNetworkAccessManager>
|
2017-08-19 19:12:25 +02:00
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class lcSetsDatabaseDialog;
|
|
|
|
}
|
|
|
|
|
|
|
|
class lcSetsDatabaseDialog : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2017-08-20 22:47:53 +02:00
|
|
|
explicit lcSetsDatabaseDialog(QWidget* Parent);
|
2017-08-19 19:12:25 +02:00
|
|
|
~lcSetsDatabaseDialog();
|
|
|
|
|
2017-08-20 22:47:53 +02:00
|
|
|
QString GetSetName() const;
|
|
|
|
QString GetSetDescription() const;
|
|
|
|
|
|
|
|
QByteArray GetSetInventory() const
|
|
|
|
{
|
|
|
|
return mInventory;
|
|
|
|
}
|
|
|
|
|
2017-08-22 08:16:32 +02:00
|
|
|
virtual bool eventFilter(QObject* Object, QEvent* Event) override;
|
|
|
|
|
2017-08-20 22:47:53 +02:00
|
|
|
public slots:
|
|
|
|
void DownloadFinished(QNetworkReply* Reply);
|
|
|
|
void on_SearchButton_clicked();
|
2017-08-27 21:10:52 +02:00
|
|
|
void accept() override;
|
2017-08-20 22:47:53 +02:00
|
|
|
void Finished(int Result);
|
|
|
|
|
2017-08-19 19:12:25 +02:00
|
|
|
private:
|
2017-08-20 22:47:53 +02:00
|
|
|
QNetworkAccessManager mNetworkManager;
|
|
|
|
QNetworkReply* mKeyListReply;
|
|
|
|
QNetworkReply* mSearchReply;
|
|
|
|
QNetworkReply* mInventoryReply;
|
|
|
|
QStringList mKeys;
|
|
|
|
QByteArray mInventory;
|
|
|
|
|
2017-08-19 19:12:25 +02:00
|
|
|
Ui::lcSetsDatabaseDialog* ui;
|
|
|
|
};
|