The QSystemStorageInfo class provides access to memory and disk information from the system. More...
#include <QSystemStorageInfo>
Inherits QObject.
enum | DriveType { NoDrive, InternalDrive, RemovableDrive, RemoteDrive, CdromDrive } |
QSystemStorageInfo ( QObject * parent = 0 ) | |
~QSystemStorageInfo () |
void | logicalDriveChanged ( bool added, const QString & volumeName ) |
QStringList | logicalDrives () |
The QSystemStorageInfo class provides access to memory and disk information from the system.
This enum describes the type of drive or volume
Constant | Value | Description |
---|---|---|
QSystemStorageInfo::NoDrive | 0 | Drive type undetermined. |
QSystemStorageInfo::InternalDrive | 1 | Is internal drive. |
QSystemStorageInfo::RemovableDrive | 2 | Is removable. |
QSystemStorageInfo::RemoteDrive | 3 | Is a network drive. |
QSystemStorageInfo::CdromDrive | 4 | Is a cd rom drive. |
This property holds the logical drives.
Returns a QStringList of volumes or partitions, or an empty list if no drives are found.
Access functions:
QStringList | logicalDrives () |
Notifier signal:
void | logicalDriveChanged ( bool added, const QString & volumeName ) |
Constructs a QSystemStorageInfo with the given parent.
Destroys the QSystemStorageInfo object.
This signal gets emitted when new storage has been added or removed from the system, specified by added, with the name volumeName.