Hi, For storage info in Qt5, we currently have: allLogicalDrives - use getmntent() availableDiskSpace - use statfs() totalDiskSpace - use statfs() uriForDrive - use BLKID or UDisks (D-Bus) driveType - use getmntent() directly for RAM, Remote, and CDROM, and /sys/block/*/removable for Internal and Removable logicalDriveChanged (signal) - monitor changes of the _PATH_MOUNTED file
================ Xizhi Zhu (Steven) Software Engineer @ Qt Nokia Mobile: +358 (0)50 4801247 -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of ext ???? ?????????? Sent: 05. elokuuta 2011 23:50 To: [email protected] Subject: Re: [Qt5-feedback] Drive Information Want to update this conversation:) What mechanism will be used in qt5? 08.07.2011, в 10:24, <[email protected]> <[email protected]> написал(а): Hi, Seems your code is more or less similar to the latest implementation (I only briefly looked at the Linux one), but we take different approach for caching. Your idea for file system type and drive name / label (we have UUID on the other hand, but maybe not as readable as label) seem interesting. You can check the latest code (still under development, and some more will be published soon) at: http://qt.gitorious.org/qt/qtsystems/blobs/master/src/systeminfo/qstorageinfo.h ================ Xizhi Zhu (Steven) Software Engineer @ Qt Nokia Mobile: +358 (0)50 4801247 -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of ext ???? ?????????? Sent: 07. heinäkuuta 2011 22:07 To: [email protected] Subject: [Qt5-feedback] Drive Information I've written class for receiving different information about drives present in filesystem (https://gitorious.org/qdrive/qdrive/blobs/master/src/qdriveinfo.h) Class is implemented for Windows, Mac OS, Linux and Symbian and implementation is better than in QtMobility. Does Qt5 needs this functionality? In fact, it seems that such classes exists in libsolid, but why not to move code to QtCore on platforms supported by Qt? Also i have class for monitoring of appearance of drives in system (https://gitorious.org/qdrive/qdrive/blobs/master/src/qdrivecontroller.h). This monitoring can be expanded to provide request for application that OS wants to unmount volume (and Qt and app can unregister resources on that drive - for example QFSWatcher still locks flash drives on Win and they can't be unmounted properly; we can monitor requests and free resources correctly) Ivan. _______________________________________________ Qt5-feedback mailing list [email protected] http://lists.qt.nokia.com/mailman/listinfo/qt5-feedback _______________________________________________ Qt5-feedback mailing list [email protected] http://lists.qt.nokia.com/mailman/listinfo/qt5-feedback _______________________________________________ Qt5-feedback mailing list [email protected] http://lists.qt.nokia.com/mailman/listinfo/qt5-feedback
