Adding new functions to kde_terminal_panel.h
Thiago Macieira
thiago at kde.org
Fri Mar 27 00:21:17 GMT 2009
Andreas Pakulat wrote:
>On 26.03.09 21:10:28, Thiago Macieira wrote:
>> rahman duran wrote:
>> >> You can't do that as its a bic change, you'll have to create a new
>> >> interface for your new functions and make konsole inherit from
>> >> both.
>> >
>> >Yes I understand, Its a KDE Policy. But I don't understand, its
>> > tecnicaly possible isn't it? I had a clean recompile and install
>> > kdelibs but konsole refuser to link.
>>
>> No, it's not.
>
>Thats not quite correct and I'm pretty sure you know it. Technically it
> is possible to add a new virtual method to that class.
No, it's not.
Your solution is correct: create a new class that derives from this
interface. By appropriately versioning it, we get the desired outcome. But
it's not adding a virtual function to the existing class.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
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: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20090327/0d2d6a47/attachment.sig>
More information about the kde-core-devel
mailing list