View Single Post
marxian's Avatar
Posts: 2,448 | Thanked: 9,523 times | Joined on Aug 2010 @ Wigan, UK
#4
Originally Posted by nauman.altaf View Post
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 array of strings will in your case only contain a single string, so you simply use the first string in the array (QStringList::first() if you are using Qt). Ensure that it's not empty first.

I should add that it is libcontentaction that requires the argument to be of type "as", otherwise the URI handler will not work with DBus. If you do not need the URI handler, you can use argument of type "s" and accept a single string.
__________________
'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
 

The Following User Says Thank You to marxian For This Useful Post: