View Single Post
Posts: 80 | Thanked: 51 times | Joined on Feb 2010 @ Finland
#43
Answering to myself.. hopefully this will be helpful for others too

Code:
import org.nemomobile.notifications 1.0

.......
Button {
	Notification {
		id: notification
		category: "x-nemo.example"
		summary: "Notification summary"
		body: "Notification body"
		previewSummary: "Notification preview summary"
		previewBody: "Notification preview body"
		itemCount: 5
		timestamp: "2013-02-20 18:21:00"
		remoteDBusCallServiceName: "org.nemomobile.example"
		remoteDBusCallObjectPath: "/example"
		remoteDBusCallInterface: "org.nemomobile.example"
		remoteDBusCallMethodName: "doSomething"
		remoteDBusCallArguments: [ "argument", 1 ]
		onClicked: console.log("Clicked")
		onClosed: console.log("Closed, reason: " + reason)
	}
	text: "Application notification, ID " + notification.replacesId
	onClicked: notification.publish()
}
More information available on comments in following page:
https://github.com/nemomobile/nemo-q...tification.cpp
 

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