On Sat, Oct 17, 2009 at 4:56 AM, OvermindDL1 <[email protected]> wrote: > On Fri, Oct 16, 2009 at 7:04 PM, Pau Garcia i Quiles > <[email protected]> wrote: >> Hello, >> >> Do you remember the WebKit intergration described in >> http://www.webtoolkit.eu/wt/wiki/index.php/Ideas_for_Google_SoC ? >> >> Well, the attached patch is an implementation of that. In a very early >> stage of development, but it works. >> >> The patch is against current public git. It requires Qt 4 (I've tested >> with Qt 4.6 beta1 on Linux but it should work with Qt >= 4.4 on any >> platform). Just specify the wtdesktop connector for the examples >> (cmake -DEXAMPLES_CONNECTOR=wtdesktop) and run the examples as you >> have always done but in port 9000 (hardcoded for now). It will open a >> QtWebKit window with the webapp. >> >> There is still a lot of improvement to be done but I was so happy to >> get this working with so few effort (a couple of hours), I wanted to >> share. >> >> For now, it builds most of the wthttp connector in the wtdesktop >> connector again. Koen, Wim, can we split libwthttp.so in two >> libraries, libwthttpcommon.so (most of it) and libwthttp.so (very >> lightweight, essentially WtHttpRun.C) ? > > Hardcoding the port to 900 is iffy since that would prevent you from > opening more then one app. A dedicated pipe would be better if you > really need a connection like that, but why not just direct callbacks > since it is all within the same process?
I hardcoded the port just to make the initial implementation easier, today I'll implement port search: when you start the application, it will look for a free port > 30000. Also, it won't be necessary to specify any argument in the command line, it will use the directory where the executable is as the docroot, 127.0.0.1/::1 as the http-addr and look for a port. The idea is you can start your Wt app in local (like Google Gears) by just double clicking on the executable. If we could find a way to bundle the resources and everything in the .exe (like Mac .dmg's do), the better. > Otherwise, very impressive, good idea. :) -- Pau Garcia i Quiles http://www.elpauer.org (Due to my workload, I may need 10 days to answer) ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
