Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions codeless banner

TestMemoryMonitor Class Reference
[QtDevToolsModule]

The TestMemoryMonitor class provides an instrumented implementation of MemoryMonitor for testing. More...

    #include <TestMemoryMonitor>

Inherits MemoryMonitor.

Additional Inherited Members


Detailed Description

The TestMemoryMonitor class provides an instrumented implementation of MemoryMonitor for testing.

The TestMemoryMonitorTask provides a Qt Extended Server Task. Qt Extended Server Tasks are documented in full in the QtopiaServerApplication class documentation.

Task NameTestMemoryMonitory
InterfacesMemoryMonitor
ServicesNone

The TestMemoryMonitor allows low memory conditions on the device to be simulated. The TestMemoryMonitor class exposes the following value space items.

ItemPermissionsDescription
/ServerTasks/TestMemoryMonitor/MemoryLevelrwCurrent memory level. Valid values are "Unknown", "Critical", "VeryLow", "Low" and "Normal".
/ServerTasks/TestMemoryMonitor/ChangedTimeroThe date and time at which the memory level last changed.

By setting the MemoryLevel items, test scripts can simulate changes in the system's memory pressure. Only the MemoryLevel item is writable. The ChangedTime item will be updated accordingly each time the memory level changes.

To ensure that the TestMemoryMonitor task is selected as the MemoryMonitor provider, testers should ensure that all other MemoryMonitor providers are either disabled, or that the TestMemoryMonitor is manually started at an appropriately early time.

The TestMemoryMonitor task will fail if it is started before the value space is initialized.

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


Copyright © 2009 Trolltech Trademarks
Qt Extended 4.4.3