kde_file.h

Jarosław Staniek js at iidea.pl
Sun Apr 2 19:25:32 BST 2006


Thiago Macieira wrote:

> Christian Ehrlicher wrote:
>>Hi,
>>
>>I tried to replace the macros from kde_file.h with the ones from
>>qplatformdefs.h (see TODO).
>>But currently it's impossible to remove kde_file.h because KDE_fdopen
>>and some other macros aren't available in qplatformdefs.h. Also QT_LSTAT
>>isn't defined on win32... :-(
>>
>>Any ideas how to handle this?
> 
> Anywhere where kde_file.h or qplatformdefs.h is being used, it should be
> replaced with QFile, QFileInfo, QDir or the socket classes, if possible.
> 
> There are some cases where this won't be possible, but they should be
> really restricted. Use of file descriptors and FILE streams should be
> kept to a minimum.
> 

Yes, this is true for apps and higher level libs, but we've introduced KDE_** 
functions because in rare cases, mostly in kdecore, we needed optimized 
1-to-1 replacements for POSIX functions on win32. So no doubt, unless I 
forgot something, some of the KDE_* functions are here to stay.

-- 
regards / pozdrawiam,
  Jaroslaw Staniek / OpenOffice Polska

Sponsored by OpenOffice Polska to work on
* Kexi & KOffice: http://www.kexi-project.org | http://koffice.org/kexi
* KDE3 & KDE4 Libraries For Developing MS Windows Applications:
                   http://www.kdelibs.com/wiki
See also:
* Kexi For MS Windows: http://kexi.pl/wiki/index.php/Kexi_for_MS_Windows
* Kexi Support:        http://www.kexi-project.org/support.html




More information about the kde-core-devel mailing list