20 #ifndef CONNECTIONLISTINGMODEL_H
21 #define CONNECTIONLISTINGMODEL_H
23 #include "../mcontroller.h"
24 #include "../net/connection.h"
25 #include <QAbstractTableModel>
54 virtual int rowCount(
const QModelIndex & parent = QModelIndex())
const ;
59 virtual int columnCount(
const QModelIndex & parent = QModelIndex())
const ;
64 virtual QVariant
data(
const QModelIndex & index,
int role = Qt::DisplayRole)
const ;
65 virtual QVariant
headerData (
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole )
const ;
69 const QString& aExplanation) ;
bool iIsInBound
Definition: connectionlistingmodel.h:44
time_t iOpenTime
Definition: connectionlistingmodel.h:47
Model-class for displaying open network connections This is the underlying data-container of the "net...
Definition: connectionlistingmodel.h:34
QList< ConnectionDisplayItem > iConnections
Definition: connectionlistingmodel.h:81
QHostAddress iAddr
Definition: connectionlistingmodel.h:43
MController & iController
Definition: connectionlistingmodel.h:80
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:37
CAErrorSituation
Definition: mcontroller.h:48
virtual int rowCount(const QModelIndex &parent=QModelIndex()) const
ConnectionListingModel(Model &aModel, MController &aController)
unsigned long iBytesOut
Definition: connectionlistingmodel.h:46
unsigned long iBytesIn
Definition: connectionlistingmodel.h:45
Model & iModel
Definition: connectionlistingmodel.h:79
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:39
Definition: connectionlistingmodel.h:42
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:47
Hash iNodeFingerPrint
Definition: connectionlistingmodel.h:48
void updateModelContents()
int iTimerId
Definition: connectionlistingmodel.h:82
struct ConnectionListingModel::ConnectionDisplayItemStructure ConnectionDisplayItem