Search all the code for "handle" instead of "username" and you find your desired functions. E.g.:
$username = qa_get_logged_in_handle();
if(isset($username)) {
$this->output('<div>Welcome '.$username.' you are logged in!</div>');
}
Welcome to the Q&A site for Question2Answer.
If you have a question about Q2A, please ask here, in English.
To report a bug, please create a new issue on Github or ask a question here with the bug tag.
If you just want to try Q2A, please use the demo site.