[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: KOM Aggregation question
From: Bavo De Ridder <bavodr () poboxes ! com>
Date: 1999-08-11 16:12:12
[Download RAW message or body]
On Wed, Aug 11, 1999 at 05:29:29PM +0200, Simon Hausmann wrote:
> On Wed, 11 Aug 1999, Bavo De Ridder wrote:
>
> > Hello,
> >
> > If I have the following interface:
> >
> > interface MyInterface : KOM::Component, MyBaseInterface
> > {
> > }
> >
> > If I call MyInterface's GetInterface( "MyBaseInterface" ) will
> > this return an object pointer to the MyInterface object itself ?
> >
> > Or will KOM complain about not finding the interface (assuming I
> > haven't added the MyBaseInterface to the aggregation containers).
>
> You have to tell KOM about this builtin aggregate.
>
> Use ADD_INTERFACE( "foo" ) in the constructor.
>
This is exactly what I thought after reading the source. Thanx for the respons !
Shouldn't this be in the constructor of Component ? It should be possible, together with the
IR, to deduce all implemented interfaces.
BDR
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic