2019-10-17 10:46:54 +02:00

20 lines
471 B
C++

#include <QCoreApplication>
#include "datamanager.h"
#include "colnodapi.h"
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
ColnodAPI *api = new ColnodAPI();
api->downloadData(); // this will start downloading data
QObject::connect(api, &ColnodAPI::dataDownloaded, [=](){
qDebug() << "now I have all data";
api->syncDataToColnod();
QCoreApplication::quit();
});
return a.exec();
}