API addition in Solid

Matthias Kretz kretz at kde.org
Sat Nov 17 19:12:08 GMT 2007


On Saturday 17 November 2007, Kevin Ottens wrote:
> use the GenericInterface to make your own IDs and
> hide this workaround deep into Phonon for now.

I just committed code to do this, seems to work quite well. (Of course, only 
as long as I'm talking to HAL through Solid).

May I still commit this?

--- device.h    (revision 737258)
+++ device.h    (working copy)
@@ -133,6 +133,9 @@
         /**
          * Retrieves the Universal Device Identifier (UDI).
          *
+         * \warning Don't use the UDI for anything except communication with 
Solid. Also don't store
+         * UDIs as there's no guarantee that the UDI stays the same when the 
hardware setup changed.
+         *
          * @return the udi of the device
          */
         QString udi() const;

-- 
________________________________________________________
Matthias Kretz (Germany)                            <><
http://Vir.homelinux.org/
MatthiasKretz at gmx.net, kretz at kde.org,
Matthias.Kretz at urz.uni-heidelberg.de
-------------- 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/20071117/63b50982/attachment.sig>


More information about the kde-core-devel mailing list