View Single Post
Posts: 22 | Thanked: 9 times | Joined on Jun 2012
#7
MEventFeed::instance()->addItem() is meventfeed method to generate event feed. What is corresponding DBus method to generate event feed?

i checked com.nokia.home.EventFeed service and it is listing these methods

~ # qdbus com.nokia.home.EventFeed /eventfeed
method qlonglong com.nokia.home.EventFeed.addItem(QVariantMap parameters)
method void com.nokia.home.EventFeed.addRefreshAction(QString action)
signal void com.nokia.home.EventFeed.refreshRequested()
method void com.nokia.home.EventFeed.removeItem(qlonglong id)
method void com.nokia.home.EventFeed.removeItemsBySourceName(Q String sourceName)
method void com.nokia.home.EventFeed.updateItem(qlonglong id, QVariantMap parameters)

My DBus service is working Ok and yes i have used the wrapper generator through qdbusxml2cpp.

In the below link

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

its is stated to use below configurations

MRemoteAction action("com.mycompany.example", "/path", "com.mycompany.example", "refresh");
QDBusInterface interface("com.nokia.home.EventFeed", "/eventfeed", "com.nokia.home.EventFeed", QDBusConnection::sessionBus());
interface.call(QDBus::NoBlock, "addRefreshAction", action.toString());

but at the end it is again using MEventFeed::instance()->addItem()
in the refresh() method. that means MEventFeed::instance()->addItem() is the only way to generate feeds on home screen.