21 #ifndef CONNECTIONLISTINGMODEL_H 22 #define CONNECTIONLISTINGMODEL_H 24 #include "../mcontroller.h" 25 #include "../net/connection.h" 26 #include <QAbstractTableModel> 55 virtual int rowCount(
const QModelIndex & parent = QModelIndex())
const ;
60 virtual int columnCount(
const QModelIndex & parent = QModelIndex())
const ;
65 virtual QVariant
data(
const QModelIndex & index,
int role = Qt::DisplayRole)
const ;
66 virtual QVariant
headerData (
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole )
const ;
70 const QString& aExplanation) ;
bool iIsInBound
Definition: connectionlistingmodel.h:45
virtual int rowCount(const QModelIndex &parent=QModelIndex()) const
time_t iOpenTime
Definition: connectionlistingmodel.h:48
Model-class for displaying open network connections This is the underlying data-container of the "net...
Definition: connectionlistingmodel.h:35
QList< ConnectionDisplayItem > iConnections
Definition: connectionlistingmodel.h:82
QHostAddress iAddr
Definition: connectionlistingmodel.h:44
MController & iController
Definition: connectionlistingmodel.h:81
void timerEvent(QTimerEvent *event)
Hash is class that carries 160-bit digest.
Definition: hash.h:38
CAErrorSituation
Definition: mcontroller.h:57
ConnectionListingModel(Model &aModel, MController &aController)
virtual QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
unsigned long iBytesOut
Definition: connectionlistingmodel.h:47
virtual int columnCount(const QModelIndex &parent=QModelIndex()) const
unsigned long iBytesIn
Definition: connectionlistingmodel.h:46
Model & iModel
Definition: connectionlistingmodel.h:80
~ConnectionListingModel()
Pure-virtual interface class for controller. This is spammed across parties needing access to applica...
Definition: mcontroller.h:48
Definition: connectionlistingmodel.h:43
void error(MController::CAErrorSituation aError, const QString &aExplanation)
M of the MVC pattern. Handles permanent storage.
Definition: model.h:50
Hash iNodeFingerPrint
Definition: connectionlistingmodel.h:49
void updateModelContents()
virtual QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
int iTimerId
Definition: connectionlistingmodel.h:83
struct ConnectionListingModel::ConnectionDisplayItemStructure ConnectionDisplayItem