View Single Post
marxian's Avatar
Posts: 2,448 | Thanked: 9,523 times | Joined on Aug 2010 @ Wigan, UK
#6
Originally Posted by nauman.altaf View Post
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
Your desktop file looks right, though I think it is necessary that the MimeType value have a semi-colon at the end, so it should be

Code:
MimeType=x-maemo-urischeme/foo;
At least in my case, the desktop icon did not show without the semi-colon, which indicates that the desktop file could not be parsed.

If you are using MEventFeed::instance()->addItem(), then your DBus method showContent() should take a QStringList as it's sole argument, instead of a QString. Also, have you created the intreface/adapter files as explained in the wiki page that I linked to earlier?
__________________
'Men of high position are allowed, by a special act of grace, to accomodate their reasoning to the answer they need. Logic is only required in those of lesser rank.' - J K Galbraith

My website

GitHub