2017-08-19 10:12:25 -07:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QDialog>
|
2018-04-14 11:44:39 -07:00
|
|
|
|
|
|
|
class lcHttpReply;
|
|
|
|
class lcHttpManager;
|
2017-08-19 10:12:25 -07:00
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class lcSetsDatabaseDialog;
|
|
|
|
}
|
|
|
|
|
|
|
|
class lcSetsDatabaseDialog : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2017-08-20 13:47:53 -07:00
|
|
|
explicit lcSetsDatabaseDialog(QWidget* Parent);
|
2017-08-19 10:12:25 -07:00
|
|
|
~lcSetsDatabaseDialog();
|
|
|
|
|
2017-08-20 13:47:53 -07:00
|
|
|
QString GetSetName() const;
|
|
|
|
QString GetSetDescription() const;
|
|
|
|
|
|
|
|
QByteArray GetSetInventory() const
|
|
|
|
{
|
|
|
|
return mInventory;
|
|
|
|
}
|
|
|
|
|
2017-08-21 23:16:32 -07:00
|
|
|
virtual bool eventFilter(QObject* Object, QEvent* Event) override;
|
|
|
|
|
2017-08-20 13:47:53 -07:00
|
|
|
public slots:
|
2018-04-14 11:44:39 -07:00
|
|
|
void DownloadFinished(lcHttpReply* Reply);
|
2017-08-20 13:47:53 -07:00
|
|
|
void on_SearchButton_clicked();
|
2017-08-27 12:10:52 -07:00
|
|
|
void accept() override;
|
2017-08-20 13:47:53 -07:00
|
|
|
void Finished(int Result);
|
|
|
|
|
2017-09-16 12:20:17 -07:00
|
|
|
protected:
|
2018-04-14 11:44:39 -07:00
|
|
|
lcHttpManager* mHttpManager;
|
2017-09-16 12:20:17 -07:00
|
|
|
|
|
|
|
lcHttpReply* mKeyListReply;
|
|
|
|
lcHttpReply* mSearchReply;
|
|
|
|
lcHttpReply* mInventoryReply;
|
2017-08-20 13:47:53 -07:00
|
|
|
QStringList mKeys;
|
|
|
|
QByteArray mInventory;
|
|
|
|
|
2017-08-19 10:12:25 -07:00
|
|
|
Ui::lcSetsDatabaseDialog* ui;
|
|
|
|
};
|