Recurrent FSM (based on Qt signal/slot mechanism)