struct Task {
int cmd;
QByteArray data;
};
/**
* This class provides a simple means for IPC between two applications
* via a pipe.
* It handles a queue of commands to be sent, and has a internal signal
* called after a command has been sent, to send the next one (FIFO).
*/