[Development] QFile: writing via a temporary file

Artur Souza (MoRpHeUz) artur.souza at openbossa.org
Fri Jan 6 18:43:30 CET 2012


On Fri, Jan 6, 2012 at 2:36 PM, David Faure <faure at kde.org> wrote:
> No, no, the whole idea of this feature is not to use the temp file as a backup.
> If the app crashes, you lose your partially-writen temporary file.
> That's fine, it was partial anyway, why would you want to use it?
>
> I think you're confusing this with a backup feature, which is unrelated.

Yeah, I understand that the main use case is not using it as a backup :)

I was just thinking that the use cases are very similar and depending
the way you implement it, it's possible to use it to restore i.e. your
document if your text editor written in Qt crashes...

But if to support this you need to pollute the API, than it's ok to
forget the use case :)

Cheers,

-- 
-------------------------------------------------------
Artur Duque de Souza
openBossa
INdT - Instituto Nokia de Tecnologia
-------------------------------------------------------
Blog: http://blog.morpheuz.cc
PGP: 0xDBEEAAC3 @ wwwkeys.pgp.net
-------------------------------------------------------



More information about the Development mailing list