kabc
KABC::LockNull Class Reference
#include <locknull.h>
Inheritance diagram for KABC::LockNull:

Public Member Functions | |
LockNull (bool allowAccess) | |
QString | error () const |
bool | lock () |
bool | unlock () |
![]() | |
Lock (const QString &identifier) | |
~Lock () | |
virtual QString | error () const |
virtual bool | lock () |
QString | lockFileName () const |
virtual bool | unlock () |
Additional Inherited Members | |
![]() | |
void | locked () |
void | unlocked () |
![]() | |
static QString | locksDir () |
static bool | readLockFile (const QString &filename, int &pid, QString &app) |
static bool | writeLockFile (const QString &filename) |
Detailed Description
This class provides a lock without actually locking.
It can be constructed in two ways: One that let all locks succeed and one that let all locks fail.
Definition at line 33 of file locknull.h.
Constructor & Destructor Documentation
◆ LockNull()
LockNull::LockNull | ( | bool | allowAccess | ) |
Creates an instance of the null lock.
- Parameters
-
allowAccess if true
all calls to lock() will "succeed", iffalse
all calls to lock() will "fail"
Definition at line 40 of file locknull.cpp.
◆ ~LockNull()
LockNull::~LockNull | ( | ) |
Definition at line 45 of file locknull.cpp.
Member Function Documentation
◆ error()
|
virtual |
Returns the lastest error message.
Reimplemented from KABC::Lock.
Definition at line 71 of file locknull.cpp.
◆ lock()
|
virtual |
◆ unlock()
|
virtual |
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by doxygen 1.9.5 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by doxygen 1.9.5 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.