2019-08-28 Fred Gleason <fredg@paravelsystems.com>

* Refactored the 'RDClock::insert()' method to calculate the
	ordinal position of the inserted event automatically.
	* Fixed a bug in rdlogmanager(1) that caused newly added events
	to be incorrectly sorted in the event list in the 'Edit Clock'
	dialog.
This commit is contained in:
Fred Gleason
2019-08-28 15:27:54 -04:00
parent f83ea42a77
commit c47b54720e
11 changed files with 116 additions and 78 deletions

View File

@@ -48,9 +48,8 @@ class RDClock
int size() const;
bool load();
bool save();
bool insert(const QString &event_name,int line);
int insert(const QString &event_name,const QTime &start,int len);
void remove(int line);
void move(int from_line,int to_line);
bool validate(const QTime &start_time,int length,int except_line=-1);
bool generateLog(int hour,const QString &logname,const QString &svc_name,
QString *errors);