Are you using Qt? I have no idea then, sorry. Qt probably has a connectivity wrapper somewhere; you could try using that, instead, if it exists. Alternatively, just use QDBus. ICD2 emits signals and has methods for getting the current state etc.