Skip to content

RLockedFile

Class in Core Module
Header: #include <src/core/RLockedFile.h>
Inherits: QFile

All rights reserved.

This file is part of the QCAD project.

QCAD is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

QCAD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with QCAD.

enum LockMode { NoLock, ReadLock, WriteLock }
RLockedFile()
RLockedFile(const QString &name)
~RLockedFile()
bool isLocked() const
bool lock(LockMode mode, bool block=true)
LockMode lockMode() const
bool open(OpenMode mode)
bool unlock()
LockMode m_lock_mode

enum LockMode
Value Description
NoLock = 0
ReadLock
WriteLock

RLockedFile::RLockedFile()

All rights reserved.

This file is part of the QCAD project.

QCAD is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

QCAD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with QCAD.

RLockedFile::RLockedFile(const QString &name)

RLockedFile::~RLockedFile()

bool RLockedFile::isLocked() const

const

bool RLockedFile::lock(LockMode mode, bool block=true)

All rights reserved.

This file is part of the QCAD project.

QCAD is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

QCAD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with QCAD.

RLockedFile::LockMode RLockedFile::lockMode() const

const

bool RLockedFile::open(OpenMode mode)

bool RLockedFile::unlock()

LockMode RLockedFile::m_lock_mode

private