Home · All Classes · Grouped Classes · Annotated · Functions

MemoryMonitor Class Reference

The MemoryMonitor class interface measures the available memory level in the system. More...

    #include <MemoryMonitor>

Inherits QObject.

Inherited by GenericMemoryMonitorTask and TestMemoryMonitor.

Public Types

Public Functions

Signals

Additional Inherited Members


Detailed Description

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.


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 ensure the system's stability.
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 necessary.


Member Function Documentation

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

Returns the current memory level.

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

Emitted whenever the memory state changes. newState will be set to the new memory state.

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

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