When moving this to tdelibs: the KPartsGenericPart class should move to libkparts so that it's possible to add an accessor for m_part there.