QtMobility Reference Documentation

QML StorageInfo Element

The StorageInfo element provides access to disk storage information from the system. More...

This element was introduced in Mobility 1.2.

Properties

Signal Handlers

Methods

Detailed Description

This element is part of the QtMobility.systeminfo 1.2 module. It is a convience class to make QML usage easier.

See also QSystemStorageInfo.

Property Documentation

logicalDrives : list

Returns list of logical drives.

This property group was introduced in Mobility 1.2.


Signal Handler Documentation

StorageInfo::logicalDriveChanged ( bool added, string drive )

This signal gets emitted when a new drive storage has been added or removed. If bool is true, it means a new drive is found, otherwise a drive is removed.

This documentation was introduced in Mobility 1.2.


StorageInfo::storageStateChanged ( string drive, QSystemStorageInfo::StorageState state )

This signal gets emitted when the storage state of a drive has changed to state. Note that the polling time may be different for different platforms.

This documentation was introduced in Mobility 1.2.


Method Documentation

long StorageInfo::availableDiskSpace ( string drive )

Returns the available disk space on the given drive, in bytes.

This documentation was introduced in Mobility 1.2.


StorageState StorageInfo::getStorageState ( string drive )

Returns the storage state of the given drive.

This documentation was introduced in Mobility 1.2.

See also QSystemStorageInfo::StorageState.


long StorageInfo::totalDiskSpace ( string drive )

Returns the amount of total space on the given drive, in bytes.

This documentation was introduced in Mobility 1.2.


DriveType StorageInfo::typeForDrive ( string drive )

Returns the type of the given drive.

This documentation was introduced in Mobility 1.2.

See also QSystemStorageInfo::DriveType.


string StorageInfo::uriForDrive ( string drive )

Returns the URI, or unique identifier for the given drive.

This documentation was introduced in Mobility 1.2.


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.