From kde-core-devel Mon Jul 31 07:05:10 2000 From: Matthias Ettrich Date: Mon, 31 Jul 2000 07:05:10 +0000 To: kde-core-devel Subject: Re: Signals/slots via DCOP X-MARC-Message: https://marc.info/?l=kde-core-devel&m=96502699619435 > > > > Any reasons for that that I'm overlooking? > > No not really. Basically the reason is that the DCOPClient/Server don't seem > to know the concept of "sending object", I didn't want to introduce it. > > I agree that App/Obj/Signal <-> App/Obj/Slot is more generic so it might be a > good idea to expand it to that. > > Implementation wise, I think the sending-object could simply be an extra > constraint that needs to be satisfied when delivering the signal. agree. > > Automatically disconnecting the signal when the sending object destructs > needs some attention. The dcop-server doesn't know about the lifetime of > objects, so the objects themselves should make sure to disconnect any > signals. Actually, I don't think that connections are currently removed > when a receiving-object destructs, so I guess both these issues should be > addressed in one go. Agree. DCOPObject needs a bitflag "hasConnections" or better a connection counter In its destructor, it currently removes itself from the objectMap only. It has to cleanaup connections as well if there are any. Will you go for it? I'm a bit short of time currently and I rather want to empty kwin's buglist. Matthias > > Cheers, > Waldo > -- > Make way, KDE/Linux is coming to a desktop near you!