ServerInfoModel Class Reference

#include <ArmarXGui/gui-plugins/SystemStateMonitorPlugin/IceGridViewer/model/ServerInfoModel.h>

+ Inheritance diagram for ServerInfoModel:

Public Types

enum  COLUMN_INDEX { eServerInfo_Enabled = 0, eServerInfo_Id, eServerInfo_Status, eServerInfo_Pid }
 

Signals

void serverInfoChanged (IceGrid::ServerDynamicInfo serverInfo)
 

Public Member Functions

int columnCount (const QModelIndex &parent=QModelIndex()) const override
 
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const override
 
Qt::ItemFlags flags (const QModelIndex &index) const override
 
QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override
 
int rowCount (const QModelIndex &parent=QModelIndex()) const override
 
 ServerInfoModel ()
 
 ServerInfoModel (IceGrid::ServerDynamicInfoSeq serverInfo)
 
bool setData (const QModelIndex &index, const QVariant &value, int role) override
 
bool setData (IceGrid::ServerDynamicInfoSeq newInfo)
 

Protected Attributes

IceGrid::ServerDynamicInfoSeq serverInfo
 
std::mutex serverInfoMutex
 

Detailed Description

Definition at line 33 of file ServerInfoModel.h.

Member Enumeration Documentation

◆ COLUMN_INDEX

Enumerator
eServerInfo_Enabled 
eServerInfo_Id 
eServerInfo_Status 
eServerInfo_Pid 

Definition at line 48 of file ServerInfoModel.h.

Constructor & Destructor Documentation

◆ ServerInfoModel() [1/2]

ServerInfoModel ( )
inline

Definition at line 38 of file ServerInfoModel.h.

◆ ServerInfoModel() [2/2]

ServerInfoModel ( IceGrid::ServerDynamicInfoSeq  serverInfo)
inline

Definition at line 43 of file ServerInfoModel.h.

+ Here is the call graph for this function:

Member Function Documentation

◆ columnCount()

int columnCount ( const QModelIndex &  parent = QModelIndex()) const
inlineoverride

Definition at line 63 of file ServerInfoModel.h.

+ Here is the caller graph for this function:

◆ data()

QVariant data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const
inlineoverride

Definition at line 69 of file ServerInfoModel.h.

+ Here is the call graph for this function:

◆ flags()

Qt::ItemFlags flags ( const QModelIndex &  index) const
inlineoverride

Definition at line 191 of file ServerInfoModel.h.

◆ headerData()

QVariant headerData ( int  section,
Qt::Orientation  orientation,
int  role = Qt::DisplayRole 
) const
inlineoverride

Definition at line 154 of file ServerInfoModel.h.

◆ rowCount()

int rowCount ( const QModelIndex &  parent = QModelIndex()) const
inlineoverride

Definition at line 57 of file ServerInfoModel.h.

+ Here is the caller graph for this function:

◆ serverInfoChanged

void serverInfoChanged ( IceGrid::ServerDynamicInfo  serverInfo)
signal
+ Here is the caller graph for this function:

◆ setData() [1/2]

bool setData ( const QModelIndex &  index,
const QVariant &  value,
int  role 
)
inlineoverride

Definition at line 197 of file ServerInfoModel.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setData() [2/2]

bool setData ( IceGrid::ServerDynamicInfoSeq  newInfo)
inline

Definition at line 211 of file ServerInfoModel.h.

+ Here is the call graph for this function:

Member Data Documentation

◆ serverInfo

IceGrid::ServerDynamicInfoSeq serverInfo
protected

Definition at line 225 of file ServerInfoModel.h.

◆ serverInfoMutex

std::mutex serverInfoMutex
mutableprotected

Definition at line 226 of file ServerInfoModel.h.


The documentation for this class was generated from the following file: