| Home · All Classes · Grouped Classes · Annotated · 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 Qtopia Server Task. Qtopia 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.
| Copyright © 2007 Trolltech | Trademarks | Qtopia 4.2.5 |