#include <applock.h>
◆ AcquireMode
Enumerator |
---|
Silent | |
Interactive | |
◆ AppLock() [1/2]
AppLock::AppLock |
( |
QObject * |
parent = 0 | ) |
|
◆ AppLock() [2/2]
AppLock::AppLock |
( |
QString |
table, |
|
|
int |
id, |
|
|
QObject * |
parent = 0 |
|
) |
| |
◆ ~AppLock()
◆ acquire() [1/2]
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()
◆ acquire() [2/2]
◆ holdsLock()
bool AppLock::holdsLock |
( |
| ) |
const |
- Returns
- true if this instance of AppLock holds the lock
◆ isLockedOut()
bool AppLock::isLockedOut |
( |
| ) |
const |
- Returns
- true if the object appears locked by some other entity
◆ lastError()
QString AppLock::lastError |
( |
| ) |
const |
◆ release()
bool AppLock::release |
( |
| ) |
|
◆ toString()
QString AppLock::toString |
( |
| ) |
const |
The documentation for this class was generated from the following files: