[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: dcop command line and lists
From:       Chris Gow <sniffy () rogers ! com>
Date:       2007-11-07 16:00:17
Message-ID: 200711071100.17770.sniffy () rogers ! com
[Download RAW message or body]

On Wednesday 07 November 2007 09:50:09 Kevin Krammer wrote:
> On Wednesday 07 November 2007, Chris Gow wrote:
> > Hello:
> > >from a shell, is it possible to call the following dcop function?
> >
> > kontact  MailTransportServiceIface sendMessage(QString from,QString
> > to,QString cc,QString bcc,QString subject,QString body,KURL::List
> > attachments)
> >
> > I want to pass 0 attachments.
>
> A list is "detected" by parenthese or brackets (both need escaping), e.g
>
> \[ item1 item2 item3 \]
>
> or
>
> \( item1 item2 item3 \)
>
> So in your case (0 attachments) try
>
> \( \)
>
> Cheers,
> Kevin

Thanks. Unfortunately it doesn't appear to work for me. dcop picks the wrong 
function signature :(. 

$ dcop kontact MailTransportServiceIface 
sendMessage "chris.gow@gmail.com" "chris.gow@gmail.com" "" "" "subject" "body" 
\( \)
cannot handle datatype 'QByteArray'

dcop is selecting the version of sendMessage that takes an array. I tried both 
\[ \] and \( \). With and without items. Made no difference.

Is it possible to pass the parameter types in addition to the function name to 
dcop? 

eg. something like dcop kontact 
MailTransportServiceIface "sendMessage(QString, QString, QString, QString, 
QString, QString, KURL::List)" ?

I tried the above but it didn't make a difference. 

In case it matters, I can not call this function from kdcop either. kdcop says 
it can not handle KURL::List. I was/am hoping that dcop is a little more 
robust.

thanks

-- chris


 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic