Can I get a list of (unmounted) CD / DVD devices?
-
I know I can get a list of MOUNTED volumes, but what I want is a list of MOUNTABLE devices that are currently unmounted, eg: CD or DVD devices that have no disc in them.
Is there a way to do this?
-
There are no Qt methods to request this info.
-
Hi,
AFAIK, you will have to use some ioctl if you are on Linux to query that kind of information. Check the kernel documentation.
-
no i mean is there a cross-platform, Qt class / method that i can use?
that works on both mac & windows? -
No Qt function to do this. In linux each device has a /dev/sr? (for scsi read only device) entry and /proc/mounts shows which ones are atcually mounted.
-
Thanks for your replies, but i'm looking for Qt specific info for windows and mac. the suggestion for Linux may help someone else, but unfortunately not me.
I HAVE platform specific code but i'd rather not use it.
thanks anyway
-
There are no Qt methods to request this info.