QStorageInfo ClassThe QStorageInfo class provides various disk storage information about the system. More... #include <QStorageInfo> Inherits: QObject. Public Types
Properties
Public Functions
Signals
Additional Inherited Members
Detailed DescriptionThe QStorageInfo class provides various disk storage information about the system. Member Type Documentation
|
Constant | Value | Description |
---|---|---|
QStorageInfo::UnknownDrive | 0 | Drive type unknown. |
QStorageInfo::InternalDrive | 1 | Internal mass storage drive, e.g. hard drive. |
QStorageInfo::RemovableDrive | 2 | Removable drive, e.g. memory card. |
QStorageInfo::RemoteDrive | 3 | Network drive. |
QStorageInfo::CdromDrive | 4 | CD-ROM. |
QStorageInfo::RamDrive | 5 | Virtual drive made in RAM memory. |
This property holds the list of all drives.
Returns a list of all logical drives or volumes, or an empty list if no drives are found or on error.
Access functions:
QStringList | allLogicalDrives() |
Notifier signal:
void | logicalDriveChanged(const QString & drive, bool added) |
Constructs a QStorageInfo object with the given parent.
Destroys the object
Returns the available free space on the drive, in bytes. -1 is returned if the drive doesn't exist, or the information is not available.
Returns the type of the given drive.
Returns the total space of the drive, in bytes. -1 is returned if the drive doesn't exist, or the information is not available.
Returns the URI, or unique identifier for the given drive. If the drive doesn't exist, or the information is not available, an empty string is returned.