void FullMessageCombiner::load() { Imap::Mailbox::TreeItemPart *headerPart = headerPartPtr(); headerPart->fetch(const_cast<Mailbox::Model *>(m_model)); Imap::Mailbox::TreeItemPart *bodyPart = bodyPartPtr(); bodyPart->fetch(const_cast<Mailbox::Model *>(m_model)); slotDataChanged(QModelIndex(), QModelIndex()); }
void FullMessageCombiner::load() { Imap::Mailbox::TreeItemPart *headerPart = headerPartPtr(); Imap::Mailbox::TreeItemPart *bodyPart = bodyPartPtr(); headerPart->fetch(const_cast<Mailbox::Model *>(m_model)); bodyPart->fetch(const_cast<Mailbox::Model *>(m_model)); if (headerPart->fetched() && bodyPart->fetched()) { emit completed(); } }
void ImapPartAttachmentItem::preload() const { Imap::Mailbox::TreeItemPart *part = partPtr(); if (part) { part->fetch(model); } }