mirror of
https://github.com/leozide/leocad
synced 2024-12-26 21:58:44 +01:00
43 lines
813 B
C++
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;
|
|
};
|