Add FolderDao and MailItemDao, update MailItem model to include folderId, fileId, size, messageId
This commit is contained in:
@@ -1,10 +1,14 @@
|
||||
#include "mailitem.h"
|
||||
|
||||
MailItem::MailItem(qint64 id, const QString& subject, const QString& sender,
|
||||
MailItem::MailItem(qint64 id, int folderId, const QString& subject, const QString& sender,
|
||||
const QString& recipient, const QDateTime& date,
|
||||
bool read, bool flagged,
|
||||
const QVector<QString>& attachments)
|
||||
const QVector<QString>& attachments,
|
||||
const QString& fileId,
|
||||
qint64 size,
|
||||
const QString& messageId)
|
||||
: m_id(id)
|
||||
, m_folderId(folderId)
|
||||
, m_subject(subject)
|
||||
, m_sender(sender)
|
||||
, m_recipient(recipient)
|
||||
@@ -12,5 +16,8 @@ MailItem::MailItem(qint64 id, const QString& subject, const QString& sender,
|
||||
, m_read(read)
|
||||
, m_flagged(flagged)
|
||||
, m_attachments(attachments)
|
||||
, m_fileId(fileId)
|
||||
, m_size(size)
|
||||
, m_messageId(messageId)
|
||||
{
|
||||
}
|
||||
Reference in New Issue
Block a user