Added a data transfer system based on the QStateMachine