LibreOffice Module desktop (master) 1
|
#include <lockfile.hxx>
Public Types | |
typedef bool(* | fpExecWarning) (Lockfile const *that) |
Public Member Functions | |
Lockfile (bool bIPCserver=true) | |
bool | check (fpExecWarning execWarning) |
~Lockfile () | |
Private Member Functions | |
void | syncToFile () const |
bool | isStale () const |
Private Attributes | |
bool | m_bIPCserver |
OUString | m_aLockname |
bool | m_bRemove |
bool | m_bIsLocked |
OUString | m_aId |
OUString | m_aDate |
Friends | |
bool | Lockfile_execWarning (Lockfile const *that) |
Definition at line 53 of file lockfile.hxx.
typedef bool(* desktop::Lockfile::fpExecWarning) (Lockfile const *that) |
Definition at line 61 of file lockfile.hxx.
desktop::Lockfile::Lockfile | ( | bool | bIPCserver = true | ) |
Definition at line 78 of file lockfile.cxx.
References File, i, utl::Bootstrap::locateUserInstallation(), m_aDate, m_aId, m_aLockname, m_bIsLocked, m_bRemove, SAL_WNODEPRECATED_DECLARATIONS_POP, SAL_WNODEPRECATED_DECLARATIONS_PUSH, sprintf(), syncToFile(), t, and comphelper::rng::uniform_int_distribution().
desktop::Lockfile::~Lockfile | ( | ) |
Definition at line 204 of file lockfile.cxx.
References m_aLockname, and m_bRemove.
bool desktop::Lockfile::check | ( | fpExecWarning | execWarning | ) |
Definition at line 123 of file lockfile.cxx.
References File, isStale(), m_aLockname, m_bIsLocked, m_bRemove, and syncToFile().
|
private |
Definition at line 149 of file lockfile.cxx.
References impl_getHostname(), LOCKFILE_GROUP, LOCKFILE_HOSTKEY, LOCKFILE_IPCKEY, LOCKFILE_USERKEY, m_aLockname, OUStringToOString(), Config::ReadKey(), Security, and Config::SetGroup().
Referenced by check().
|
private |
Definition at line 178 of file lockfile.cxx.
References Config::Flush(), impl_getHostname(), LOCKFILE_GROUP, LOCKFILE_HOSTKEY, LOCKFILE_IPCKEY, LOCKFILE_STAMPKEY, LOCKFILE_TIMEKEY, LOCKFILE_USERKEY, m_aDate, m_aId, m_aLockname, m_bIPCserver, OUStringToOString(), Security, Config::SetGroup(), and Config::WriteKey().
Referenced by check(), and Lockfile().
|
friend |
Definition at line 29 of file lockfile2.cxx.
|
private |
Definition at line 79 of file lockfile.hxx.
Referenced by Lockfile(), and syncToFile().
|
private |
Definition at line 78 of file lockfile.hxx.
Referenced by Lockfile(), and syncToFile().
|
private |
Definition at line 73 of file lockfile.hxx.
Referenced by check(), isStale(), Lockfile(), syncToFile(), and ~Lockfile().
|
private |
Definition at line 71 of file lockfile.hxx.
Referenced by syncToFile().
|
private |
Definition at line 76 of file lockfile.hxx.
Referenced by check(), and Lockfile().
|
private |
Definition at line 75 of file lockfile.hxx.
Referenced by check(), Lockfile(), and ~Lockfile().