[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: Re: kdelibs/kwallet/client
From: George Staikos <staikos () kde ! org>
Date: 2003-12-18 16:53:33
[Download RAW message or body]
On Thursday 18 December 2003 09:34, Christian Loose wrote:
> > > Those mistakes make me wonder why noone seems to use
> > > #define SomeIDString "important"
> > > or
> > > static const char const* SomeIDString = "Important";
> > >
> > > Is there any reason for this?
> >
> > or even better why not have dcopidl2cpp itself create these .h's
> >
> > Alex
>
> It actually already does something similar. You can let dcopidl2cpp create
> a DCOPStub. Then you have a class that does all the ugly stuff of calling a
> DCOP method. So instead of writing
>
> DCOPRef("kded", "kwalletd").call("folderDoesNotExist", wallet, folder);
>
> you do
>
> Backend_stub("kded", "kwalletd").folderDoesNotExist(wallet, folder);
>
> and the compiler checks for you if you have a typo.
Which still leaves two typos that it doesn't catch. Also I didn't mention
it, but in this case we also have a circular dependency since kwalletd uses
the kwallet library, and kwallet library calls kded.
--
George Staikos
KDE Developer http://www.kde.org/
Staikos Computing Services Inc. http://www.staikos.net/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic