How do I get notified in my qt application about USB drive plugged in to the system -


i writing application in qt 4.6/4.7 on ubuntu 10.04 in need copy files usb drive moment connected system. application while running, should able detect pen drive inserted , without user intervention, should usb drive specific file , copy local drive. should happen every time new pen drive inserted. there simple method can use? pls suggest.

thanks in advance

mahesh

consider hotplug mechanism. hotplug kernel sends events when hardware changes state. listening events implies use of /sbin/hotplug script, netlink socket provided. can listen socket, filter required events , handle them.

here doc can find detailed explanation , c code example.


Comments

Popular posts from this blog

400 Bad Request on Apache/PHP AddHandler wrapper -

Add email recipient to all new Trac tickets -

php - Change action and image src url's with jQuery -