List of all members | Public Member Functions
AppLock Class Reference

#include <applock.h>

Public Member Functions

 AppLock (QObject *parent=0)
 
 AppLock (QString table, int id, QObject *parent=0)
 
 ~AppLock ()
 
Q_INVOKABLE bool acquire ()
 
Q_INVOKABLE bool acquire (QString table, int id)
 
Q_INVOKABLE bool holdsLock () const
 
Q_INVOKABLE bool isLockedOut () const
 
Q_INVOKABLE QString lastError () const
 
Q_INVOKABLE bool release ()
 
Q_INVOKABLE QString toString () const
 

Constructor & Destructor Documentation

AppLock::AppLock ( QObject parent = 0)
AppLock::AppLock ( QString  table,
int  id,
QObject parent = 0 
)
AppLock::~AppLock ( )

Member Function Documentation

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:

Generated on Fri Oct 7 2016 16:24:45 xTuple ERP Programmer Reference, Version 4.7.0 doxygen 1.8.10