View Single Post
nicolai's Avatar
Posts: 1,637 | Thanked: 4,424 times | Joined on Apr 2009 @ Germany
#1
Hi,

I try to use QMessageManager to listen for incoming
messages (SMS/InstantMessage). But I only got it
working for E-Mail. This is my code
Code:
m_manager = new QMessageManager(this);
    QObject::connect(m_manager,
        SIGNAL(messageAdded(const QMessageId&,
            const QMessageManager::NotificationFilterIdSet&)),
        this,
        SLOT(messageAdded(const QMessageId&,
            const QMessageManager::NotificationFilterIdSet&)));

    m_manager->registerNotificationFilter(
                QMessageFilter::byType(QMessage::Sms));
The messageAdded signal is never called on new messages.
I tried different filters, empty filters, filter for InstantMessage,
SMS and InstantMessage. But only the empty filter or
a filter which includes QMessage::EMail works, and only for
new emails.
Anyone got this working or any idea what I could have
missed?

nicolai