2020-12-27 Fred Gleason <fredg@paravelsystems.com>

* Removed the 'RDLogEvent' class.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2020-12-27 17:20:58 -05:00
parent b72b9f08c2
commit ca7ead3ea3
37 changed files with 357 additions and 2231 deletions

View File

@@ -26,8 +26,7 @@
#include <qpixmap.h>
#include <q3popupmenu.h>
#include <rdlistview.h>
#include <rdlog_event.h>
#include <rdlistviewitem.h>
class ClockListView : public RDListView
{

View File

@@ -27,7 +27,6 @@
#include <rdapplication.h>
#include <rddatedecode.h>
#include <rdlog.h>
#include <rdlog_event.h>
#include <rdreport.h>
#include <rdsvc.h>

View File

@@ -339,9 +339,9 @@ void GenerateLog::createData()
//
// Generate Exception Report
//
RDLogEvent *event=new RDLogEvent(logname);
event->load();
if((event->validate(&report,gen_date_edit->date())==0)&&
RDLogModel *model=new RDLogModel(logname,false,this);
model->load();
if((model->validate(&report,gen_date_edit->date())==0)&&
unused_report.isEmpty()) {
QMessageBox::information(this,tr("No Errors"),\
tr("No broken rules or validation exceptions found."));
@@ -357,7 +357,7 @@ void GenerateLog::createData()
RDTextFile(report+"\n"+unused_report);
}
delete event;
delete model;
UpdateControls();
}

View File

@@ -109,13 +109,13 @@ void LogObject::userData()
//
// Generate Exception Report
//
RDLogEvent *event=new RDLogEvent(logname);
event->load();
if((event->validate(&report,start_date)!=0)||
RDLogModel *model=new RDLogModel(logname,false,this);
model->load();
if((model->validate(&report,start_date)!=0)||
(!unused_report.isEmpty())) {
printf("%s\n\n%s",(const char*)report,(const char*)unused_report);
}
delete event;
delete model;
}
//