KABC::Lock Class Reference
This class provides locking functionality for a file, directory or an arbitrary string-represented resource. More...
#include <lock.h>
Inheritance diagram for KABC::Lock:

Signals | |
void | locked () |
void | unlocked () |
Public Member Functions | |
Lock (const QString &identifier) | |
~Lock () | |
virtual bool | lock () |
virtual bool | unlock () |
virtual QString | error () const |
QString | lockFileName () const |
Static Public Member Functions | |
static bool | readLockFile (const QString &filename, int &pid, QString &app) |
static bool | writeLockFile (const QString &filename) |
static QString | locksDir () |
Detailed Description
This class provides locking functionality for a file, directory or an arbitrary string-represented resource.Definition at line 35 of file lock.h.
Constructor & Destructor Documentation
Lock::Lock | ( | const QString & | identifier | ) |
Lock::~Lock | ( | ) |
Member Function Documentation
bool Lock::lock | ( | ) | [virtual] |
bool Lock::unlock | ( | ) | [virtual] |
The documentation for this class was generated from the following files: