mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-11-26 15:20:29 +01:00
2017-12-21 Fred Gleason <fredg@paravelsystems.com>
* Added log locking logic to rdlogmanager(1).
This commit is contained in:
11
lib/rdsvc.h
11
lib/rdsvc.h
@@ -27,6 +27,7 @@
|
||||
#include <qsqldatabase.h>
|
||||
|
||||
#include "rdconfig.h"
|
||||
#include "rdloglock.h"
|
||||
#include "rdstation.h"
|
||||
#include "rduser.h"
|
||||
|
||||
@@ -86,10 +87,13 @@ class RDSvc : public QObject
|
||||
const QString &track_str,const QString &dest_table)
|
||||
const;
|
||||
bool generateLog(const QDate &date,const QString &logname,
|
||||
const QString &nextname,QString *report,RDUser *user);
|
||||
const QString &nextname,QString *report,RDUser *user,
|
||||
QString *err_msg);
|
||||
bool linkLog(RDSvc::ImportSource src,const QDate &date,
|
||||
const QString &logname,QString *report);
|
||||
void clearLogLinks(RDSvc::ImportSource src,const QString &logname);
|
||||
const QString &logname,QString *report,RDUser *user,
|
||||
QString *err_msg);
|
||||
bool clearLogLinks(RDSvc::ImportSource src,const QString &logname,
|
||||
RDUser *user,QString *err_msg);
|
||||
void create(const QString exemplar) const;
|
||||
void remove() const;
|
||||
QString xml() const;
|
||||
@@ -104,6 +108,7 @@ class RDSvc : public QObject
|
||||
void generationProgress(int step);
|
||||
|
||||
private:
|
||||
bool TryLock(RDLogLock *lock,QString *err_msg);
|
||||
QString SourceString(ImportSource src) const;
|
||||
QString OsString(ImportOs os) const;
|
||||
QString FieldString(ImportField field) const;
|
||||
|
||||
Reference in New Issue
Block a user