kparts

Changing terminalinterface command after showing it on qt/kdelibs app

I have this terminal on my qt/kde application KLibFactory* factory = KLibLoader::self()->factory("libkonsolepart"); KParts::Part* p = static_cast<KParts::Part*> (factory->create(this,"terminal",QStringList() << "terminal")); assert(p); TerminalInterface* terminalInterface= qobject_cast<TerminalInterface*> (p); terminalInterface->showShe...

(QT/kdelib) how to know the end of a command in KTerminalInterface?

I have a KTerminalInterface (from kparts) in my qt/kdelib app, and I run a command within it. The problem is: how can I know if the program is terminated? I need to know it because at its end I must reset some variable. Does anyone got a similar problem?!? ...