[Kde-hardware-devel] First capabilities support

Will Stephenson wstephenson at kde.org
Wed Feb 22 15:15:28 CET 2006


On Sunday 19 February 2006 21:34, Kevin Ottens wrote:
> Questions and comments are welcome.

Hi Kevin

Looking at the API now, with my 'how will it work with network devices' tshirt 
on..

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!

It would make it easy to define characteristics once that could apply to 
several Capabilities,  for example both NetworkDevices and Storages might be 
Hotpluggable.

Will


More information about the Kde-hardware-devel mailing list