libs/libkipi/libkipi
#include <interface.h>
Public Member Functions | |
FileReadLocker (Interface *const iface, const KUrl &url) | |
FileReadLocker (ImageInfoShared *const info) | |
~FileReadLocker () | |
FileReadWriteLock * | fileReadWriteLock () const |
void | relock () |
void | unlock () |
Detailed Description
Convenience classes creating a FileReadWriteLock and locking it for you.
It is strongly recommended to use FileReadWriteLock only through these classes, created on the stack, as unlocking will be done automatically for you.
The API is modelled according to the QReadLocker/QWriteLocker classes.
Note that operations are no-ops and fileReadWriteLock() is 0 if not HostSupportsReadWriteLock.
Definition at line 431 of file interface.h.
Constructor & Destructor Documentation
KIPI::FileReadLocker::FileReadLocker | ( | Interface *const | iface, |
const KUrl & | url | ||
) |
Definition at line 327 of file interface.cpp.
KIPI::FileReadLocker::FileReadLocker | ( | ImageInfoShared *const | info | ) |
Definition at line 333 of file interface.cpp.
KIPI::FileReadLocker::~FileReadLocker | ( | ) |
Definition at line 339 of file interface.cpp.
Member Function Documentation
FileReadWriteLock * KIPI::FileReadLocker::fileReadWriteLock | ( | ) | const |
Definition at line 344 of file interface.cpp.
void KIPI::FileReadLocker::relock | ( | ) |
Definition at line 349 of file interface.cpp.
void KIPI::FileReadLocker::unlock | ( | ) |
Definition at line 357 of file interface.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:45:21 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.