PBSNodes Class Reference

#include <pbsnodes.h>

List of all members.

Public Slots

void clearNodesListing ()
void refresh ()
void onNodesReceived (QStringList)

Public Member Functions

 PBSNodes (QWidget *parent=0)
void addNodeEntry (const QString &name, const QString &state, const QString &nbproc, const QString &properties, const QString &type, const QString &status)

Private Attributes

QAbstractItemModel * model


Detailed Description

Widget to display nodes of a cluster

Definition at line 20 of file pbsnodes.h.


Constructor & Destructor Documentation

PBSNodes::PBSNodes ( QWidget *  parent = 0  ) 

Construct a PBSNodes widget

Parameters:
parent parent widget

Definition at line 21 of file pbsnodes.cpp.

References model, and refresh().


Member Function Documentation

void PBSNodes::addNodeEntry ( const QString &  name,
const QString &  state,
const QString &  nbproc,
const QString &  properties,
const QString &  type,
const QString &  status 
)

Add a node entry

Parameters:
name name
state state
nbproc number of processors
properties properties
type type
status value of the status field

Definition at line 55 of file pbsnodes.cpp.

References model.

Referenced by onNodesReceived().

void PBSNodes::clearNodesListing (  )  [slot]

Clear the widget

Definition at line 72 of file pbsnodes.cpp.

References model.

Referenced by onNodesReceived().

void PBSNodes::refresh (  )  [slot]

Refresh the widget

Definition at line 80 of file pbsnodes.cpp.

References Myssh::isConnected(), and onNodesReceived().

Referenced by PBSNodes().

void PBSNodes::onNodesReceived ( QStringList  outerr  )  [slot]

Parse the resulst of "pbsnodes -a"

Parameters:
outerr list of the output stream and error stream

Definition at line 101 of file pbsnodes.cpp.

References addNodeEntry(), and clearNodesListing().

Referenced by refresh().


Member Data Documentation

QAbstractItemModel* PBSNodes::model [private]

Definition at line 24 of file pbsnodes.h.

Referenced by addNodeEntry(), clearNodesListing(), and PBSNodes().


The documentation for this class was generated from the following files:
Generated on Mon Mar 16 18:46:09 2009 for QCJM by  doxygen 1.5.4