Uploaded image for project: 'Qt Mobility'
  1. Qt Mobility
  2. QTMOBILITY-1714

Mark as Read for SMS not working

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Not Evaluated Not Evaluated
    • None
    • 1.1.2
    • Messaging
    • None
    • Qt Creator with Qt 4.7.3 and Qt Mobility 1.1.2. Mobile - Nokia 5800 XpressMusic

      When trying to mark an incoming SMS as read, it doesnt work as expected.

      Dashboard::Dashboard(QWidget *parent)
      : QMainWindow(parent), ui(new Ui::Dashboard)
      {

      m_manager = new QMessageManager(this);

      connect(m_manager, SIGNAL(messageAdded(const QMessageId&, const QMessageManager::NotificationFilterIdSet&)),
      this, SLOT(messageAdded(const QMessageId&,
      const QMessageManager::NotificationFilterIdSet&)));

      m_notifFilterSet.insert(m_manager->registerNotificationFilter(
      QMessageFilter::byType(QMessage::Sms) &
      QMessageFilter::byStandardFolder(QMessage::InboxFolder)));

      }

      void Dashboard::messageAdded(const QMessageId& id,
      const QMessageManager::NotificationFilterIdSet& matchingFilterIds)
      {

      if (matchingFilterIds.contains(m_notifFilterSet))

      { m_messageId = id; QTimer::singleShot(0, this, SLOT(processIncomingSMS())); }

      }

      void Dashboard::processIncomingSMS()

      {

      QMessage message = m_manager->message(m_messageId);

      message.setStatus(QMessage::Read);

      }

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            sanders Don Sanders (closed Nokia identity) (Inactive)
            emaillenin Lenin Raj Rajasekaran
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes