PacketModel Class Reference

#include <PacketModel.h> [code]

Inherits QAbstractTableModel.

Inheritance diagram for PacketModel:

Inheritance graph
[legend]
Collaboration diagram for PacketModel:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 39 of file PacketModel.h.

Public Types

enum  Direction {
  Incomming,
  Outgoing
}

Public Member Functions

 PacketModel ()
 ~PacketModel ()
int rowCount (const QModelIndex &parent=QModelIndex()) const
int columnCount (const QModelIndex &parent=QModelIndex()) const
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const
QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
bool insertPacket (const Packet *packet, Direction direction)
void setFlags (PacketFlags &falgs)

Public Attributes

PacketFlags packetFlags
QMap< QString, int > flagValues

Private Types

typedef QList< PacketInfo * > PacketList

Private Attributes

PacketList packetList
QIcon inIcon
QIcon outIcon

Classes

struct  PacketInfo


Member Typedef Documentation

typedef QList<PacketInfo *> PacketModel::PacketList [private]
 

Definition at line 87 of file PacketModel.h.


Member Enumeration Documentation

enum PacketModel::Direction
 

Enumerator:
Incomming 
Outgoing 

Definition at line 44 of file PacketModel.h.


Constructor & Destructor Documentation

PacketModel::PacketModel  ) 
 

Definition at line 28 of file PacketModel.cpp.

PacketModel::~PacketModel  ) 
 

Definition at line 51 of file PacketModel.cpp.


Member Function Documentation

int PacketModel::columnCount const QModelIndex &  parent = QModelIndex()  )  const
 

Definition at line 63 of file PacketModel.cpp.

QVariant PacketModel::data const QModelIndex &  index,
int  role = Qt::DisplayRole
const
 

Definition at line 68 of file PacketModel.cpp.

QVariant PacketModel::headerData int  section,
Qt::Orientation  orientation,
int  role = Qt::DisplayRole
const
 

Definition at line 103 of file PacketModel.cpp.

bool PacketModel::insertPacket const Packet packet,
Direction  direction
 

int PacketModel::rowCount const QModelIndex &  parent = QModelIndex()  )  const
 

Definition at line 58 of file PacketModel.cpp.

void PacketModel::setFlags PacketFlags &  falgs  ) 
 

Definition at line 193 of file PacketModel.cpp.


Member Data Documentation

QMap<QString, int> PacketModel::flagValues
 

Definition at line 96 of file PacketModel.h.

QIcon PacketModel::inIcon [private]
 

Definition at line 90 of file PacketModel.h.

QIcon PacketModel::outIcon [private]
 

Definition at line 91 of file PacketModel.h.

PacketFlags PacketModel::packetFlags
 

Definition at line 95 of file PacketModel.h.

PacketList PacketModel::packetList [private]
 

Definition at line 88 of file PacketModel.h.


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