KABC::LockNull Class Reference

This class provides a lock without actually locking. More...

#include <locknull.h>

Inheritance diagram for KABC::LockNull:

List of all members.

Public Member Functions

 LockNull (bool allowAccess)
QString error () const
bool lock ()
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 true all calls to lock() will "succeed", if false all 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]

Lock resource.

Reimplemented from KABC::Lock.

Definition at line 52 of file locknull.cpp.

bool LockNull::unlock (  )  [virtual]

Unlock resource.

Reimplemented from KABC::Lock.

Definition at line 65 of file locknull.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys