[kde-linux] Using dcop in a script

Kevin Krammer kevin.krammer at gmx.at
Sat Dec 3 13:04:18 UTC 2005

On Saturday 03 December 2005 01:04, Christophe Gaubert wrote:
> 	Hi every one,
> I would like to use dcop to send a command to akregator from a shell
> script. In a terminal, dcop can show me the available functions, for
> example :
> $ dcop akregator AkregatorIface
> QCStringList interfaces()
> QCStringList functions()
> void openStandardFeedList()
> void fetchFeedUrl(QString)
> void fetchAllFeeds()
> void saveSettings()
> void addFeedsToGroup(QStringList,QString)
> Now, I want to use addFeedsToGroup. Do you know what is the way to give
> a QStringList as argument in a script shell ? If I try :

Lists are a bit tricky, they are not documented :(
Using parenthese or brackets should work, i.e.

dcop akregator AkregatorIface addFeedsToGroup "[" "$url" "group" "]" 


Kevin Krammer <kevin.krammer at gmx.at>
Qt/KDE Developer, Debian User
Moderator: www.mrunix.de (German), www.qtforum.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-linux/attachments/20051203/8cde10d2/attachment.sig>

More information about the kde-linux mailing list