kabc
KABC::LockNull Class Reference
This class provides a lock without actually locking. More...
#include <locknull.h>
Inheritance diagram for KABC::LockNull:

Public Member Functions | |
| QString | error () const |
| bool | lock () |
| LockNull (bool allowAccess) | |
| bool | unlock () |
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 | ( | bool | allowAccess | ) |
Creates an instance of the null lock.
- Parameters:
-
allowAccess if trueall calls to lock() will "succeed", iffalseall calls to lock() will "fail"
Definition at line 40 of file locknull.cpp.
Member Function Documentation
| QString LockNull::error | ( | ) | const [virtual] |
Returns the lastest error message.
Reimplemented from KABC::Lock.
Definition at line 71 of file locknull.cpp.
| bool LockNull::lock | ( | ) | [virtual] |
| bool LockNull::unlock | ( | ) | [virtual] |
The documentation for this class was generated from the following files:
KDE 4.3 API Reference