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

* Added support for log notifications to the RDXport service.
This commit is contained in:
Fred Gleason 2018-03-25 16:20:56 -04:00
parent e915b2f3a8
commit de202521da
2 changed files with 8 additions and 0 deletions

View File

@ -16747,3 +16747,5 @@
* Added support for notifications to rdlogmanager(1).
2018-03-25 Fred Gleason <fredg@paravelsystems.com>
* Added support for notifications to rdclilogedit(1).
2018-03-25 Fred Gleason <fredg@paravelsystems.com>
* Added support for log notifications to the RDXport service.

View File

@ -67,6 +67,8 @@ void Xport::AddLog()
rda->config())) {
XmlExit(err_msg,500,"logs.cpp",LINE_NUMBER);
}
SendNotification(RDNotification::LogType,RDNotification::AddAction,
QVariant(log_name));
XmlExit("OK",200,"logs.cpp",LINE_NUMBER);
}
@ -95,6 +97,8 @@ void Xport::DeleteLog()
delete log;
XmlExit("Unable to delete log",500,"logs.cpp",LINE_NUMBER);
}
SendNotification(RDNotification::LogType,RDNotification::DeleteAction,
QVariant(log->name()));
}
delete log;
@ -528,6 +532,8 @@ void Xport::SaveLog()
log->setEndDate(end_date);
log->setModifiedDatetime(QDateTime::currentDateTime());
logevt->save(rda->config());
SendNotification(RDNotification::LogType,RDNotification::ModifyAction,
QVariant(log->name()));
}
else {
XmlExit("invalid log lock",400);