Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions |
The QFileSystem class describes a single mount point. More...
#include <QFileSystem>
The QFileSystem class describes a single mount point.
This class is an informational result structure returned by the QStorageMetaInfo class. This class should not be created directly, but should rather be used in tandem with the QStorageMetaInfo class.
Construct an empty QFileSystem object.
Construct a copy of other.
Destroys this QFileSystem object.
Returns flag indicating if the file system can contain applications.
Returns the QFileSystem which contains the default application storage path.
The default application storage path can be obtained by calling QFileSystem::applicationsFileSystem().applicationsPath().
See also applicationsPath().
Returns the path of the applications directory, eg. /home/Applications.
Returns the number of available blocks on the file system
Returns the size of each block on the file system.
Connects the filesystem to the content system by sending the QCop message QPE/QStorage::mounting(QString).
Note: This call is asynchronous. QStorageMetaInfo will emit the disksChanged() signal once the filesystem has been connected.
See also isConnected() and QStorageMetaInfo::disksChanged().
Returns flag indicating if the file system has it's own content database stored.
Disconnects the filesystem from the content system by sending the QCop message QPE/QStorage::unmounting(QString).
Note: This call is asynchronous. QStorageMetaInfo will emit the disksChanged() signal once the filesystem has been disconnected.
See also isConnected() and QStorageMetaInfo::disksChanged().
Returns the file system name, eg. /dev/hda3
Returns flag indicating if the file system can contain documents.
Returns the QFileSystem which contains the default document storage path.
The default document storage path can be obtained by calling QFileSystem::documentsFileSystem().documentsPath().
See also documentsPath().
Returns the path of the documents directory, eg. /home/Documents.
Returns a QFileSystem object describing the file system on which the file with the name fileName is located.
If connectedOnly is true the QFileSystem will only be returned if it is currently connected.
Returns flag indicating if the file system is currently connected.
See also connect() and disconnect().
Returns true if the filesystem is mounted.
See also mount() and unmount().
Returns true if the QFileSystem is unitialised.
Returns flag indicating if the file system can be removed. For example, a CF card would be removable, but the internal memory would not.
Returns flag indicating if the file system is mounted as writable or read-only. Returns false if read-only, true if read and write.
Mounts the filesystem. Returns true on success, false otherwise. Returns false if the filesystem is already mounted.
The filesystem must have a corresponding entry in the /etc/fstab file. The mount point directory must exist.
After the filesystem is sucessfully mounted it should be connected to the content system by calling connect().
See also unmount() and connect().
Returns the translated, human readable name for the mount directory.
Returns the mount options
Returns the mount path, eg. /home
Returns the previous mount path, eg. /home This is useful when a filesystem has been unmounted.
Returns true if the file system can store files of type.
The path of these files is given by typePath().
Returns the total number of blocks on the file system
Returns the QFileSystem that is the default storage location for files of type.
Returns the path for files of type stored on a filesystem.
If no path is defined this returns the root path of the filesystem.
The return value of this is only valid if storesType() returns true.
Unmounts the filesystem from the system. Returns true on success, false otherwise. Returns false if the filesystem is already unmounted.
The filesystem must have previously been disconnected from the content system with disconnect().
See also mount() and disconnect().
Assign the contents of other to this object.
Copyright © 2009 Trolltech | Trademarks | Qt Extended 4.4.3 |