| Home · All Classes · Grouped Classes · Annotated · Functions |
The MemoryMonitor class interface measures the available memory level in the system. More...
#include <MemoryMonitor>
Inherits QObject.
Inherited by GenericMemoryMonitorTask and TestMemoryMonitor.
The MemoryMonitor class interface measures the available memory level in the system.
The MemoryMonitor class provides an abstract interface for querying and monitoring the system memory condition. As a task interface it is never instantiated directly, but rather through a qtopiaTask<MemoryMonitor>() call. The MemoryMonitor interface is an optional task interface, so consumers must be prepared for a request for this interface to fail.
The MemState enumeration represents the memory level in the system.
| Constant | Value | Description |
|---|---|---|
| MemoryMonitor::MemUnknown | 0 | Memory level is unknown or unavailable. |
| MemoryMonitor::MemCritical | 1 | Memory level is critically low. Drastic measures should be taken to ensure the system's stability. |
| MemoryMonitor::MemVeryLow | 2 | Memory level is very low. The system should perform any measure that is very likely to recover memory. User noticable actions are allowed. |
| MemoryMonitor::MemLow | 3 | Memory level is low. The system should attempt to recover memory in a way that does not interfere with the user. |
| MemoryMonitor::MemNormal | 4 | Memory level is normal. No action is necessary. |
Returns the current memory level.
Emitted whenever the memory state changes. newState will be set to the new memory state.
Returns the amount of time, in seconds, since the last memory state change. That is the amount of time the memory state has been equal to the current memory state.
| Copyright © 2007 Trolltech | Trademarks | Qtopia 4.2.5 |