signals and slots vs. virtual_hook (was [PATCH] KFileDialog overwrite confirmation)

Thiago Macieira thiago at
Tue Jul 15 23:08:54 BST 2008

Rafael Fernández López wrote:
>> Over 3): How with an enum do you handle conflicts between libraries?
>>  For exemple if libkopete want to maintain BC and use some of the
>> virtual hooks and then we need to add another hook in kdelibs, we need
>> to take it in account, which might not be easy.
>Hmm, I don't see the problem... can you elaborate ?

It's the problem I described of BaseClass, MiddleClass and DerivedClass.

Your solution still doesn't solve everything. As long as the IDs are 
static and part of the API contract between parent and derived class, you 
can't add more.

  Thiago Macieira  -  thiago (AT) - thiago (AT)
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <>

More information about the kde-core-devel mailing list