43 lines
583 B
C++
43 lines
583 B
C++
#include "record.h"
|
|
|
|
Record::Record()
|
|
{
|
|
|
|
}
|
|
Record::Record(int id, QString title)
|
|
{
|
|
this->id = id;
|
|
this->title = title;
|
|
this->time = QDateTime::currentDateTime();
|
|
}
|
|
Record::Record(QString title)
|
|
{
|
|
this->title = title;
|
|
}
|
|
int Record::getId() const
|
|
{
|
|
return id;
|
|
}
|
|
QString Record::getTitle() const
|
|
{
|
|
return title;
|
|
}
|
|
QDateTime Record::getTime() const
|
|
{
|
|
return time;
|
|
}
|
|
|
|
void Record::setId(int i)
|
|
{
|
|
this->id = id;
|
|
}
|
|
void Record::setTitle(const QString title)
|
|
{
|
|
this->title = title;
|
|
}
|
|
void Record::setTime(const QDateTime time)
|
|
{
|
|
this->time = time;
|
|
}
|
|
|