leocad/qt/lc_setsdatabasedialog.h

47 lines
807 B
C
Raw Normal View History

2017-08-19 19:12:25 +02:00
#pragma once
#include <QDialog>
2018-04-14 20:44:39 +02:00
class lcHttpReply;
class lcHttpManager;
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;
}
bool eventFilter(QObject* Object, QEvent* Event) override;
2017-08-20 22:47:53 +02:00
public slots:
2018-04-14 20:44:39 +02:00
void DownloadFinished(lcHttpReply* Reply);
2017-08-20 22:47:53 +02:00
void on_SearchButton_clicked();
void accept() override;
2017-08-20 22:47:53 +02:00
void Finished(int Result);
protected:
2018-04-14 20:44:39 +02:00
lcHttpManager* mHttpManager;
lcHttpReply* mKeyListReply;
lcHttpReply* mSearchReply;
lcHttpReply* mInventoryReply;
2017-08-20 22:47:53 +02:00
QStringList mKeys;
QByteArray mInventory;
2017-08-19 19:12:25 +02:00
Ui::lcSetsDatabaseDialog* ui;
};