QMessageContentContainerId QMessageContentContainerPrivate::prependContent(QMessageContentContainer& container) { _attachments.prepend(container); for (int i = 0; i < _attachments.count(); ++i) { _attachments[i].d_ptr->_id = QMessageContentContainerId(SymbianHelpers::addIdPrefix(QString::number(i+1),SymbianHelpers::EngineTypeMTM)); } return _attachments[0].d_ptr->_id; }
QMessageContentContainerId QMessageContentContainerPrivate::prependContent(QMessageContentContainer& container) { _attachments.prepend(container); for (int i = 0; i < _attachments.count(); ++i) { QString newId = QString::number(i+1); newId += "_"; newId += container.d_ptr->_attachmentId; _attachments[i].d_ptr->_id = QMessageContentContainerId(newId); } return _attachments[0].d_ptr->_id; }
QMessageContentContainerId QMessageContentContainerPrivate::appendContent(QMessageContentContainer& container) { QString newId = QString::number(_attachments.count()+1); newId += "_"; newId += container.d_ptr->_attachmentId; container.d_ptr->_id = QMessageContentContainerId(newId); _attachments.append(container); return container.d_ptr->_id; }
QMessageContentContainerId QMessageContentContainerPrivate::bodyContentId() { return QMessageContentContainerId(SymbianHelpers::addIdPrefix(QString::number(0),SymbianHelpers::EngineTypeMTM)); }
QMessageContentContainerId QMessageContentContainerPrivate::appendContent(QMessageContentContainer& container) { container.d_ptr->_id = QMessageContentContainerId(SymbianHelpers::addIdPrefix(QString::number(_attachments.count()+1),SymbianHelpers::EngineTypeMTM)); _attachments.append(container); return container.d_ptr->_id; }
QMessageContentContainerId QMessageContentContainerPrivate::bodyContentId() { return QMessageContentContainerId(QString::number(0)); }