Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions |
The TestMemoryMonitor class provides an instrumented implementation of MemoryMonitor for testing. More...
#include <TestMemoryMonitor>
Inherits MemoryMonitor.
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 Name | TestMemoryMonitory |
Interfaces | MemoryMonitor |
Services | None |
The TestMemoryMonitor allows low memory conditions on the device to be simulated. The TestMemoryMonitor class exposes the following value space items.
Item | Permissions | Description |
---|---|---|
/ServerTasks/TestMemoryMonitor/MemoryLevel | rw | Current memory level. Valid values are "Unknown", "Critical", "VeryLow", "Low" and "Normal". |
/ServerTasks/TestMemoryMonitor/ChangedTime | ro | The 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 Nokia | Trademarks | Qt Extended 4.4.3 |