leocad/qt/lc_setsdatabasedialog.h
2017-08-21 23:16:32 -07:00

43 lines
813 B
C++

#pragma once
#include <QDialog>
#include <QNetworkAccessManager>
namespace Ui {
class lcSetsDatabaseDialog;
}
class lcSetsDatabaseDialog : public QDialog
{
Q_OBJECT
public:
explicit lcSetsDatabaseDialog(QWidget* Parent);
~lcSetsDatabaseDialog();
QString GetSetName() const;
QString GetSetDescription() const;
QByteArray GetSetInventory() const
{
return mInventory;
}
virtual bool eventFilter(QObject* Object, QEvent* Event) override;
public slots:
void DownloadFinished(QNetworkReply* Reply);
void on_SearchButton_clicked();
void accept();
void Finished(int Result);
private:
QNetworkAccessManager mNetworkManager;
QNetworkReply* mKeyListReply;
QNetworkReply* mSearchReply;
QNetworkReply* mInventoryReply;
QStringList mKeys;
QByteArray mInventory;
Ui::lcSetsDatabaseDialog* ui;
};