mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-20 13:24:09 -07:00
Refactor SoftwareUpdate to make .nfo parse and signature check code easily reusable so it can be used from the Qt GUI code.
This commit is contained in:
parent
67a71868cb
commit
a19c19c58c
4 changed files with 152 additions and 37 deletions
|
@ -7,6 +7,10 @@
|
|||
#include <QNetworkRequest>
|
||||
#include <QNetworkReply>
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "../node/Address.hpp"
|
||||
|
||||
namespace Ui {
|
||||
class InstallDialog;
|
||||
}
|
||||
|
@ -28,6 +32,13 @@ private slots:
|
|||
private:
|
||||
Ui::InstallDialog *ui;
|
||||
QNetworkAccessManager *nam;
|
||||
enum {
|
||||
FETCHING_NFO,
|
||||
FETCHING_INSTALLER
|
||||
} phase;
|
||||
|
||||
ZeroTier::Address signedBy;
|
||||
std::string url,signature;
|
||||
};
|
||||
|
||||
#endif // INSTALLDIALOG_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue