#include <applock.h>
AppLock::AppLock |
( |
QObject * |
parent = 0 | ) |
|
AppLock::AppLock |
( |
QString |
table, |
|
|
int |
id, |
|
|
QObject * |
parent = 0 |
|
) |
| |
bool AppLock::acquire |
( |
| ) |
|
Try to acquire an application-level lock on the record described in the constructor or last call to this AppLock's acquire(table, id).
- Returns
- true if this AppLock instance appears to hold the lock
-
false if the lock could not be acquired
- See also
- holdsLock()
-
isLockedOut()
-
lastError()
bool AppLock::acquire |
( |
QString |
table, |
|
|
int |
id |
|
) |
| |
bool AppLock::holdsLock |
( |
| ) |
const |
- Returns
- true if this instance of AppLock holds the lock
bool AppLock::isLockedOut |
( |
| ) |
const |
- Returns
- true if the object appears locked by some other entity
QString AppLock::lastError |
( |
| ) |
const |
bool AppLock::release |
( |
| ) |
|
QString AppLock::toString |
( |
| ) |
const |
The documentation for this class was generated from the following files: