AbstractSysInfo Class Reference

#include <sysinfo.h>

Inheritance diagram for AbstractSysInfo:

Inheritance graph
[legend]
Collaboration diagram for AbstractSysInfo:

Collaboration graph
[legend]
List of all members.

Public Types

 Bit
 Byte
 Kilobyte
 Megabyte
 Gigabyte
 Terrabyte
enum  SysUnit {
  Bit, Byte, Kilobyte, Megabyte,
  Gigabyte, Terrabyte
}

Public Member Functions

 AbstractSysInfo ()
bool init ()
QGraphicsItem * graphicsItem ()
bool hasTimer ()
void setUnit (SysUnit unit)
void setPostfix (const QString &postfix)
void setPrefix (const QString &prefix)
void setPrecision (int precision)
SysUnit unit ()
QString postfix () const
QString prefix () const
int precision ()

Protected Member Functions

QString doubleToString (double)
void openProcDevice (const QString &, int skipLines=0)
void closeProcDevice ()
QString line () const
bool nextLine ()

Properties

SysUnit unit []
QString postfix []
QString prefix []
int precision []

Private Attributes

QFile m_device
QString m_line
QTextStream m_allLines
QString m_postfix
QString m_prefix
int m_precision
SysUnit m_unit

Member Enumeration Documentation

enum AbstractSysInfo::SysUnit

Enumerator:
Bit 
Byte 
Kilobyte 
Megabyte 
Gigabyte 
Terrabyte 


Constructor & Destructor Documentation

AbstractSysInfo::AbstractSysInfo (  )  [inline]


Member Function Documentation

void AbstractSysInfo::closeProcDevice (  )  [protected]

QString AbstractSysInfo::doubleToString ( double   )  [protected]

QGraphicsItem* AbstractSysInfo::graphicsItem (  )  [inline, virtual]

Reimplemented from GraphicText.

Reimplemented in LMSensors.

bool AbstractSysInfo::hasTimer (  )  [inline, virtual]

Reimplemented from PluginInterface.

Reimplemented in LMSensors.

bool AbstractSysInfo::init (  )  [virtual]

Reimplemented from GraphicText.

Reimplemented in LMSensors, MemoryInfo, CPUInfo, HDDInfo, and NetworkInfo.

QString AbstractSysInfo::line (  )  const [protected]

bool AbstractSysInfo::nextLine (  )  [protected]

void AbstractSysInfo::openProcDevice ( const QString &  ,
int  skipLines = 0 
) [protected]

QString AbstractSysInfo::postfix (  )  const [inline]

int AbstractSysInfo::precision (  )  [inline]

QString AbstractSysInfo::prefix (  )  const [inline]

void AbstractSysInfo::setPostfix ( const QString &  postfix  )  [inline]

void AbstractSysInfo::setPrecision ( int  precision  )  [inline]

void AbstractSysInfo::setPrefix ( const QString &  prefix  )  [inline]

void AbstractSysInfo::setUnit ( SysUnit  unit  )  [inline]

SysUnit AbstractSysInfo::unit (  )  [inline]


Member Data Documentation

QTextStream AbstractSysInfo::m_allLines [private]

QFile AbstractSysInfo::m_device [private]

QString AbstractSysInfo::m_line [private]

QString AbstractSysInfo::m_postfix [private]

int AbstractSysInfo::m_precision [private]

QString AbstractSysInfo::m_prefix [private]

SysUnit AbstractSysInfo::m_unit [private]


Property Documentation

QString AbstractSysInfo::postfix [read, write]

int AbstractSysInfo::precision [read, write]

QString AbstractSysInfo::prefix [read, write]

SysUnit AbstractSysInfo::unit [read, write]


The documentation for this class was generated from the following files:
Generated on Thu Apr 5 13:12:03 2007 for LCDBuilder by  doxygen 1.4.7