Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

MemoryInfo Class Reference

#include </home/clem/local/src/opie/noncore/applets/memoryapplet/memory.h>

Collaboration diagram for MemoryInfo:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MemoryInfo (QWidget *parent=0, const char *name=0, WFlags f=0)
 ~MemoryInfo ()
 MemoryInfo (QWidget *parent=0, const char *name=0, WFlags f=0)
 ~MemoryInfo ()

Public Attributes

unsigned long total
unsigned long used
unsigned long memfree
unsigned long buffers
unsigned long cached
unsigned long realUsed
unsigned long swaptotal
unsigned long swapused
unsigned long swapfree

Private Slots

void updateData ()
void updateData ()

Private Attributes

QLabel * totalMem
GraphDatadata
Graphgraph
GraphLegendlegend
QLabel * swapMem
GraphDataswapdata
Graphswapgraph
GraphLegendswaplegend
QLabel * totalMem
GraphDatadata
Graphgraph
GraphLegendlegend
QLabel * swapMem
GraphDataswapdata
Graphswapgraph
GraphLegendswaplegend

Constructor & Destructor Documentation

MemoryInfo::MemoryInfo QWidget *  parent = 0,
const char *  name = 0,
WFlags  f = 0
 

Definition at line 30 of file memory.cpp.

References add, data, graph, legend, GraphLegend::setData(), swapdata, swapgraph, swaplegend, swapMem, t, totalMem, tr, and updateData().

MemoryInfo::~MemoryInfo  ) 
 

Definition at line 72 of file memory.cpp.

References data.

MemoryInfo::MemoryInfo QWidget *  parent = 0,
const char *  name = 0,
WFlags  f = 0
 

MemoryInfo::~MemoryInfo  ) 
 


Member Function Documentation

void MemoryInfo::updateData  )  [private, slot]
 

void MemoryInfo::updateData  )  [private, slot]
 

Definition at line 77 of file memory.cpp.

References GraphData::addItem(), QTextStream::atEnd(), buffers, cached, GraphData::clear(), data, FALSE, QString::find(), graph, IO_ReadOnly, QString::left(), legend, QString::length(), memfree, QString::mid(), QFile::open(), QTextStream::readLine(), realUsed, QString::stripWhiteSpace(), swapdata, swapfree, swapgraph, swaplegend, swapMem, swaptotal, swapused, t, total, totalMem, QString::toULong(), tr, and used.

Referenced by MemoryInfo().


Member Data Documentation

unsigned long MemoryInfo::buffers
 

Definition at line 41 of file memory.h.

Referenced by updateData().

unsigned long MemoryInfo::cached
 

Definition at line 42 of file memory.h.

Referenced by updateData().

GraphData* MemoryInfo::data [private]
 

Definition at line 53 of file memory.h.

GraphData* MemoryInfo::data [private]
 

Definition at line 53 of file memory.h.

Referenced by MemoryInfo(), updateData(), and ~MemoryInfo().

Graph* MemoryInfo::graph [private]
 

Definition at line 54 of file memory.h.

Graph* MemoryInfo::graph [private]
 

Definition at line 54 of file memory.h.

Referenced by MemoryInfo(), and updateData().

GraphLegend* MemoryInfo::legend [private]
 

Definition at line 55 of file memory.h.

GraphLegend* MemoryInfo::legend [private]
 

Definition at line 55 of file memory.h.

Referenced by MemoryInfo(), and updateData().

unsigned long MemoryInfo::memfree
 

Definition at line 40 of file memory.h.

Referenced by updateData().

unsigned long MemoryInfo::realUsed
 

Definition at line 43 of file memory.h.

Referenced by MemoryStatus::percent(), and updateData().

GraphData* MemoryInfo::swapdata [private]
 

Definition at line 58 of file memory.h.

GraphData* MemoryInfo::swapdata [private]
 

Definition at line 58 of file memory.h.

Referenced by MemoryInfo(), and updateData().

unsigned long MemoryInfo::swapfree
 

Definition at line 46 of file memory.h.

Referenced by updateData().

Graph* MemoryInfo::swapgraph [private]
 

Definition at line 59 of file memory.h.

Graph* MemoryInfo::swapgraph [private]
 

Definition at line 59 of file memory.h.

Referenced by MemoryInfo(), and updateData().

GraphLegend* MemoryInfo::swaplegend [private]
 

Definition at line 60 of file memory.h.

GraphLegend* MemoryInfo::swaplegend [private]
 

Definition at line 60 of file memory.h.

Referenced by MemoryInfo(), and updateData().

QLabel* MemoryInfo::swapMem [private]
 

Definition at line 57 of file memory.h.

QLabel* MemoryInfo::swapMem [private]
 

Definition at line 57 of file memory.h.

Referenced by MemoryInfo(), and updateData().

unsigned long MemoryInfo::swaptotal
 

Definition at line 44 of file memory.h.

Referenced by MemoryStatus::percent(), MemoryStatus::sizeHint(), and updateData().

unsigned long MemoryInfo::swapused
 

Definition at line 45 of file memory.h.

Referenced by MemoryStatus::percent(), and updateData().

unsigned long MemoryInfo::total
 

Definition at line 38 of file memory.h.

Referenced by MemoryStatus::percent(), and updateData().

QLabel* MemoryInfo::totalMem [private]
 

Definition at line 52 of file memory.h.

QLabel* MemoryInfo::totalMem [private]
 

Definition at line 52 of file memory.h.

Referenced by MemoryInfo(), and updateData().

unsigned long MemoryInfo::used
 

Definition at line 39 of file memory.h.

Referenced by updateData().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:39:56 2005 for OPIE by  doxygen 1.4.2