Forthcoming changes for libsolid

Kevin Ottens ervin at kde.org
Mon May 28 20:52:33 BST 2007


Le dimanche 27 mai 2007, Aaron J. Seigo a écrit :
> On Saturday 26 May 2007, Kevin Ottens wrote:
> > 2) (kdelibs|kdebase)_no_Solid_DeviceList.path (monday 28th may)
> > Get ride of the useless DeviceList typedef. It's really unnecessary IMO,
> > I
>
> this should probably be consistent throughout kde's libs... if this goes
> in, i'll probably end up changing libplasma to do similarly.

Yup, should be consistent. Actually I even wonder if Qt has such typedefs... 
AFAIK it doesn't.

> the nice thing about having typedefs such as this is that if the collection
> class type ever changes, which is pretty much a "can't happen" in a public
> lib, it makes it so much easier to port code =)

Indeed, that'd be the best argument for keeping this typedef. KDE5 anyone? :-)
That said, if we suppose that for KDE5 we switch from QList<Solid::Device> to 
another type for devices list, a simple sed command we'll do for the port. 
That's not the most critical one. So I'd still be in favor of applying my 
patch.

> > My current plan is to move the eject() method to the OpticalDrive
> > interface, where it actually makes sense (for instance this interface
>
> of course there are many devices which also do eject that aren't optical:
> tape drives, some floppies (legacy hardware, admitedly) and other magnetic
> media most of which is also legacy (jazz/zip for instance)

Yup, since they're mostly legacy and not used often these days I think that 
duplicating the eject feature in this case is ok.

> > 4) I'd need to rework a bit a few classes, mainly AudioHw, Camera and
> > PortableMediaPlayer (monday 4th june). They need to be consistent in the
>
> as an aside, there have been a few requests made at conferences i've spoken
> at this year for both still and video camera detection. solid seems to have
> a nice interface for the former (which often can also do video too, as you
> note in the API docu) but i'm not sure how detection of webcams, DV
> sources, etc are handled?

For now they're basically ignored. As for webcams, Will told me there was an 
upcoming effort driven from Kopete. So it might happen in the future.

Regards.
-- 
Kévin 'ervin' Ottens, http://ervin.ipsquad.net
"Ni le maître sans disciple, Ni le disciple sans maître,
Ne font reculer l'ignorance."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070528/1f3dfcee/attachment.sig>


More information about the kde-core-devel mailing list