forked from ondra/colnod-connector
21 lines
482 B
C++
21 lines
482 B
C++
#include <QCoreApplication>
|
|
|
|
#include "data.h"
|
|
#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->syncData();
|
|
QCoreApplication::quit();
|
|
});
|
|
|
|
return a.exec();
|
|
}
|