title: Programmatically enable/disable Bluetooth profiles
body: <p>I'm running Rasbian Jessie Lite on Raspberry Pi 3 with a USB/Bluetooth dongle (blueZ) 5.4.</p>
  
  <p>The <code>/etc/bluetooth/main.conf</code> has Class = 0x0c0408. 
  I have a Qt5 application which enables the Bluetooth device and accepts any incoming pairing requests.</p>
  
  <p>I can successfully connect from my smartphone to all enabled Bluetooth profiles: A2DP and HFP.</p>
  
  <p>Now I want to let the users select which profile(s) should be enabled. Thus I'm looking for a way to enable/disable on-the-fly A2DP and HFP. It's ok from C++, bash or python script.</p>
  
  <p>I can't just change the Class value because I cannot restart the bluetooth service - I MUST keep running the GATT server.</p>
  
  <p>Any thought about?</p>