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

List:       kde-core-devel
Subject:    Re: KMainWindow Inteface updates
From:       Waldo Bastian <bastian () kde ! org>
Date:       2001-10-25 20:12:37
[Download RAW message or body]

On Thursday 25 October 2001 10:10 am, Simon Hausmann wrote:
bastian@kde.org | SuSE Labs KDE Developer | bastian@suse.com
-- > On Thu, Oct 25, 2001 at 01:04:49PM -0400, ian reinhart geiser wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > On Thursday 25 October 2001 12:52 pm, Simon Hausmann wrote:
> > > Maybe a smarter way to avoid the ugly API duplication of QWidget for
> > > the dcop interface would be to utilize the KDCOPPropertyProxy class in
> > > kdecore which can map Qt properties to and from dcop requests. If you
> > > compare the list of Qt properties of QWidget with the
> > > methods/properties in your interface you'll see a lot of
> > > duplication, which can be removed very easy :)
> >
> > The KDCOPProcertyProxy class like the KDCOPRef and friends is very nice
> > but also very useless for this type of scripting.  The problem is normal
> > humans cannot demarshal this data.  Unless something cool happend to them
> > this week I think this sort of API duplication is an ugly fact of life...
> >
> > Unless you can think of a better way to proxy these functions into plain
> > text? I have not read the API docs in a week so things may have changed.
>
> Demarshalling is not the job of a human, it's what the specific dcop
> client has to do. If it's for the dcop commandline client then that
> one should be improved to give nicer output, IMHO, instead of
> working around it by duplicating an API.
>
> (like if a QSize property is to be set then it might intelligently
> parse '123,456' to a QSize (after a previous inspection of the
> property/method signature) ) .

"dcop" (the cmdline tool) knows about QSize. See also 
kdelibs/dcop/client/marshall.cpp

Does anyone has an idea how to pass a QStringList via the command line?

Cheers,
Waldo

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

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