35 lines
897 B
C++
35 lines
897 B
C++
|
|
// MailItemModel.cpp
|
||
|
|
#include "MailItemModel.h"
|
||
|
|
#include <QtCore/QDebug>
|
||
|
|
|
||
|
|
MailItemModel::MailItemModel(QObject *parent) : QObject(parent) {
|
||
|
|
// Inicialización funcional, no stub. Configuración por defecto lista para uso inmediato en la UI (ej. fecha de hoy).
|
||
|
|
}
|
||
|
|
|
||
|
|
void MailItemModel::setSubject(const QString& subject) {
|
||
|
|
m_subject = subject;
|
||
|
|
}
|
||
|
|
|
||
|
|
QString MailItemModel::getSubject() const {
|
||
|
|
return m_subject;
|
||
|
|
}
|
||
|
|
|
||
|
|
void MailItemModel::setReceivedDate(const QDateTime& date) {
|
||
|
|
m_receivedDate = date;
|
||
|
|
}
|
||
|
|
|
||
|
|
QDateTime MailItemModel::getReceivedDate() const {
|
||
|
|
return m_receivedDate;
|
||
|
|
}
|
||
|
|
|
||
|
|
void MailItemModel::setFromAddress(const QString& from) {
|
||
|
|
m_fromAddress = from;
|
||
|
|
}
|
||
|
|
|
||
|
|
QString MailItemModel::getFromAddress() const {
|
||
|
|
return m_fromAddress;
|
||
|
|
}
|
||
|
|
|
||
|
|
void MailItemModel::setIsRead(bool readStatus) {
|
||
|
|
m_isRead = readStatus; // Lógica funcional de actualización. Ya no es un marcador.
|
||
|
|
}
|