Classified ads
Classes | Public Types | Signals | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
ConnectionListingModel Class Reference

Model-class for displaying open network connections This is the underlying data-container of the "network status" dialog. More...

#include <connectionlistingmodel.h>

Inheritance diagram for ConnectionListingModel:
Inheritance graph
[legend]
Collaboration diagram for ConnectionListingModel:
Collaboration graph
[legend]

Classes

struct  ConnectionDisplayItemStructure
 

Public Types

typedef struct ConnectionListingModel::ConnectionDisplayItemStructure ConnectionDisplayItem
 

Signals

void error (MController::CAErrorSituation aError, const QString &aExplanation)
 

Public Member Functions

 ConnectionListingModel (Model &aModel, MController &aController)
 
 ~ConnectionListingModel ()
 
virtual int rowCount (const QModelIndex &parent=QModelIndex()) const
 
virtual int columnCount (const QModelIndex &parent=QModelIndex()) const
 
virtual QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const
 
virtual QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
 

Protected Member Functions

void timerEvent (QTimerEvent *event)
 

Private Member Functions

void updateModelContents ()
 

Private Attributes

ModeliModel
 
MControlleriController
 
QList< ConnectionDisplayItemiConnections
 
int iTimerId
 

Detailed Description

Model-class for displaying open network connections This is the underlying data-container of the "network status" dialog.

Member Typedef Documentation

◆ ConnectionDisplayItem

instead of relaying the connections from Model::iConnections we keep our local copy of the same stuff here, updating it as necessary

Constructor & Destructor Documentation

◆ ConnectionListingModel()

ConnectionListingModel::ConnectionListingModel ( Model aModel,
MController aController 
)

◆ ~ConnectionListingModel()

ConnectionListingModel::~ConnectionListingModel ( )

Member Function Documentation

◆ columnCount()

virtual int ConnectionListingModel::columnCount ( const QModelIndex &  parent = QModelIndex()) const
virtual

re-implemented from QAbstractTableModel

Returns
number of columns in view

◆ data()

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

re-implemented from QAbstractListModel

Returns
data to display in list

◆ error

void ConnectionListingModel::error ( MController::CAErrorSituation  aError,
const QString &  aExplanation 
)
signal

◆ headerData()

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

◆ rowCount()

virtual int ConnectionListingModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const
virtual

◆ timerEvent()

void ConnectionListingModel::timerEvent ( QTimerEvent *  event)
protected

for periodical stuff inside datamodel

◆ updateModelContents()

void ConnectionListingModel::updateModelContents ( )
private

Member Data Documentation

◆ iConnections

QList<ConnectionDisplayItem> ConnectionListingModel::iConnections
private

◆ iController

MController& ConnectionListingModel::iController
private

◆ iModel

Model& ConnectionListingModel::iModel
private

◆ iTimerId

int ConnectionListingModel::iTimerId
private

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