![]() |
QMessageFilter and listening for incoming SMS doesn't work
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); 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 |
Re: QMessageFilter and listening for incoming SMS doesn't work
This works from me.
Code:
connect(&m_manager, Code:
void MessageHandler::messageReceived(const QMessageId& id, my question? |
Re: QMessageFilter and listening for incoming SMS doesn't work
I forgot to mention that this is on Harmattan. I Haven't tested this under maemo5.
|
Re: QMessageFilter and listening for incoming SMS doesn't work
You are right, it does work for SMS, too.
But it doesn't work for QMessageType InstantMessage, this is strange, as both message types are signaled by CommHistory with a dbus signal "eventsAdded" and the Qt MessageManager should listen on this signal. As for sending SMS, you could try to use telepathy instead of QMessageService. |
Re: QMessageFilter and listening for incoming SMS doesn't work
I was thinking to connect to dbus directly. I can see a slight difference between the messages sent from conversation and from my application. It is only a message type identifier which is missing from the conversations dbus message. It might just be a problem with vodafone. I'll try another carrier and see if it is the same. This is quite frustrating development. qtmobility is fragile at best and I am sitting on an almost finished application.
I will try instant messages when I get the time and get back to you. Do you know anybody who has used qml location/landmark? |
Re: QMessageFilter and listening for incoming SMS doesn't work
Quote:
Had a handful applications in mind or work, but for every application there was missing or buggy part in qtmobility. (Contacts, alarms, messaging ...) Quote:
remember where it fails, at the moment. What do you want to do? Have some code that doesn't work? |
Re: QMessageFilter and listening for incoming SMS doesn't work
I am creating landmarks on demand in c++, and using LandmarkModel in qml. The ProximityFilter works in the qt simulator but on the device it works some time but not others for no obvious reason. The CategoryFilter doesn't work at all.
So I think I have to revert to creating a custom geomap qml c=+ plugin... And a custom dbus SMS send work around. Enough to drive me to java ;-) |
Re: QMessageFilter and listening for incoming SMS doesn't work
As a developer competition price they should offer fixing a bug of choice instead of devices.
|
Re: QMessageFilter and listening for incoming SMS doesn't work
Quote:
|
All times are GMT. The time now is 08:13. |
vBulletin® Version 3.8.8