Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions codeless banner

MemoryMonitor Class Reference
[QtBaseModule, QtDevToolsModule]

The MemoryMonitor class interface determines the available amount of available memory. More...

    #include <MemoryMonitor>

Inherits QObject.

Inherited by GenericMemoryMonitorTask and TestMemoryMonitor.

Public Types

Public Functions

Signals

Additional Inherited Members


Detailed Description

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.


Member Type Documentation

enum MemoryMonitor::MemState

The MemState enumeration represents the memory level in the system.

ConstantValueDescription
MemoryMonitor::MemUnknown0Memory level is unknown or unavailable.
MemoryMonitor::MemCritical1Memory level is critically low. Drastic measures should be taken to prevent system failure.
MemoryMonitor::MemVeryLow2Memory level is very low. The system should perform any measure that is very likely to recover memory. User noticable actions are allowed.
MemoryMonitor::MemLow3Memory level is low. The system should attempt to recover memory in a way that does not interfere with the user.
MemoryMonitor::MemNormal4Memory level is normal. No action is required.


Member Function Documentation

MemState MemoryMonitor::memoryState () const   [pure virtual]

The subclass must implement this function. It must return the current memory state. The four memory states are Critical, Very Low, Low, and Normal.

void MemoryMonitor::memoryStateChanged ( MemoryMonitor::MemState newState )   [signal]

This signal is emitted whenever the memory state changes. newState will be set to the new memory state.

unsigned int MemoryMonitor::timeInState () const   [pure virtual]

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