View Single Post
Posts: 61 | Thanked: 51 times | Joined on Feb 2010 @ Zurich
#3
To create a notification you need this:

http://harmattan-dev.nokia.com/docs/...ification.html

Here an example:

Code:
#include <MNotification>

MNotification notification("x-nokia.messaging.im");
notification.setSummary(SUMMARY-TEXT);
notification.setBody(BODY-TEXT);
notification.setImage(ICON-PATH);
notification.setIdentifier(IDENTIFIER); //Optional
notification.publish(); //To show the notification
Probably you want execute an action when you click on the event.
Then you have to add the following code:

Code:
MRemoteAction opAction(DBUS-COMMAND);
notification.setAction(opAction);
 

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