Re: [yast-devel] Wt and Yast

On Nov 26, 2007 3:24 PM, Duncan Mac-Vicar Prett <dmacvicar@suse.de> wrote:
On Monday 26 November 2007 11:49:05 Wim Dumon wrote:
Hello Duncan and others,
<snip>
Working on it - we will let you know when it is in CVS.
Also, is there a way in Witty to get into and out of the event loop?
What do you mean with that?
I don't know why you would have to run a Wt process as root... It's probably not an issue to let Wt listen to a port >= 1024 (possibly using apache to forward connecitons from port 80 to the Wt process) - the rest depends on the Yast architecture. And yes, it is wise to implement some form of authentication, but the user interface part in Wt should be straight-forward.
This assumes that your main() routine only starts whttpd, and in your 'create application' callback function, after authentication, you are at the same level as a Qt application. Remind that in Qt you have to call app->exec(), whereas in Wt you need to return a WApplication from the this callback function - by returning this WApplication object, you have created a new instantiation of the application. I can imagine that this is the main point of conflict with your current architecture? However, in this way, you don't need to spawn special threads for getting the Wt event loop going, and you can structure your application further as you do a Qt application (given that we add WSocketNotifier), since you are already running inside Wt's event loop? Regards, Wim. -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
participants (1)
-
Wim Dumon