kde_file.h

Thiago Macieira thiago at kde.org
Sun Apr 2 17:07:48 BST 2006


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.

-- 
Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
  thiago.macieira (AT) trolltech.com     Trolltech AS
    GPG: 0x6EF45358                   |  Sandakerveien 116,
    E067 918B B660 DBD1 105C          |  NO-0402
    966C 33F5 F005 6EF4 5358          |  Oslo, Norway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20060402/41da5d2b/attachment.sig>


More information about the kde-core-devel mailing list