maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Action when volume is mounted (https://talk.maemo.org/showthread.php?t=72560)

darkmdmn 2011-04-27 13:45

Action when volume is mounted
 
Hey guys,

I am developing some application, which builds a database of files with specified extensions. I am developing with the QT framework. I would like to rescan for files when a volume is mounted, like a (micro)SD card, or a virtual volume. Is there some way to achieve this? I haven't found any standard Qt support for this, which was to be expected. Maybe there is some dbus signal or something to detect this? Any ideas?

Thanks in advance,
Mark

darkmdmn 2011-04-28 18:32

Re: Action when volume is mounted
 
Does anybody have any idea? Still searching for a solution...

gionni88 2011-04-28 20:35

Re: Action when volume is mounted
 
There is QFileSystemWatcher class, maybe it works monitoring the mounting point (which is a directory) a volume is mounted on.

http://doc.trolltech.com/latest/qfilesystemwatcher.html


All times are GMT. The time now is 09:26.

vBulletin® Version 3.8.8