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
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
virtual QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
void timerEvent(QTimerEvent *event)
Hash is class that carries 160-bit digest.
Definition: hash.h:38
CAErrorSituation
Definition: mcontroller.h:52
virtual int rowCount(const QModelIndex &parent=QModelIndex()) const
ConnectionListingModel(Model &aModel, MController &aController)
unsigned long iBytesOut
Definition: connectionlistingmodel.h:47
unsigned long iBytesIn
Definition: connectionlistingmodel.h:46
Model & iModel
Definition: connectionlistingmodel.h:80
virtual QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
~ConnectionListingModel()
Pure-virtual interface class for controller. This is spammed across parties needing access to applica...
Definition: mcontroller.h:43
Definition: connectionlistingmodel.h:43
void error(MController::CAErrorSituation aError, const QString &aExplanation)
virtual int columnCount(const QModelIndex &parent=QModelIndex()) const
M of the MVC pattern. Handles permanent storage.
Definition: model.h:48
Hash iNodeFingerPrint
Definition: connectionlistingmodel.h:49
void updateModelContents()
int iTimerId
Definition: connectionlistingmodel.h:83
struct ConnectionListingModel::ConnectionDisplayItemStructure ConnectionDisplayItem