kabc
24 #include <klocalizedstring.h>
29 class LockNull::Private
32 Private(
bool allowAccess )
33 : mAllowAccess( allowAccess )
41 :
Lock( QString() ), d( new Private( allowAccess ) )
54 if ( !d->mAllowAccess ) {
58 kWarning( 5700 ) <<
"LockNull::lock() force success. Doesn't actually lock.";
73 if ( d->mAllowAccess ) {
74 return i18n(
"LockNull: All locks succeed but no actual locking is done." );
76 return i18n(
"LockNull: All locks fail." );
bool lock()
Lock resource.
QString error() const
Returns the lastest error message.
This class provides locking functionality for a file, directory or an arbitrary string-represented re...
void unlocked()
Emitted after the lock has been unlocked.
bool unlock()
Unlock resource.
void locked()
Emitted after the lock has been locked.
LockNull(bool allowAccess)
Creates an instance of the null lock.
Class that holds a Calendar Url (FBURL/CALADRURI/CALURI)
This file is part of the KDE documentation.
Documentation copyright © 1996-2015 The KDE developers.
Generated on Tue Sep 29 2015 19:28:09 by
doxygen 1.8.9.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.