Benjamin Meyer ben at meyerhome.net
Mon Sep 11 15:43:02 BST 2006

On Sunday 10 September 2006 17:14, Jaison Lee wrote:
> One of the items in the kdelibs TODO is:
> - KDE 4: Check if QTemporaryFile is good enough to dump KTempFile
>   (Albert Astals Cid)
> My plan then would be:
> Step 1) Create KTemporaryFile and mark KTempFile deprecated.
> Step 2) Port all existing KTempFiles to KTemporaryFile.
> Step 3) Remove KTempFile.
> This will provide Will and I ample time to complete step 2, while
> making sure that the codebase remains able to be compiled.
> So how does this sound to everyone? Does this look like something
> worth doing? Any comments on my overall plan? Should KTemporaryFile
> still default autoRemove to false even though QTemporaryFile defaults
> true? (Personally I would say no; take the Qt default in this case.)

Creating a wrapper around QTemporaryFile sounds like a fine solution.  I 
resolved the major technical problems (that I was aware of) in QTemporary for 
4.2 so setting the default path and properties is perfectly fine for a 
wrapper class to make it intigrate with KDE.  Feel free to post the wrapper 
class here for review.

-Benjamin Meyer

P.S. Perhaps temp location would be a good freedesktop addition?

More information about the kde-core-devel mailing list