[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    Re: kcalc in kspread
From:       Raphael Langerhorst <raphael-langerhorst () gmx ! at>
Date:       2005-03-29 18:21:34
Message-ID: 200503292021.34749.raphael-langerhorst () gmx ! at
[Download RAW message or body]

On Tuesday 29 March 2005 19:41, David Faure wrote:
> On Tuesday 29 March 2005 19:33, Raphael Langerhorst wrote:
> > You might want to launch the system's kcalc with Qt's QProcess
> > class (http://doc.trolltech.com/3.3/qprocess.html) and then look
> > up the kcalc application with DCOP and connect to it. The kcalc's
> > DCOP app-id is "kcalc-<PID>", you get the PID from the QProcess
> > class...
>
> No no no, don't ever do that. Nasty race condition there.
> If you want to start an application in order to talk to it via
> DCOP, use KApplication::startServiceByDesktopName("kcalc").
> You get the dcopService ID as return value, and the guarantee that
> app is ready to talk DCOP with you when that method returns.

oh, sorry!!. And thanks a lot for correcting me [please always correct 
me on such things].

Regards,
Raphael
_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic