[PATCH] KMimeMagic.{cpp,h}
Otto Bruggeman
bruggie at home.nl
Sat Jan 31 21:27:53 GMT 2004
Hi,
because of some diffs containing shitloads of crap before the actual contents
of which it can determine the mimetype, the 1 k limit is too small for me in
Kompare. I therefore added a new method called:
KMimeMagicResult* findFileTypeFromEntireFile( const QString & _filename );
Any limit might not be enough so i let it read in the entire file. This is a
first rough patch (which works for me) but i would like some feedback on how
to improve it and approval before i commit anything like this to CVS.
Greetings,
Otto Bruggeman
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kmimemagic.diff
Type: text/x-diff
Size: 6250 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20040131/6fa741dc/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: signature
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20040131/6fa741dc/attachment.sig>
More information about the kde-core-devel
mailing list