67 lines
1.3 KiB
C++
67 lines
1.3 KiB
C++
#include "record.h"
|
|
|
|
|
|
|
|
Record::Record()
|
|
{
|
|
|
|
}
|
|
Record::Record(QString name,
|
|
QString username,
|
|
QString URL,
|
|
QString note,
|
|
QDateTime time){
|
|
this->id = id.createUuid();
|
|
this->name = name;
|
|
this->username = username;
|
|
this->URL = URL;
|
|
this->note = note;
|
|
this->time = time;
|
|
}
|
|
Record::Record(QString name,
|
|
QString username,
|
|
QString URL,
|
|
QDateTime time){
|
|
this->id = id.createUuid();
|
|
this->name = name;
|
|
this->username = username;
|
|
this->URL = URL;
|
|
this->time = time;
|
|
}
|
|
//QString Record::getId() const{}
|
|
QUuid Record::getId() const{
|
|
return id;
|
|
}
|
|
QString Record::getName() const{
|
|
return name;
|
|
}
|
|
QString Record::getUsername() const{
|
|
return username;
|
|
}
|
|
QString Record::getURL() const{
|
|
return URL;
|
|
}
|
|
QString Record::getNote() const{
|
|
return note;
|
|
}
|
|
QDateTime Record::getTime() const{
|
|
return time;
|
|
}
|
|
|
|
void Record::setName(QString const name){
|
|
this->name = name;
|
|
}
|
|
void Record::setUsername(QString const username){
|
|
this->username = username;
|
|
}
|
|
void Record::setURL(QString const URL){
|
|
this->URL = URL;
|
|
}
|
|
void Record::setNote(QString const note){
|
|
this->note = note;
|
|
}
|
|
void Record::setTime(QDateTime const time){
|
|
this->time = time;
|
|
}
|
|
|