Exemple #1
0
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);
}
Exemple #2
0
void App::openPush(int pushSeqNum)
{
    Push push = m_pushNotificationService.push(pushSeqNum);
    QVariantList indexPath = m_model->findExact(push.toMap());
    updatePushContent(push, indexPath);
}
Exemple #3
0
void App::openPush(int pushSeqNum)
{
    Push push = m_pushHandler->push(pushSeqNum);
    QVariantList indexPath = m_model->findExact(push.toMap());
    updatePushContent(push, indexPath);
}