void InboxMessageSet::init() { // Add every email account as a folder within the inbox synchronizeAccountChildren(); connect(model(), SIGNAL(accountsAdded(QMailAccountIdList)), this, SLOT(accountsAdded(QMailAccountIdList))); connect(model(), SIGNAL(accountsUpdated(QMailAccountIdList)), this, SLOT(accountsUpdated(QMailAccountIdList))); connect(model(), SIGNAL(accountsRemoved(QMailAccountIdList)), this, SLOT(accountsRemoved(QMailAccountIdList))); connect(model(), SIGNAL(accountContentsModified(QMailAccountIdList)), this, SLOT(accountContentsModified(QMailAccountIdList))); EmailStandardFolderMessageSet::init(); }
// ############ Slots ############## void EmailAccountListModel::onAccountsAdded(const QModelIndex &parent, int start, int end) { Q_UNUSED(parent); Q_UNUSED(start); Q_UNUSED(end); emit accountsAdded(); emit numberOfAccountsChanged(); emit lastUpdateTimeChanged(); }