void App::updatePushContent(Push &push, const QVariantList &indexPath) { push.setUnread(false); m_pushNotificationService.markPushAsRead(push.seqNum()); m_model->updateItem(indexPath, push.toMap()); // The push has been opened, so delete the notification Notification::deleteFromInbox(NOTIFICATION_PREFIX + QString::number(push.seqNum())); m_pushContentController->setCurrentPush(push); }
void App::openPush(int pushSeqNum) { Push push = m_pushNotificationService.push(pushSeqNum); QVariantList indexPath = m_model->findExact(push.toMap()); updatePushContent(push, indexPath); }
void App::openPush(int pushSeqNum) { Push push = m_pushHandler->push(pushSeqNum); QVariantList indexPath = m_model->findExact(push.toMap()); updatePushContent(push, indexPath); }