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

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 ( Model aModel,
MController aController 
)
ConnectionListingModel::~ConnectionListingModel ( )

Member Function Documentation

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

re-implemented from QAbstractTableModel

Returns
number of columns in view
virtual QVariant ConnectionListingModel::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const
virtual

re-implemented from QAbstractListModel

Returns
data to display in list
void ConnectionListingModel::error ( MController::CAErrorSituation  aError,
const QString &  aExplanation 
)
signal
virtual QVariant ConnectionListingModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role = Qt::DisplayRole 
) const
virtual
virtual int ConnectionListingModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const
virtual
void ConnectionListingModel::timerEvent ( QTimerEvent *  event)
protected

for periodical stuff inside datamodel

void ConnectionListingModel::updateModelContents ( )
private

Member Data Documentation

QList<ConnectionDisplayItem> ConnectionListingModel::iConnections
private
MController& ConnectionListingModel::iController
private
Model& ConnectionListingModel::iModel
private
int ConnectionListingModel::iTimerId
private

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