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

List:       kdevelop-devel
Subject:    Re: Using QApplication::processEvents
From:       Andras Mantia <amantia () kde ! org>
Date:       2006-05-02 21:35:05
Message-ID: 200605030035.05740.amantia () kde ! org
[Download RAW message or body]

On Tuesday 02 May 2006 17:56, Vladimir Prus wrote:
>   GDBMI::ResultRecord* result = 0;
>
>   GDBMI::ResultRecord* send_command(QString& command)
>   {
>                 // send the command
>                 while(result == 0)
>                         QApplication::processEvents();
>          return result;
>   }

In this case I'm not sure I fully understand, but do you need to 
simulate an synchronous call when the call itself is asynchronous? If 
it is so, it might be better to look how this is done in KIO::NetAccess 
(at the end of netaccess.cpp). That is better, but still has some 
drawbacks.

Andras

-- 
Quanta Plus developer - http://quanta.kdewebdev.org
K Desktop Environment - http://www.kde.org

[Attachment #3 (application/pgp-signature)]
_______________________________________________
KDevelop-devel mailing list
KDevelop-devel@barney.cs.uni-potsdam.de
http://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel

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

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