• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.8.3 API Reference
  • KDE Home
  • Contact Us
 

kabc

  • KABC
  • LockNull
Public Member Functions
KABC::LockNull Class Reference

#include <locknull.h>

Inheritance diagram for KABC::LockNull:
Inheritance graph
[legend]

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:
allowAccessif 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:
  • locknull.h
  • locknull.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Tue May 8 2012 00:05:49 by doxygen 1.8.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kabc

Skip menu "kabc"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Related Pages

kdepimlibs-4.8.3 API Reference

Skip menu "kdepimlibs-4.8.3 API Reference"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal