Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions |
The MemoryMonitor class interface determines the available amount of available memory. More...
#include <MemoryMonitor>
Inherits QObject.
Inherited by GenericMemoryMonitorTask and TestMemoryMonitor.
The MemoryMonitor class interface determines the available amount of available memory.
The MemoryMonitor class provides an abstract interface for querying and monitoring the amount of system memory available. As a task interface, it is never instantiated directly. It is instantiated by 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.
This class is part of the Qt Extended server and cannot be used by other Qt Extended applications.
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 prevent system failure. |
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 required. |
The subclass must implement this function. It must return the current memory state. The four memory states are Critical, Very Low, Low, and Normal.
This signal is emitted whenever the memory state changes. newState will be set to the new memory state.
The subclass must implement this function. It must return the time, in seconds, since the last memory state change.
Copyright © 2009 Nokia | Trademarks | Qt Extended 4.4.3 |