#include <pbsnodes.h>
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 |
Definition at line 20 of file pbsnodes.h.
PBSNodes::PBSNodes | ( | QWidget * | parent = 0 |
) |
Construct a PBSNodes widget
parent | parent widget |
Definition at line 21 of file pbsnodes.cpp.
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
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"
outerr | list of the output stream and error stream |
Definition at line 101 of file pbsnodes.cpp.
References addNodeEntry(), and clearNodesListing().
Referenced by refresh().
QAbstractItemModel* PBSNodes::model [private] |
Definition at line 24 of file pbsnodes.h.
Referenced by addNodeEntry(), clearNodesListing(), and PBSNodes().