LibreOffice Module desktop (master)  1
Public Types | Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
desktop::Lockfile Class Reference

#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)
 

Detailed Description

Definition at line 56 of file lockfile.hxx.

Member Typedef Documentation

typedef bool(* desktop::Lockfile::fpExecWarning) (Lockfile const *that)

Definition at line 64 of file lockfile.hxx.

Constructor & Destructor Documentation

desktop::Lockfile::Lockfile ( bool  bIPCserver = true)
desktop::Lockfile::~Lockfile ( )

Definition at line 204 of file lockfile.cxx.

References m_aLockname, and m_bRemove.

Member Function Documentation

bool desktop::Lockfile::check ( fpExecWarning  execWarning)

Definition at line 123 of file lockfile.cxx.

References File, isStale(), m_aLockname, m_bIsLocked, m_bRemove, syncToFile(), and void().

bool desktop::Lockfile::isStale ( ) const
private
void desktop::Lockfile::syncToFile ( ) const
private

Friends And Related Function Documentation

bool Lockfile_execWarning ( Lockfile const *  that)
friend

Definition at line 29 of file lockfile2.cxx.

Member Data Documentation

OUString desktop::Lockfile::m_aDate
private

Definition at line 82 of file lockfile.hxx.

Referenced by Lockfile(), and syncToFile().

OUString desktop::Lockfile::m_aId
private

Definition at line 81 of file lockfile.hxx.

Referenced by Lockfile(), and syncToFile().

OUString desktop::Lockfile::m_aLockname
private
bool desktop::Lockfile::m_bIPCserver
private

Definition at line 74 of file lockfile.hxx.

Referenced by syncToFile().

bool desktop::Lockfile::m_bIsLocked
private

Definition at line 79 of file lockfile.hxx.

Referenced by check(), and Lockfile().

bool desktop::Lockfile::m_bRemove
private

Definition at line 78 of file lockfile.hxx.

Referenced by check(), Lockfile(), and ~Lockfile().


The documentation for this class was generated from the following files: