Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- QEventLoop eventLoop;
- QObject::connect(&mksManager, &MksManager::connectionFinished,
- &eventLoop, &QEventLoop::quit);
- mksManager.connectToDevice();
- eventLoop.exec();
- if (mksManager.status() != 1)
- throw std::runtime_error(tr("Error of connecting to device.").toStdString());
- int code = 0;
- QByteArray checkpointsByteArray = mksManager.getCheckpoints(code);
- if (code != 0)
- throw std::runtime_error(tr("Error of reading checkpoints.xml from device.").toStdString());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement