On Sat, Aug 11, 2012 at 11:28:31PM +0200, Fredrik Modèen wrote: > Hi > > Sorry for a stupid question.. > > But what will fScanMode show? > > int fScanMode |= 2; > > Taken from this > > fScanMode = 0; > > if (fDiscoverable->Value()) { > fScanMode = 1; > fVisible->SetEnabled(true); > } else { > fVisible->SetValue(false); > fVisible->SetEnabled(false); > } > > if (fVisible->Value()) > fScanMode |= 2; It performs a binary or with the value. So it will be: 0: not fDiscoverable, not fVisible 1: fDiscoverable, not fVisible 2: not fDiscoverable, fVisible 3: fDiscoverable, fVisible -- Adrien.