View Single Post
happosai's Avatar
Posts: 10 | Thanked: 7 times | Joined on Mar 2013 @ UK
#2
I've looked more into implementing this via D-Bus (not something I have much experience with).

I found a wiki entry about the com.nokia.HildonSVNotificationDaemon D-Bus interface, which I suspected was used for SMS alerts.

I entered

Code:
dbus-monitor interface=com.nokia.HildonSVNotificationDaemon
in a terminal window and sent a text to my phone, which resulted in

Code:
method call sender=:1.32 -> dest=com.nokia.HildonSVNotificationDaemon serial=694 path=/com/nokia/HildonSVNotificationDaemon; interface=com.nokia.HildonSVNotificationDaemon; member=PlayEvent
	array [
		dict entry(
			string	"urgency"
			variant	byte	1
		)
		dict entry(
			string	"vibra"
			variant	string 	"PatternIncomingMessage"
		)
		dict entry(
			string	"sound-file"
			variant	string	"messaging_and_title_3"
		)
		dict entry(
			string	"category"
			variant	string	"sms-message"
		)
		dict entry(
			string	"persistent"
			variant	byte	1
		)
		dict entry(
			string	"time"
			variant	int64	1363190279
		)
	]
	string	":1.25"
which seems to confirm my suspicions.

The com.nokia.HildonSVNotificationDaemon interface has a StopEvent method, which I assume is what can be used to stop a currently-playing event.

Now I've reached the limit of my understanding. Is there a way to find currently-active events sent to com.nokia.HildonSVNotificationDaemon using PlayEvent, filter out those associated with an SMS alert (category=sms-message?) and then stop them using StopEvent?

[Happosai]
 

The Following 2 Users Say Thank You to happosai For This Useful Post: