KiCad PCB EDA Suite
|
#include <lockfile.h>
Public Member Functions | |
LOCKFILE (const wxString &filename, bool aRemoveOnRelease=true) | |
~LOCKFILE () | |
void | UnlockFile () |
Unlocks and removes the file from the filesystem as long as we still own it. | |
bool | OverrideLock (bool aRemoveOnRelease=true) |
Forces the lock, overwriting the data that existed already. | |
bool | IsLockedByMe () |
wxString | GetUsername () |
wxString | GetHostname () |
wxString | GetErrorMsg () |
bool | Locked () const |
bool | Valid () const |
operator bool () const | |
Private Member Functions | |
bool | checkUserAndHost () |
Private Attributes | |
wxString | m_originalFile |
wxString | m_lockFilename |
wxString | m_username |
wxString | m_hostname |
bool | m_fileCreated |
bool | m_status |
bool | m_removeOnRelease |
wxString | m_errorMsg |
Definition at line 42 of file lockfile.h.
|
inline |
Definition at line 45 of file lockfile.h.
References _, LCK, FILEEXT::LockFileExtension, FILEEXT::LockFilePrefix, m_errorMsg, m_fileCreated, m_hostname, m_lockFilename, m_removeOnRelease, m_status, and m_username.
|
inline |
Definition at line 130 of file lockfile.h.
References UnlockFile().
|
inlineprivate |
Definition at line 256 of file lockfile.h.
References LCK, m_hostname, m_lockFilename, and m_username.
Referenced by UnlockFile().
|
inline |
Definition at line 229 of file lockfile.h.
References m_errorMsg.
|
inline |
Definition at line 224 of file lockfile.h.
References m_hostname.
|
inline |
Definition at line 219 of file lockfile.h.
References m_username.
|
inline |
Definition at line 211 of file lockfile.h.
References m_hostname, and m_username.
|
inline |
Definition at line 231 of file lockfile.h.
References m_fileCreated.
|
inlineexplicit |
Definition at line 241 of file lockfile.h.
References m_status.
|
inline |
Forces the lock, overwriting the data that existed already.
Definition at line 158 of file lockfile.h.
References LCK, m_errorMsg, m_fileCreated, m_hostname, m_lockFilename, m_removeOnRelease, m_status, and m_username.
|
inline |
Unlocks and removes the file from the filesystem as long as we still own it.
Definition at line 138 of file lockfile.h.
References checkUserAndHost(), LCK, m_errorMsg, m_fileCreated, m_lockFilename, m_removeOnRelease, and m_status.
Referenced by ~LOCKFILE().
|
inline |
Definition at line 236 of file lockfile.h.
References m_status.
Referenced by SETTINGS_MANAGER::LoadProject().
|
private |
Definition at line 254 of file lockfile.h.
Referenced by GetErrorMsg(), LOCKFILE(), OverrideLock(), and UnlockFile().
|
private |
Definition at line 251 of file lockfile.h.
Referenced by Locked(), LOCKFILE(), OverrideLock(), and UnlockFile().
|
private |
Definition at line 250 of file lockfile.h.
Referenced by checkUserAndHost(), GetHostname(), IsLockedByMe(), LOCKFILE(), and OverrideLock().
|
private |
Definition at line 248 of file lockfile.h.
Referenced by checkUserAndHost(), LOCKFILE(), OverrideLock(), and UnlockFile().
|
private |
Definition at line 247 of file lockfile.h.
|
private |
Definition at line 253 of file lockfile.h.
Referenced by LOCKFILE(), OverrideLock(), and UnlockFile().
|
private |
Definition at line 252 of file lockfile.h.
Referenced by LOCKFILE(), operator bool(), OverrideLock(), UnlockFile(), and Valid().
|
private |
Definition at line 249 of file lockfile.h.
Referenced by checkUserAndHost(), GetUsername(), IsLockedByMe(), LOCKFILE(), and OverrideLock().