[SailfishDevel] Getting SMS notifications

Andrey Kozhevnikov coderusinbox at gmail.com
Fri Mar 21 18:13:01 UTC 2014


SMSListener::SMSListener(QObject *parent) :
     QObject(parent)
{
     QDBusConnection::systemBus().connect("",
                                          "",
"org.ofono.MessageManager",
                                          "IncomingMessage",
                                          this,
SLOT(onMessageAdded(QString,QVariantList)));

}

void SMSListener::onMessageAdded(QString text, QVariantList params)
{

}

On 22.03.2014 00:11, Goulagman wrote:
> Hello,
>
> I am trying to build an application that triggers an alarm when a 
> particular word is written in a SMS. The first step is to be warned 
> whan a SMS is received. I have searched but I can't find how to do 
> that. I have an application using telepathy-qt to send an SMS, so I 
> guess that it is also possible to be warned when one is received.
>
> Is there a standard way to do that ?
>
> Best,
>
> Alexandre.
>
>
> _______________________________________________
> SailfishOS.org Devel mailing list

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20140322/42365032/attachment.html>


More information about the Devel mailing list