Frontend to the famous GRBL.

transferqueue.cpp 611B

    /* Part of x2grbl * * Copyright Johann Wilhelm <johann.wilhelm@9mal6.de> 2015 * * see Readme.md for detailed license and usage information! */ #include "transferqueue.h" TransferQueue::TransferQueue() { } void TransferQueue::setOutputDevice(GCodeOutputDevice *Device) { OutputDevice=Device; } void TransferQueue::addFile(QIODevice *File) { TransferList.enqueue(File); /*if (OutputDevice->DeviceMutex.tryLock()) { QIODevice *dev=TransferList.dequeue(); Parser.open(*dev); delete dev; Interpreter.Run(*OutputDevice, Parser); } */ }