LunaSysMgr
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MemoryMonitor Class Reference

#include <MemoryMonitor.h>

Inheritance diagram for MemoryMonitor:
[legend]
Collaboration diagram for MemoryMonitor:
[legend]

Public Types

enum  MemState { Normal = 0, Medium, Low, Critical }
 

Signals

void memoryStateChanged (bool critical)
 

Public Member Functions

void start ()
 
MemState state () const
 
bool allowNewNativeAppLaunch (int appMemoryRequirement)
 
void monitorNativeProcessMemory (pid_t pid, int maxMemAllowed, pid_t updateFromPid=0)
 
bool getMemInfo (int &lowMemoryEntryRem, int &criticalMemoryEntryRem, int &rebootMemoryEntryRem)
 

Static Public Member Functions

static MemoryMonitorinstance ()
 

Member Enumeration Documentation

Enumerator
Normal 
Medium 
Low 
Critical 

Member Function Documentation

bool MemoryMonitor::allowNewNativeAppLaunch ( int  appMemoryRequirement)
bool MemoryMonitor::getMemInfo ( int lowMemoryEntryRem,
int criticalMemoryEntryRem,
int rebootMemoryEntryRem 
)
MemoryMonitor * MemoryMonitor::instance ( void  )
static
void MemoryMonitor::memoryStateChanged ( bool  critical)
signal
void MemoryMonitor::monitorNativeProcessMemory ( pid_t  pid,
int  maxMemAllowed,
pid_t  updateFromPid = 0 
)
void MemoryMonitor::start ( )
MemState MemoryMonitor::state ( ) const
inline

The documentation for this class was generated from the following files: