<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>Hi Thiago,</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
> +       bool on = !(mode == QBluetoothLocalDevice::HostPoweredOff);<br>
<br>
That's slightly weird :-)</blockquote><div><br></div><div>I know that this is weird but there is no HostPoweredOn enum :-). It can be either</div><div>off, connectable, discoverable or discoverable limited inquiry. Therefore I choose</div><div>to use !(mode == QBluetoothLocalDevice::HostPoweredOff)) instead of</div><div>(mode == QBluetoothLocalDevice::HostDiscoverable || mode == QBluetoothLocalDevice::HostConnectable || ..)</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hint: QString has a "multiarg" arg that works on QStrings and is slightly<br></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
faster. If you remember, please use it next time.<br><br>
Hint: please use the Qt API for the containers. I had to look up to see if the<br>
empty() function was a getter of the emptiness state or whether it emptied the<br>
container.</blockquote><div><br></div><div><br></div><div>Thanks for your feedback! I will keep in mind what you said. This is the first time</div><div>I work with Qt framework and obviously I have a lot to learn.</div><div><br></div><div>Cheers,</div><div>Claudiu</div></div><br></div></div>