mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-05-28 06:32:32 +02:00
2021-07-14 Fred Gleason <fredg@paravelsystems.com>
* Removed the 'RDTimeEvent' class. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
parent
600aef26dd
commit
7596303890
@ -22045,3 +22045,5 @@
|
||||
2021-07-14 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Refactored the 'RDTimeEngine' class.
|
||||
* Added a 'timeengine_test' test harness.
|
||||
2021-07-14 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Removed the 'RDTimeEvent' class.
|
||||
|
@ -264,7 +264,6 @@ dist_librd_la_SOURCES = dbversion.h\
|
||||
rdtextvalidator.cpp rdtextvalidator.h\
|
||||
rdtimeedit.cpp rdtimeedit.h\
|
||||
rdtimeengine.cpp rdtimeengine.h\
|
||||
rdtimeevent.cpp rdtimeevent.h\
|
||||
rdtrackereditdialog.cpp rdtrackereditdialog.h\
|
||||
rdtrackermodel.cpp rdtrackermodel.h\
|
||||
rdtrackertableview.cpp rdtrackertableview.h\
|
||||
|
@ -27,8 +27,6 @@
|
||||
#include <QSignalMapper>
|
||||
#include <QTimer>
|
||||
|
||||
#include <rdtimeevent.h>
|
||||
|
||||
class RDTimeEngine : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
@ -1,76 +0,0 @@
|
||||
// rdtimeevent.cpp
|
||||
//
|
||||
// A Container Class for RTimeEngine events.
|
||||
//
|
||||
// (C) Copyright 2003-2004,2016 Fred Gleason <fredg@paravelsystems.com>
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Library General Public License
|
||||
// version 2 as published by the Free Software Foundation.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public
|
||||
// License along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
//
|
||||
|
||||
#include <rdtimeevent.h>
|
||||
|
||||
RDTimeEvent::RDTimeEvent()
|
||||
{
|
||||
clear();
|
||||
}
|
||||
|
||||
|
||||
QTime RDTimeEvent::time() const
|
||||
{
|
||||
return event_time;
|
||||
}
|
||||
|
||||
|
||||
void RDTimeEvent::setTime(QTime time)
|
||||
{
|
||||
event_time=time;
|
||||
}
|
||||
|
||||
|
||||
int RDTimeEvent::id(int num) const
|
||||
{
|
||||
return event_id[num];
|
||||
}
|
||||
|
||||
|
||||
void RDTimeEvent::setId(int num,int id)
|
||||
{
|
||||
event_id[num]=id;
|
||||
}
|
||||
|
||||
|
||||
void RDTimeEvent::addId(int id)
|
||||
{
|
||||
event_id.push_back(id);
|
||||
}
|
||||
|
||||
|
||||
void RDTimeEvent::removeId(int num)
|
||||
{
|
||||
std::vector<int>::iterator it=event_id.begin()+num;
|
||||
event_id.erase(it,it+1);
|
||||
}
|
||||
|
||||
|
||||
int RDTimeEvent::size() const
|
||||
{
|
||||
return event_id.size();
|
||||
}
|
||||
|
||||
|
||||
void RDTimeEvent::clear()
|
||||
{
|
||||
event_time=QTime();
|
||||
event_id.clear();
|
||||
}
|
@ -1,47 +0,0 @@
|
||||
// rdtimeevent.h
|
||||
//
|
||||
// A Container Class for RTimeEngine events.
|
||||
//
|
||||
// (C) Copyright 2003-2004,2016 Fred Gleason <fredg@paravelsystems.com>
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Library General Public License
|
||||
// version 2 as published by the Free Software Foundation.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public
|
||||
// License along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
//
|
||||
|
||||
#ifndef RDTIMEEVENT_H
|
||||
#define RDTIMEEVENT_H
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include <qdatetime.h>
|
||||
|
||||
class RDTimeEvent
|
||||
{
|
||||
public:
|
||||
RDTimeEvent();
|
||||
QTime time() const;
|
||||
void setTime(QTime time);
|
||||
int id(int num) const;
|
||||
void setId(int num,int id);
|
||||
void addId(int id);
|
||||
void removeId(int num);
|
||||
int size() const;
|
||||
void clear();
|
||||
|
||||
private:
|
||||
QTime event_time;
|
||||
std::vector<int> event_id;
|
||||
};
|
||||
|
||||
|
||||
#endif // RDTIMEEVENT_H
|
Loading…
x
Reference in New Issue
Block a user