SysInfo Class Reference

#include <sysinfo.h>

List of all members.

Public Member Functions

 SysInfo ()
virtual ~SysInfo ()
QString getHostName ()
QString getKernel ()
QString getGnome ()
QString getFreeSpace ()
QString getProcessor ()
QString getMemory ()
QString getRelease ()
std::string exec (char *cmd)
QString convertGuintToQString (guint64 size, guint64 max_size=0, bool want_bits=false)

Public Attributes

string hostname
string distro_name
string distro_release
string kernel
guint64 memory_bytes
guint64 free_space_bytes
guint n_processors
vector< string > processors
QString gnome_version

Private Member Functions

void load_memory_info ()
void load_processors_info ()
void load_disk_info ()
void load_uname_info ()
void load_gnome_version ()

Static Private Member Functions

static struct utsname & uname ()


Constructor & Destructor Documentation

SysInfo::SysInfo (  ) 

SysInfo::~SysInfo (  )  [virtual]


Member Function Documentation

QString SysInfo::convertGuintToQString ( guint64  size,
guint64  max_size = 0,
bool  want_bits = false 
)

std::string SysInfo::exec ( char *  cmd  ) 

QString SysInfo::getFreeSpace (  ) 

QString SysInfo::getGnome (  ) 

QString SysInfo::getHostName (  ) 

QString SysInfo::getKernel (  ) 

QString SysInfo::getMemory (  ) 

QString SysInfo::getProcessor (  ) 

QString SysInfo::getRelease (  ) 

void SysInfo::load_disk_info (  )  [private]

Retrieve system's hard disk information

void SysInfo::load_gnome_version (  )  [private]

Retrieve current genome version being used on the system

void SysInfo::load_memory_info (  )  [private]

Retrieve system's memory information

void SysInfo::load_processors_info (  )  [private]

Retrieve system's processor(s) information

void SysInfo::load_uname_info (  )  [private]

Retrieve system's user name

static struct utsname& SysInfo::uname (  )  [inline, static, private]


Member Data Documentation

string SysInfo::distro_name

string SysInfo::distro_release

guint64 SysInfo::free_space_bytes

QString SysInfo::gnome_version

string SysInfo::hostname

string SysInfo::kernel

guint64 SysInfo::memory_bytes

guint SysInfo::n_processors

vector<string> SysInfo::processors


The documentation for this class was generated from the following files:
Generated on Sat Apr 17 16:28:54 2010 for ProcessViewer by  doxygen 1.4.7