The SaveFile solution is not as easy as it seams. glib has included a complete solution see gio/glocalfileoutputstream.c in function "handle_overwrite_open". Qt seems to have nothing similar, see: http://lists.qt-project.org/pipermail/development/2012-January/thread.html#1262 KDE uses KSaveFile: http://herschel.dsf.unica.it/cgi-bin/dwww/usr/share/doc/kde/HTML/en/kdelibs-apidocs/kdecore/html/ksavefile_8cpp_source.html It seems that glib covers additional corner cases, but the KDE solution should work for us.
Does anyone have a port to pure Qt? Or additional hints? If not I would just copy the required files to lib/kdecore (.. this is only a temporary solution until we have complete GIO support see Bug #918222 :-) )
The SaveFile solution is not as easy as it seams. utputstream. c in function "handle_ overwrite_ open". lists.qt- project. org/pipermail/ development/ 2012-January/ thread. html#1262 herschel. dsf.unica. it/cgi- bin/dwww/ usr/share/ doc/kde/ HTML/en/ kdelibs- apidocs/ kdecore/ html/ksavefile_ 8cpp_source. html
glib has included a complete solution see gio/glocalfileo
Qt seems to have nothing similar, see:
http://
KDE uses KSaveFile:
http://
It seems that glib covers additional corner cases, but the KDE solution should work for us.
Does anyone have a port to pure Qt? Or additional hints?
If not I would just copy the required files to lib/kdecore
(.. this is only a temporary solution until we have complete GIO support see Bug #918222 :-) )