mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-04-27 14:41:45 +02:00
2016-07-21 Fred Gleason <fredg@paravelsystems.com>
* Added a 'header' command to rdclilogedit(1).
This commit is contained in:
parent
93538cc483
commit
5ac5d8e60c
@ -15360,3 +15360,5 @@
|
||||
* Refactored rdclilogedit(1) to use synchronous input.
|
||||
2016-07-21 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Added a 'new' command to rdclilogedit(1).
|
||||
2016-07-21 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Added a 'header' command to rdclilogedit(1).
|
||||
|
@ -86,6 +86,40 @@ void MainObject::Addtrack(int line)
|
||||
}
|
||||
|
||||
|
||||
void MainObject::Header() const
|
||||
{
|
||||
printf(" Description: %s\n",(const char *)edit_log->description());
|
||||
printf(" Service: %s\n",(const char *)edit_log->service());
|
||||
if(edit_log->autoRefresh()) {
|
||||
printf("Auto Refresh: Yes\n");
|
||||
}
|
||||
else {
|
||||
printf("Auto Refresh: No\n");
|
||||
}
|
||||
if(edit_log->startDate().isNull()) {
|
||||
printf(" Start Date: None\n");
|
||||
}
|
||||
else {
|
||||
printf(" Start Date: %s\n",
|
||||
(const char *)edit_log->startDate().toString("yyyy-MM-dd"));
|
||||
}
|
||||
if(edit_log->endDate().isNull()) {
|
||||
printf(" End Date: None\n");
|
||||
}
|
||||
else {
|
||||
printf(" End Date: %s\n",
|
||||
(const char *)edit_log->endDate().toString("yyyy-MM-dd"));
|
||||
}
|
||||
if(edit_log->purgeDate().isNull()) {
|
||||
printf(" Purge Date: None\n");
|
||||
}
|
||||
else {
|
||||
printf(" Purge Date: %s\n",
|
||||
(const char *)edit_log->purgeDate().toString("yyyy-MM-dd"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void MainObject::ListLogs() const
|
||||
{
|
||||
QString sql;
|
||||
@ -102,7 +136,6 @@ void MainObject::ListLogs() const
|
||||
|
||||
void MainObject::Load(const QString &logname)
|
||||
{
|
||||
printf("LOAD\n");
|
||||
if(edit_log!=NULL) {
|
||||
delete edit_log;
|
||||
edit_log=NULL;
|
||||
@ -382,7 +415,6 @@ void MainObject::Settrans(int line,RDLogLine::TransType type)
|
||||
|
||||
void MainObject::Unload()
|
||||
{
|
||||
printf("UNLOAD\n");
|
||||
if(edit_log!=NULL) {
|
||||
delete edit_log;
|
||||
edit_log=NULL;
|
||||
|
@ -189,6 +189,11 @@ void MainObject::DispatchCommand(QString cmd)
|
||||
processed=true;
|
||||
}
|
||||
|
||||
if(verb=="header") {
|
||||
Header();
|
||||
processed=true;
|
||||
}
|
||||
|
||||
if(verb=="list") {
|
||||
List();
|
||||
processed=true;
|
||||
|
@ -48,6 +48,7 @@ class MainObject : public QObject
|
||||
void Addchain(int line,const QString &logname);
|
||||
void Addmarker(int line);
|
||||
void Addtrack(int line);
|
||||
void Header() const;
|
||||
void Help(const QStringList &cmds) const;
|
||||
void ListLogs() const;
|
||||
void Load(const QString &logname);
|
||||
|
Loading…
x
Reference in New Issue
Block a user