mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-04-12 15:52:29 +02:00
2018-03-25 Fred Gleason <fredg@paravelsystems.com>
* Added support for log notifications to the RDXport service.
This commit is contained in:
parent
e915b2f3a8
commit
de202521da
@ -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.
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user