![]() |
2013-01-30
, 13:01
|
|
Posts: 2,448 |
Thanked: 9,523 times |
Joined on Aug 2010
@ Wigan, UK
|
#2
|
1- How clicking the feed will open that feed description in my own application.
2- Does meventfeed passes complete url of the feed to uri handler application when it is clicked.
The Following 6 Users Say Thank You to marxian For This Useful Post: | ||
![]() |
2013-01-30
, 23:22
|
Posts: 22 |
Thanked: 9 times |
Joined on Jun 2012
|
#3
|
![]() |
2013-01-31
, 01:25
|
|
Posts: 2,448 |
Thanked: 9,523 times |
Joined on Aug 2010
@ Wigan, UK
|
#4
|
Thanks alot marxian for quite a detailed reply... i have successfully registered DBus servie that is able to generate feeds.. One more thing! when clicking the feed item.
1- How parse url information from array of string provided through 'as' argument. I mean its array not a single string. Single string is easy to deal with but how the url information will be sorted in 'as' and how to fetch it in handler.
The Following User Says Thank You to marxian For This Useful Post: | ||
![]() |
2013-01-31
, 11:16
|
Posts: 22 |
Thanked: 9 times |
Joined on Jun 2012
|
#5
|
![]() |
2013-01-31
, 12:05
|
|
Posts: 2,448 |
Thanked: 9,523 times |
Joined on Aug 2010
@ Wigan, UK
|
#6
|
In my case, i am registering a method in dbus "refresh()". In this method i am using MEventFeed::instance()->addItem(). Buteo Syncfw plugin will call this dbus method at regular intervals to generate feeds. I have one more dbus method "showContent(Constant QString &uri)". My desktop file looks like this
[Desktop Entry]
Type=Application
Name=My Application
MimeType=x-maemo-urischeme/foo
X-Maemo-Service=com.mycompany.service
X-Maemo-Method=com.mycompany.service.showContent
NotShowIn=X-MeeGo;
when i am clicking the feed item, it is not working i.e showContent is not called.
Are these configuration correct? If no please guide me further
MimeType=x-maemo-urischeme/foo;
![]() |
2013-01-31
, 17:28
|
Posts: 22 |
Thanked: 9 times |
Joined on Jun 2012
|
#7
|
![]() |
2013-01-31
, 17:49
|
|
Posts: 2,448 |
Thanked: 9,523 times |
Joined on Aug 2010
@ Wigan, UK
|
#8
|
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.
QDBusMessage message = QDBusMessage::createMethodCall( "com.nokia.home.EventFeed", "/eventfeed", "com.nokia.home.EventFeed", "addItem"); QVariantList args; QVariantMap itemArgs; itemArgs.insert("title", "event title"); itemArgs.insert("icon", QString("/path/to/application/icon")); itemArgs.insert("body", "event description"); itemArgs.insert("imageList", QStringList() << "thumbnail.png"); itemArgs.insert("timestamp", QDateTime::currentDateTime().toString("yyyy-MM-dd hh:mm:ss")); itemArgs.insert("video", false); itemArgs.insert("footer", "event footer"); itemArgs.insert("sourceName", QString("myapplication")); itemArgs.insert("sourceDisplayName", QString("My Application")); itemArgs.insert("action", QString("com.me.myApplication / com.me.myApplication showContent %1").arg(URI)); QDBusConnection bus = QDBusConnection::sessionBus(); args.append(itemArgs); message.setArguments(args); bus.call(message);
![]() |
2013-02-06
, 21:47
|
Posts: 22 |
Thanked: 9 times |
Joined on Jun 2012
|
#9
|
1- How clicking the feed will open that feed description in my own application.
2- Does meventfeed passes complete url of the feed to uri handler application when it is clicked.
3- How to load GUI when clicking the feed