[Kde-hardware-devel] SolidBackendSelector API review

Ben Cooksley sourtooth at gmail.com
Sat Mar 28 04:21:25 CET 2009


Hi all,
given that the new Solid backend selector I am creating will
eventually be used by several different control modules, I thought it
might be wise to post what I propose for its API.
What will be present in the API really hinges on one question however:
will it also be responsible for displaying information about the
selected backend or not. The proposal below assumes that the
information will be displayed seperately. A widget for this also would
be provided along with the selector for use by the applications.

Visually, I propose using a approach similar to the widget used to
select the Phonon backend, with "Defer" / "Prefer" buttons at the
bottom of the list.

Cheers,
Ben

=== Proposed specification ==

SolidBackendSelector( QWidget *parent, QString type ) // type is the
backend type that is going to be configured

Functions:
void saveConfiguration()
void defaultConfiguration()
KIcon backendIcon()
QString backendName()
QString backendComment()
QString backendVersion()

Signals:
void selectionChanged()


More information about the Kde-hardware-devel mailing list