2017-12-20 Fred Gleason <fredg@paravelsystems.com>

* Added a 'LOGS.LOCK_GUID' field to the database.
	* Incremented the database version to 274.
	* Added a 'LockLog' call to the Web API.
This commit is contained in:
Fred Gleason
2017-12-20 18:16:22 -05:00
parent 6b34f4d70e
commit aec8bba723
15 changed files with 365 additions and 43 deletions

View File

@@ -39,6 +39,11 @@ class RDLogLock : public QObject
bool isLocked() const;
bool tryLock(QString *username,QString *stationname,QHostAddress *addr);
void clearLock();
static bool tryLock(QString *username,QString *stationname,QHostAddress *addr,
const QString &log_name,const QString &guid);
static void updateLock(const QString &log_name,const QString &guid);
static void clearLock(const QString &guid);
static QString makeGuid(const QString &stationname);
private slots:
void updateLock();
@@ -49,6 +54,7 @@ class RDLogLock : public QObject
RDStation *lock_station;
QTimer *lock_timer;
bool lock_locked;
QString lock_guid;
};