|
|
2015-01-27
, 23:40
|
|
|
Posts: 5,339 |
Thanked: 4,133 times |
Joined on Jan 2010
@ Israel
|
#52
|
Sorry, i have no voicemails option on my operator, i can't test it. But if you give me information about dbus names to fetch status i can make proper daemon.
dbus-send --system --type=method_call --print-reply --dest=org.ofono /ril_0 org.ofono.MessageWaiting.GetProperties
/usr/lib/qt5/bin/qdbus --system org.ofono /ril_0 org.ofono.MessageWaiting.GetProperties
|
|
2015-01-27
, 23:43
|
|
|
Posts: 6,431 |
Thanked: 12,683 times |
Joined on Nov 2011
@ Open Mobile Platform, Innopolis, Russia
|
#53
|
|
|
2015-01-27
, 23:49
|
|
Posts: 339 |
Thanked: 1,622 times |
Joined on Oct 2013
@ France
|
#54
|

// There may be some includes missing, I cleaned this list manually when pasting it here...
#include "qofonomanager.h"
#include "qofonomodem.h"
#include "qofonomessagewaiting.h"
// In the class constructor:
_ofonoMessageWaiting = new QOfonoMessageWaiting(this);
QOfonoManager* manager = new QOfonoManager(this);
QStringList modems = manager->modems();
if (modems.size() == 0)
{
qDebug() << "No modem found";
return;
}
_ofonoMessageWaiting->setModemPath(modems.at(0));
if (! _ofonoMessageWaiting->isValid())
{
qDebug() << "QOfonoMessageWaiting object invalid" << _ofonoMessageWaiting;
return;
}
// This does the work : connecting to a slot in the class, from the signal that qofono sends when there is a change.
connect(_ofonoMessageWaiting,SIGNAL(voicemailWaitingChanged(bool)), this, SLOT(voicemailWaitingChanged(bool)));
// To avoid loosing message, the content is checked at init, and not only when changing:
voicemailWaitingChanged(_ofonoMessageWaiting->voicemailWaiting());
remoteDBusCallServiceName: "org.nemomobile.example" remoteDBusCallObjectPath: "/example" remoteDBusCallInterface: "org.nemomobile.example" remoteDBusCallMethodName: "doSomething" remoteDBusCallArguments: [ "argument", 1 ]
DBusInterface {
id: voicecallIf
destination: "com.jolla.voicecall.ui"
path: "/"
iface: "com.jolla.voicecall.ui"
}
|
|
2015-01-27
, 23:56
|
|
Posts: 339 |
Thanked: 1,622 times |
Joined on Oct 2013
@ France
|
#55
|
You can use
or this:Code:dbus-send --system --type=method_call --print-reply --dest=org.ofono /ril_0 org.ofono.MessageWaiting.GetProperties
to check if voicemail "true" that mean have voicemail message.Code:/usr/lib/qt5/bin/qdbus --system org.ofono /ril_0 org.ofono.MessageWaiting.GetProperties
signal sender=:1.14 -> dest=(null destination) serial=15125 path=/ril_0; interface=org.ofono.MessageWaiting; member=PropertyChanged string "VoicemailWaiting" variant boolean true
|
|
2015-01-28
, 04:03
|
|
|
Posts: 6,431 |
Thanked: 12,683 times |
Joined on Nov 2011
@ Open Mobile Platform, Innopolis, Russia
|
#56
|
|
|
2015-01-28
, 06:06
|
|
|
Posts: 5,339 |
Thanked: 4,133 times |
Joined on Jan 2010
@ Israel
|
#57
|
|
|
2015-01-28
, 06:27
|
|
|
Posts: 5,339 |
Thanked: 4,133 times |
Joined on Jan 2010
@ Israel
|
#58
|

gdbus call -e -d com.jolla.voicecall.ui -o / -m com.jolla.voicecall.ui.dial '+97215154003200'
|
|
2015-01-28
, 06:46
|
|
|
Posts: 6,431 |
Thanked: 12,683 times |
Joined on Nov 2011
@ Open Mobile Platform, Innopolis, Russia
|
#59
|
|
|
2015-01-28
, 06:50
|
|
|
Posts: 6,431 |
Thanked: 12,683 times |
Joined on Nov 2011
@ Open Mobile Platform, Innopolis, Russia
|
#60
|
| The Following User Says Thank You to coderus For This Useful Post: | ||
![]() |
| Tags |
| sailfish os, voicemail |
| Thread Tools | |
|
Twitter | Openrepos | GitHub | PayPal.Me