mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-11 17:13:47 +02:00
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:
@@ -26,8 +26,7 @@
|
||||
#include <qpixmap.h>
|
||||
#include <q3popupmenu.h>
|
||||
|
||||
#include <rdlistview.h>
|
||||
#include <rdlog_event.h>
|
||||
#include <rdlistviewitem.h>
|
||||
|
||||
class ClockListView : public RDListView
|
||||
{
|
||||
|
@@ -27,7 +27,6 @@
|
||||
#include <rdapplication.h>
|
||||
#include <rddatedecode.h>
|
||||
#include <rdlog.h>
|
||||
#include <rdlog_event.h>
|
||||
#include <rdreport.h>
|
||||
#include <rdsvc.h>
|
||||
|
||||
|
@@ -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();
|
||||
}
|
||||
|
@@ -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;
|
||||
}
|
||||
|
||||
//
|
||||
|
Reference in New Issue
Block a user