Active Topics

 


Reply
Thread Tools
EmaNymton's Avatar
Posts: 141 | Thanked: 267 times | Joined on May 2010 @ Germany
#1
Hi,
I was wondering if it's possible to show a popup message like the InfoBanner in QML via dbus because a friend of mine (programming in python) needed this for a daemon, so no QML available.
MeegoTouch is not available in PySide-Packages so dbus was my last hope. I figured out that
Code:
dbus-send --print-reply --dest=com.meego.core.MNotificationManager /notificationmanager com.meego.core.MNotificationManager.addNotification uint32:0 uint32:0 string:'device' string:'' string:'My message' string:'' string:'icon-m-toolbar-done' uint32:0
does what I want. The first string (string:'device') uses the EventType of http://harmattan-dev.nokia.com/docs/....html#_details, I think, the last one defines the used icon.

May be someone could use this, so I thought it is worth to share.

If there's a better way to show a popup banner with python, please let me know.
Attached Images
 

Last edited by EmaNymton; 2012-05-31 at 16:22.
 

The Following 12 Users Say Thank You to EmaNymton For This Useful Post:
CepiPerez's Avatar
Posts: 1,023 | Thanked: 4,421 times | Joined on Feb 2010 @ Argentina
#2
You have InfoBanner in QML
If you are building a Pythom-QML app you can pass the signal from to QML.
__________________
Filebox / FileCase for Maemo / Harmattan / Sailfish
FlowPlayer for Maemo / Harmattan / Sailfish
Whatsup for Harmattan / Sailfish
CallBlocker for Harmattan

Support my work:
Paypal / Bitcoin
 

The Following 2 Users Say Thank You to CepiPerez For This Useful Post:
EmaNymton's Avatar
Posts: 141 | Thanked: 267 times | Joined on May 2010 @ Germany
#3
I know, but
...needed this for a daemon, so no QML available.
 

The Following User Says Thank You to EmaNymton For This Useful Post:
Posts: 277 | Thanked: 319 times | Joined on Jan 2010
#4
Almost on topic: Does anyone know if there is a list of dbus-commands for Harmattan like there is for Fremantle and earlier here? (Setting profiles works in the same way)
 

The Following User Says Thank You to slarti For This Useful Post:
Guest | Posts: n/a | Thanked: 0 times | Joined on
#5
Originally Posted by slarti View Post
Almost on topic: Does anyone know if there is a list of dbus-commands for Harmattan like there is for Fremantle and earlier here? (Setting profiles works in the same way)
use qdbus to query

http://iktwo.com/n9-dbus-services-pr1-2/
 

The Following User Says Thank You to For This Useful Post:
Alexxxl's Avatar
Posts: 152 | Thanked: 91 times | Joined on Mar 2013 @ Russia Saratov
#6
Please tell me,
where to find documentation about the "EventType"?
reference to "http://harmattan-dev.nokia.com/docs/platform-api-reference/xml/daily-docs/libmeegotouch/class_m_notification.html#_details" have not worked ...
 

The Following User Says Thank You to Alexxxl For This Useful Post:
coderus's Avatar
Posts: 6,436 | Thanked: 12,701 times | Joined on Nov 2011 @ Ängelholm, Sweden
#7
/usr/share/meegotouch/notifications/eventtypes
__________________
Telegram | Openrepos | GitHub | Revolut donations
 

The Following 2 Users Say Thank You to coderus For This Useful Post:
Alexxxl's Avatar
Posts: 152 | Thanked: 91 times | Joined on Mar 2013 @ Russia Saratov
#8
 

The Following User Says Thank You to Alexxxl For This Useful Post:
irulestar's Avatar
Posts: 217 | Thanked: 89 times | Joined on Dec 2013 @ Indonesia, Banyuwangi
#9
Can we use it as ❝Delivered Message❞ Notification like on Symbian!?
__________________
any Question? ask here and Follow first @irulestar
 

The Following User Says Thank You to irulestar For This Useful Post:
Alexxxl's Avatar
Posts: 152 | Thanked: 91 times | Joined on Mar 2013 @ Russia Saratov
#10
I'm not sure about that. need to understand in more detail with a delivery report
 
Reply

Tags
harmattan, python


 
Forum Jump


All times are GMT. The time now is 20:23.