2018-07-20 Fred Gleason <fredg@paravelsystems.com>

* Added an 'IMPORTER_LINES' table to the database.
	* Incremented the database version to 295.
	* Refactored the log importer code to use the static 'IMPORTER_LINES'
	table.
This commit is contained in:
Fred Gleason
2018-07-20 19:24:11 -04:00
parent 0dc7a4e698
commit c52c9b9f8a
17 changed files with 197 additions and 106 deletions

View File

@@ -21,19 +21,19 @@
#ifndef RDEVENT_LINE_H
#define RDEVENT_LINE_H
#include <qsqldatabase.h>
#include <qdatetime.h>
#include <rdlog_event.h>
#include <rdeventimportlist.h>
#include <rdlog_line.h>
#include <rdstation.h>
class RDEventLine
{
public:
enum ImportSource {None=0,Traffic=1,Music=2,Scheduler=3};
enum InsertFirst {InsertNone=0,InsertBreak=1,InsertTrack=2};
RDEventLine();
RDEventLine(RDStation *station);
QString name() const;
void setName(const QString &name);
QString properties() const;
@@ -84,7 +84,7 @@ class RDEventLine
bool linkLog(RDLogEvent *e,const QString &svcname,
RDLogLine *link_logline,const QString &track_str,
const QString &label_cart,const QString &track_cart,
const QString &import_table,QString *errors);
QString *errors);
private:
int GetLength(unsigned cartnum,int def_length=0);
@@ -112,6 +112,7 @@ class RDEventLine
QString event_have_code;
QString event_have_code2;
unsigned event_title_sep;
RDStation *event_station;
};
#endif
#endif // RDEVENT_LINE_H