#include <sysinfo.h>
Inheritance diagram for AbstractSysInfo:
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 |
AbstractSysInfo::AbstractSysInfo | ( | ) | [inline] |
void AbstractSysInfo::closeProcDevice | ( | ) | [protected] |
QString AbstractSysInfo::doubleToString | ( | double | ) | [protected] |
QGraphicsItem* AbstractSysInfo::graphicsItem | ( | ) | [inline, virtual] |
bool AbstractSysInfo::hasTimer | ( | ) | [inline, virtual] |
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] |
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] |
QString AbstractSysInfo::postfix [read, write] |
int AbstractSysInfo::precision [read, write] |
QString AbstractSysInfo::prefix [read, write] |
SysUnit AbstractSysInfo::unit [read, write] |