Revision 3fd96253
Von Christian Ehringfeld vor mehr als 10 Jahren hinzugefügt
| samples/example/models/contact.cpp | ||
|---|---|---|
|
#include "contact.h"
|
||
|
|
||
|
Contact::Contact(QString label, ContactCategory category, QString content) {
|
||
|
m_label=label;
|
||
|
m_category=category;
|
||
|
m_content=content;
|
||
|
Contact::Contact(QString label, Enums::ContactCategory category, QString content) {
|
||
|
this->label = label;
|
||
|
this->category = category;
|
||
|
this->content = content;
|
||
|
}
|
||
|
QString Contact::getContent() const {
|
||
|
return content;
|
||
|
}
|
||
|
|
||
|
void Contact::setContent(const QString &value) {
|
||
|
content = value;
|
||
|
}
|
||
|
Enums::ContactCategory Contact::getCategory() const {
|
||
|
return category;
|
||
|
}
|
||
|
|
||
|
void Contact::setCategory(const Enums::ContactCategory &value) {
|
||
|
category = value;
|
||
|
}
|
||
|
QString Contact::getLabel() const {
|
||
|
return label;
|
||
|
}
|
||
|
|
||
|
void Contact::setLabel(const QString &value) {
|
||
|
label = value;
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|
||
Auch abrufbar als: Unified diff
update, many to many is not fully working, but persisting works