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

* Added a 'LOG_LINES' table to the database.
	* Incremented the database version to 288.
	* Removed the 'RDLog::tableName()' method.
This commit is contained in:
Fred Gleason
2018-07-03 12:32:41 -04:00
parent 913e27c304
commit 300aebdc04
28 changed files with 931 additions and 168 deletions

View File

@@ -251,7 +251,7 @@ void MainObject::Load(QString logname)
edit_log=new RDLog(logname);
if(edit_log->exists()) {
edit_log_event=new RDLogEvent(RDLog::tableName(logname));
edit_log_event=new RDLogEvent(logname);
edit_log_event->load();
edit_description=edit_log->description();
edit_service=edit_log->service();
@@ -363,7 +363,7 @@ void MainObject::New(const QString &logname)
}
edit_log=new RDLog(logname);
if(!edit_log->exists()) {
edit_log_event=new RDLogEvent(RDLog::tableName(logname));
edit_log_event=new RDLogEvent(logname);
edit_description=logname+" log";
sql=QString("select NAME from SERVICES");
q=new RDSqlQuery(sql);
@@ -435,8 +435,7 @@ void MainObject::Saveas(const QString &logname)
"SERVICE=\""+RDEscapeString(edit_service)+"\"";
q=new RDSqlQuery(sql);
delete q;
RDCreateLogTable(RDLog::tableName(logname),rda->config());
edit_log_event->setLogName(RDLog::tableName(logname));
edit_log_event->setLogName(logname);
edit_log_event->save(rda->config());
delete edit_log;
edit_log=log;