maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Harmattan - Show InfoBanner via DBus (https://talk.maemo.org/showthread.php?t=84624)

EmaNymton 2012-05-31 15:32

Harmattan - Show InfoBanner via DBus
 
1 Attachment(s)
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.

CepiPerez 2012-05-31 16:25

Re: Harmattan - Show InfoBanner via DBus
 
You have InfoBanner in QML
If you are building a Pythom-QML app you can pass the signal from to QML.

EmaNymton 2012-05-31 17:07

Re: Harmattan - Show InfoBanner via DBus
 
I know, but
Quote:

...needed this for a daemon, so no QML available.

slarti 2012-06-07 07:16

Re: Harmattan - Show InfoBanner via DBus
 
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)

nieldk 2012-06-07 07:53

Re: Harmattan - Show InfoBanner via DBus
 
Quote:

Originally Posted by slarti (Post 1218752)
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/

Alexxxl 2014-10-10 08:34

Re: Harmattan - Show InfoBanner via DBus
 
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 ...

coderus 2014-10-10 08:56

Re: Harmattan - Show InfoBanner via DBus
 
/usr/share/meegotouch/notifications/eventtypes

Alexxxl 2014-10-10 09:02

Re: Harmattan - Show InfoBanner via DBus
 
Exelent! Thanks! )))

irulestar 2014-10-12 10:28

Can we use it as ❝Delivered Message❞ Notification like on Symbian!? :D

Alexxxl 2014-10-12 16:27

Re: Harmattan - Show InfoBanner via DBus
 
I'm not sure about that. need to understand in more detail with a delivery report


All times are GMT. The time now is 10:28.

vBulletin® Version 3.8.8