In short, the code instantiates a client class and calls that method and returns the result. I recommend that if you're writing Qt code to just use that call and more or less do the same thing, rather than bringing in the bx command line wrappers, etc if not needed.