[Qt-interest] Exclusive access while writing QFile
Ross Driedger
ross at earz.ca
Fri Jan 15 21:16:17 CET 2010
On 15-Jan-10, at 2:59 PM, qt-interest-request at trolltech.com wrote:
>
> Message: 3
> Date: Sat, 16 Jan 2010 01:23:10 +0530
> From: Jainish Jain <Jainish_Jain at persistent.co.in>
> Subject: [Qt-interest] Exclusive access while writing QFile
> To: "qt-interest at trolltech.com" <qt-interest at trolltech.com>
> Message-ID:
>
> <6B75622C2FF30547B96A565D6A6B0B70C5892623F8 at EXCHANGE.persistent.co.in>
> Content-Type: text/plain; charset="us-ascii"
>
> Hi,
>
> I want to have exclusive access on QFile while writing large amount
> of data so that during transfer (may take 5 min) no one can delete
> the file from its location. Is there any way to have exclusive
> access on QFi
I think QFile::permissions might be what you are looking for. This is
very platform dependent stuff and it depends what your OS is and user
level of who might be trying to trash your file. Many systems will
lock a file if it is opened by an application so the problem you are
anticipating might not be a problem at all.
Ross Driedger
ross_at_earz.ca
519-913-1862
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100115/5fb8d0ac/attachment.html
More information about the Qt-interest-old
mailing list