You can surely use the DBus interface to your part and control it through there. You can also use the whole KParts API.
http://api.kde.org/4.1-api/kdelibs-a...l/classes.html