From kde-core-devel Mon Oct 01 09:41:50 2001 From: Matthias Ettrich Date: Mon, 01 Oct 2001 09:41:50 +0000 To: kde-core-devel Subject: Re: [PATCH] k_dcop_signals X-MARC-Message: https://marc.info/?l=kde-core-devel&m=100192948419150 MIME-Version: 1 Content-Type: multipart/mixed; boundary="----------------------------------------" On Monday 01 October 2001 00:07, Alexander Kellett wrote: > A few cleanups and the addition of "excludeself" to dcopidl, and > an optional option excludeself to emitDCOPsignal to match the nice > API in dcopsignals.* > > Oops. This time with a gzipped patch. (cvs diff includes scanner.cc > and yacc.cc unfortunately) > > ciao, > Alex Hi Alex, I'm not sure whether excludeself really should be a property of a signal. Isn't it rather a mode of emitting a signal? Waldo, what's your view on this, you wrote dcopsignals? Btw, although it's too late for the function in DCOPSignals, I'd generally prefer an enum variable EmitMode instead of the boolean. It makes it possible to add new modes in the future and keeps the code more readable. If you write someFuntion( foo, bar, TRUE ); nobody knows what the TRUE is for. The enum version someFunction( foo, bar, SomeClass:ObviousEnum ); helps others to understand the code even years later. Trolltech unfortunately did the same design mistake on many places in Qt, but we are going to avoid it in the future. Matthias ---------------------------------------- Content-Type: application/x-gunzip; charset="us-ascii"; name="Attachment: 1" Content-Transfer-Encoding: base64 Content-Description: ----------------------------------------