merged non-Qt and Qt methods
added the possibility to get task attributes transparently from threads or processes