Home · All Classes · Grouped Classes · Annotated · Functions

StorageMonitor Class Reference

The StorageMonitor class periodically checks filesystems for available space and prompts to start the cleanup wizard if low. More...

    #include <StorageMonitor>

Inherits QObject.

Additional Inherited Members


Detailed Description

The StorageMonitor class periodically checks filesystems for available space and prompts to start the cleanup wizard if low.

Periodically the StorageMonitor class examines the writable filesystems for free space. The polling frequency can be controlled through configuration. If the amount of free space, summed across all writable filesystems, is found to be below a configurable limit, a dialog box is displayed prompting the user to delete unwanted documents. If an application providing the CleanupWizard service is installed, the user can also directly launch the cleanup wizard.

As it is primarily a graphical feature, to preserve power the storage monitor suspends polling while the device's screen is turned off, on the rationale that the user is probably not present or interacting with the device.

The StorageMonitor class is configured through the Trolltech/qpe settings file. The following keys control the configuration.

KeyDescription
StorageMonitor/EnabledSet to false if the storage monitor is to be disabled. By default this value is true and the storage monitor is enabled.
StorageMonitor/UpdatePeriodThe rate, in seconds, at which the storage monitor polls the filesystems. By default this is 60 seconds.
StorageMonitor/MinimalStorageLimitWhen the total free space summed across all writable filesystems is below this value, in kilobytes, the storage monitor dialog will be triggered. By default this is 20 kilobytes.

Polls, by default, every 60 seconds, but pauses when screen is off or there are no writable file systems. Checks for CleanupWizard service.

This class is part of the Qtopia server and cannot be used by other Qtopia applications.


Copyright © 2008 Nokia Trademarks
Qtopia 4.3.3