dcop commandline: syntax question

Thiago Macieira thiago at kde.org
Mon Jan 29 18:31:08 GMT 2007

Kurt Pfeifle wrote:
>Can someone please point me to a resource that documents the syntax
>for handing "complex" parameters to a dcop commandline. I've googled
>(and experimented with what I found) for several hours, but didn't
> kurt@~> dcop kded kdeprintd | grep print
> int print(QString cmd,QStringList files,bool remove

I actually know this answer because I wrote the same thing for QtDBus:

string lists are handled by placing the arguments between ( and ).

Note that you may need to escape them with quotations, apostrophes or 
backslashes if your shell thinks ( is special.

In time: qdbus handles only QVariantList and QStringList. There's no plan 
to add more list types to the tool. Use a scripting language if you 
require more.

  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- 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-core-devel/attachments/20070129/7242d3db/attachment.sig>

More information about the kde-core-devel mailing list