Changing the conv function from QString to char *
adding a switch using the status