[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: How to find device path of cd/dvd drive?
From:       "Friedrich W. H. Kossebau" <kossebau () kde ! org>
Date:       2010-03-06 23:35:09
Message-ID: 201003070035.10112.kossebau () kde ! org
[Download RAW message or body]

Hi Yogesh,

Jeudi, le 4 mars 2010, à 12:10, Yogesh Marwaha a écrit:
> Hi,
> 
> I'm experimenting with a cd ripper using KDE+GStreamer. To work with
> GStreamer I need to use path to cd/dvd drive e.g. /dev/cdrom etc.
> I find Solid as a good option to look for available CD/DVD drives and
> whether they have any supported media loaded, but I'm not sure whether
> I can get path to device using Solid. Can someone suggest what should
> I do to get information about CD/DVD drives (and path to device)?

Should be something like:
Solid::Block* blockDevice = device.as<Solid::Block>();
const QString pathToDevice = blockDevice->device();

http://api.kde.org/4.4-api/kdelibs-
apidocs/solid/html/classSolid_1_1Block.html#a3f372e04d12436053695b30e98152837

See also
http://techbase.kde.org/Development/Tutorials/Solid_Tutorials

Cheers
Friedrich
-- 
KDE Okteta - a simple hex editor - http://utils.kde.org/projects/okteta
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic