Home · All Classes · Grouped Classes · Annotated · Functions

LowMemoryTask Class Reference

The LowMemoryTask class reponds to low memory situations by closing applications. More...

    #include <LowMemoryTask>

Inherits QObject.

Public Functions

Additional Inherited Members


Detailed Description

The LowMemoryTask class reponds to low memory situations by closing applications.

The LowMemoryTask provides a Qtopia Server Task. Qtopia Server Tasks are documented in full in the QtopiaServerApplication class documentation.

Task NameLowMemoryTask
InterfacesNone
ServicesNone

The LowMemoryTask monitors memory pressure through the default MemoryMonitor providing task. The following table describes the action taken by this task at each memory level.

Memory StateAction
MemoryMonitor::MemUnknownNo action.
MemoryMonitor::MemNormalNo action.
MemoryMonitor::MemLowA quitIfInvisible() message is sent to the first running, non-preloaded application. If this application is in the lazy-application-shutdown state it will consequently terminate.
A RecoverMemory() message is sent to the QPE/System channel. Applications may use this as a trigger to recover memory or to free caches.
MemoryMonitor::MemVeryLowA quitIfInvisible() message is sent to all running, non-preloaded applications. If these applications are in the lazy-application-shutdown state they will consequently terminate.
A RecoverMemory() message is sent to the QPE/System channel. Applications may use this as a trigger to recover memory or to free caches.
MemoryMonitor::MemCriticalA quitIfInvisible() message is sent to all running, non-preloaded applications. If these applications are in the lazy-application-shutdown state they will consequently terminate.
A RecoverMemory() message is sent to the QPE/System channel. Applications may use this as a trigger to recover memory or to free caches.
The most recently launched application is forcibly killed. The most recently launched application refers to that most recently executed by the system, not the most recently raised.


Member Function Documentation

LowMemoryTask::~LowMemoryTask ()   [virtual]

Destroys the LowMemoryTask instance.


Copyright © 2007 Trolltech Trademarks
Qtopia 4.2.5