qos source code