RLockedFile
Class in Core Module
Header: #include <src/core/RLockedFile.h>
Inherits: QFile
Description
Section titled “Description”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.
Public Types
Section titled “Public Types”| enum | LockMode { NoLock, ReadLock, WriteLock } |
Public Functions
Section titled “Public Functions”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() |
Private Attributes
Section titled “Private Attributes”| LockMode | m_lock_mode |
Member Documentation
Section titled “Member Documentation”LockMode
Section titled “LockMode”enum LockMode| Value | Description |
|---|---|
NoLock = 0 |
|
ReadLock |
|
WriteLock |
RLockedFile
Section titled “RLockedFile”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
Section titled “RLockedFile”RLockedFile::RLockedFile(const QString &name)~RLockedFile
Section titled “~RLockedFile”RLockedFile::~RLockedFile()isLocked
Section titled “isLocked”bool RLockedFile::isLocked() constconst
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.
lockMode
Section titled “lockMode”RLockedFile::LockMode RLockedFile::lockMode() constconst
bool RLockedFile::open(OpenMode mode)unlock
Section titled “unlock”bool RLockedFile::unlock()m_lock_mode
Section titled “m_lock_mode”LockMode RLockedFile::m_lock_modeprivate