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

List:       kde-devel
Subject:    Re: openComposer with kjscmd returns just false
From:       Kevin Krammer <kevin.krammer () gmx ! at>
Date:       2005-09-26 11:21:57
Message-ID: 200509261321.57847.kevin.krammer () gmx ! at
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Sunday 25 September 2005 22:04, Ingo Klöcker wrote:
> On Sunday 25 September 2005 05:08, Matej Cepl wrote:
> > Hi,
> >
> > I am not sure which group/email list I should post this to, so there
> > is crossposting involved -- which list is the correct one (I tried
> > kjsembed@kde.org, but seems to be really non-responsive)?
> >
> > Trying to create script for programmatic sending of the current
> > message as an attachment (usefull for learning remote spam filter)
> > with KJSCmd (see attached). However, I have troubles to get DCOPRef.
> > When I try this (kjscmd 0.3 with KDE 3.4.1; lines broken for this
> > message only):
> >
> > var dcop = new DCOPClient(this);
> > var ret = dcop.call("kmail","KMailIface",\
> > "openComposer(QString,QString,QString,QString,QString,Boolean)",\
> > "random@example.com","","","Subject","text",true);

Unless KJSEmbed transforms DCOP strings, you have a wrong method signature 
there: try bool instead of Boolean

Cheers,
Kevin

-- 
Kevin Krammer <kevin.krammer@gmx.at>
Qt/KDE Developer, Debian User
Moderator: www.mrunix.de (German), www.qtforum.org

[Attachment #5 (application/pgp-signature)]

 =

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscrib=
e <<


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

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