Editing Hildon Event Feed
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 115: | Line 115: | ||
==Examples== | ==Examples== | ||
- | ''' | + | '''dbus-send''' |
- | + | ||
- | dbus-send | + | |
dbus-send --print-reply --type=method_call --dest=com.maemo.eventFeed / com.maemo.eventFeed.addEvent string:'my_source' string:'My Source' string:'/path/to/my/icon.png' string:'My Event' string:'This is an event' array:string:'/path/to/image/one.png', '/path/to/image/two.png' string:'Event footer' string:'2012-10-01T16:00:08.000Z' string:'exec /path/to/my/script argument' | dbus-send --print-reply --type=method_call --dest=com.maemo.eventFeed / com.maemo.eventFeed.addEvent string:'my_source' string:'My Source' string:'/path/to/my/icon.png' string:'My Event' string:'This is an event' array:string:'/path/to/image/one.png', '/path/to/image/two.png' string:'Event footer' string:'2012-10-01T16:00:08.000Z' string:'exec /path/to/my/script argument' | ||
- | Python | + | '''Python''' |
import dbus | import dbus | ||
Line 137: | Line 135: | ||
else: | else: | ||
print 'Error adding event' | print 'Error adding event' | ||
- | |||
- | |||
#!/usr/bin/env python | #!/usr/bin/env python |
Learn more about Contributing to the wiki.