Or just link against kdelibs and use the API.