Detailed Description
The QStorageMetaInfo class describes the disks mounted on the file system.
This class provides access to the mount information for the Linux filesystem. Each mount point is represented by the QFileSystem class. To ensure this class has the most up to date size information, call update().
See also QFileSystem.
Member Function Documentation
QStorageMetaInfo::QStorageMetaInfo ( QObject * parent = 0 )
Constructor that determines the current mount points of the filesystem. The standard parent parameters is passed on to QObject. QStorageMetaInfo::instance() is the preferred method of obtaining a copy of this class.
See also instance().
QStorageMetaInfo::~QStorageMetaInfo ()
Destroys the QStorageMetaInfo object.
const QFileSystem * QStorageMetaInfo::applicationsFileSystem ()
Returns a pointer to the file system on which the default applications path is located.
QString QStorageMetaInfo::cardInfoString ()
Returns a string containing the name, path, size and read/write parameters of all known filesystems
See also installLocationsString().
void QStorageMetaInfo::disksChanged () [signal]
This signal is emitted whenever a disk has been mounted or unmounted, such as when a CF card has been inserted or removed.
const QFileSystem * QStorageMetaInfo::documentsFileSystem ()
Returns a pointer to the file system on which the default documents path is located.
QStringList QStorageMetaInfo::fileSystemNames ( QFileSystemFilter * filter, bool connectedOnly = true )
Returns a list of file system names matching the filter. Use connectedOnly to return a list of only the filesystems that are connected.
See also fileSystems() and QFileSystemFilter.
const QFileSystem * QStorageMetaInfo::fileSystemOf ( const QString & filename, bool connectedOnly = true )
Returns the longest matching QFileSystem that starts with the same prefix as filename as its mount point. Use connectedOnly to search only the filesystems that are connected.
QList<QFileSystem *> QStorageMetaInfo::fileSystems ( QFileSystemFilter * filter, bool connectedOnly = true )
Returns a list of available mounted file systems matching the filter. Use connectedOnly to return a list of only the filesystems that are connected.
See also fileSystemNames() and QFileSystemFilter.
QString QStorageMetaInfo::installLocationsString ()
Includes the same information as QStorageMetaInfo::cardInfoString() and the path where documents can be installed
See also cardInfoString().
QStorageMetaInfo * QStorageMetaInfo::instance () [static]
Singleton accessor for an application wide QStorageMetaInfo. This is the preferred means for creating a QStorageMetaInfo object.
const QFileSystem * QStorageMetaInfo::typeFileSystem ( const QString & type )
Returns the QFileSystem that is the default storage location for files of type.
void QStorageMetaInfo::update () [slot]
Updates the mount and free space information for each mount point. This function is automatically called when a mount point is mounted or unmounted.
void QStorageMetaInfo::update ( QString & mountpoint, bool connected ) [slot]
This is an overloaded member function, provided for convenience.
Update the system mounted at mountpoint, marking whether it is connected.