Qt Mobility Reference Documentation

QSystemStorageInfo Class Reference

The QSystemStorageInfo class provides access to memory and disk information from the system. More...

 #include <QSystemStorageInfo>

Inherits QObject.


Public Types

enum DriveType { NoDrive, InternalDrive, RemovableDrive, RemoteDrive, CdromDrive }

Properties

  • 1 property inherited from QObject

Public Functions

QSystemStorageInfo ( QObject * parent = 0 )
~QSystemStorageInfo ()
  • 29 public functions inherited from QObject

Signals

void logicalDriveChanged ( bool added, const QString & volumeName )

Static Public Members

QStringList logicalDrives ()
  • 4 static public members inherited from QObject

Additional Inherited Members

  • 1 public slot inherited from QObject
  • 1 public variable inherited from QObject
  • 7 protected functions inherited from QObject
  • 2 protected variables inherited from QObject

Detailed Description

The QSystemStorageInfo class provides access to memory and disk information from the system.


Member Type Documentation

enum QSystemStorageInfo::DriveType

This enum describes the type of drive or volume

ConstantValueDescription
QSystemStorageInfo::NoDrive0Drive type undetermined.
QSystemStorageInfo::InternalDrive1Is internal drive.
QSystemStorageInfo::RemovableDrive2Is removable.
QSystemStorageInfo::RemoteDrive3Is a network drive.
QSystemStorageInfo::CdromDrive4Is a cd rom drive.

Property Documentation

logicalDrives : const QStringList

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 )

Member Function Documentation

QSystemStorageInfo::QSystemStorageInfo ( QObject * parent = 0 )

Constructs a QSystemStorageInfo with the given parent.

QSystemStorageInfo::~QSystemStorageInfo ()

Destroys the QSystemStorageInfo object.

void QSystemStorageInfo::logicalDriveChanged ( bool added, const QString & volumeName ) [signal]

This signal gets emitted when new storage has been added or removed from the system, specified by added, with the name volumeName.

X

Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.