[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kfm-devel
Subject:    Re: HTTPPostJob
From:       David Faure <david () mandrakesoft ! com>
Date:       2002-11-28 19:46:32
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thursday 28 November 2002 20:12, Dawit A. wrote:
> Hi,
> 
> The current KIO::http_post method is ill equipped to deal with uploading large 
> data or files.  To alleviate this problem I wanted to write a HTTPPostJob to  
> make it easier for app developers so they do not have to create a subclass of 
> TransferJob to workaround this issue.  Though the code is simple enough to 
> write, I am stuck on what interface HTTPPostJob should provide.  Any 
> suggestion ?  I know taking filename is probably sufficient for khtml's 
> purposes, but there might be other places where this is not.  So I need 
> suggestions.  A pointer to a QIODevice perhaps (maybe not) ? 

I like QIODevice a lot for this kind of things. It's the best interface for
"streaming" data, as you want to do here (the 'caller' can provide the data
on demand). The implementation for sending files would then also be very easy, 
a QFile will simply do.

- -- 
David FAURE, david@mandrakesoft.com, faure@kde.org
http://people.mandrakesoft.com/~david/
Contributing to: http://www.konqueror.org/, http://www.koffice.org/
Get the latest KOffice - http://download.kde.org/stable/koffice-1.2/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE95nKY72KcVAmwbhARAsxMAJ9Jr6dRwEeqtRsHovStIx0lj/K0SwCgrMBq
r9e/ObHalo/cVYCwiYVIYYc=
=5LyW
-----END PGP SIGNATURE-----

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic