On Wednesday 22 February 2006 15:57, Kevin Ottens wrote:
> Le Mercredi 22 Février 2006 15:15, Will Stephenson a écrit :

> > My first thought is, i see that each capability subclass defines a set of
> > characteristics, like Processor::canThrottle().  This might make it hard
> > to add more characteristics in future - how about defining capabilities
> > by multiple inheritance from a set of fine grained characteristics such
> > as
> >
> > public class Throttleable
> > {
> >     virtual bool canThrottle() const = 0;
> > };
> >
> > This is very java like, I know!
>
> I find this fine grained characteristics idea tempting, but it
> unfortunately means that we'll break binary compatibility to add new
> characteristics. :-/

Not if the interface is implemented in a private class and the device class 
provides a method to return the interface object. A simple non-extensible 
device could still implement the interfaces itself and return "this" (or 
wrapper around it)

Cheers,
Kevin

-- 
Kevin Krammer <[EMAIL PROTECTED]>
Qt/KDE Developer, Debian User
Moderator: www.mrunix.de (German), www.qtcentre.org

Attachment: pgppYa2nfxeAM.pgp
Description: PGP signature

_______________________________________________
Kde-hardware-devel mailing list
[EMAIL PROTECTED]
https://mail.kde.org/mailman/listinfo/kde-hardware-devel

Reply via email to