Download Params

This commit is contained in:
Aditya Kulkarni
2018-11-05 21:19:08 -08:00
parent 228f61f225
commit 619ff9fdd6
4 changed files with 125 additions and 44 deletions

View File

@@ -47,7 +47,10 @@ private:
void createZcashConf();
QString locateZcashConfFile();
QString zcashConfWritableLocation();
QString zcashParamsDir();
void downloadParams(std::function<void(void)> cb);
void doNextDownload(std::function<void(void)> cb);
bool startEmbeddedZcashd();
void refreshZcashdState(Connection* connection);
@@ -65,6 +68,13 @@ private:
MainWindow* main;
RPC* rpc;
QNetworkReply* currentDownload = nullptr;
QFile* currentOutput = nullptr;
QQueue<QUrl>* downloadQueue = nullptr;
QNetworkAccessManager* client = nullptr;
QTime downloadTime;
};
/**