Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
ConversationDataModel Class Reference
Inheritance diagram for ConversationDataModel:
ATapDataModel

Public Types

enum  conversation_column_type_e {
  CONV_COLUMN_SRC_ADDR , CONV_COLUMN_SRC_PORT , CONV_COLUMN_DST_ADDR , CONV_COLUMN_DST_PORT ,
  CONV_COLUMN_PACKETS , CONV_COLUMN_BYTES , CONV_COLUMN_CONV_ID , CONV_COLUMN_PACKETS_TOTAL ,
  CONV_COLUMN_BYTES_TOTAL , CONV_COLUMN_PKT_AB , CONV_COLUMN_BYTES_AB , CONV_COLUMN_PKT_BA ,
  CONV_COLUMN_BYTES_BA , CONV_COLUMN_START , CONV_COLUMN_DURATION , CONV_COLUMN_BPS_AB ,
  CONV_COLUMN_BPS_BA , CONV_NUM_COLUMNS , CONV_INDEX_COLUMN = CONV_NUM_COLUMNS
}
 
enum  conversation_tcp_ext_column_type_e { CONV_TCP_EXT_COLUMN_A = CONV_INDEX_COLUMN , CONV_TCP_EXT_NUM_COLUMNS , CONV_TCP_EXT_INDEX_COLUMN = CONV_TCP_EXT_NUM_COLUMNS }
 
- Public Types inherited from ATapDataModel
enum  {
  DISPLAY_FILTER = Qt::UserRole , UNFORMATTED_DISPLAYDATA , TIMELINE_DATA , ENDPOINT_DATATYPE ,
  PROTO_ID , CONVERSATION_ID , ROW_IS_FILTERED , DATA_ADDRESS_TYPE ,
  DATA_IPV4_INTEGER , DATA_IPV6_LIST
}
 
enum  dataModelType { DATAMODEL_ENDPOINT , DATAMODEL_CONVERSATION , DATAMODEL_UNKNOWN }
 

Public Member Functions

 ConversationDataModel (int protoId, QString filter, QObject *parent=nullptr)
 
int columnCount (const QModelIndex &parent=QModelIndex()) const
 
QVariant headerData (int section, Qt::Orientation orientation=Qt::Horizontal, int role=Qt::DisplayRole) const
 
QVariant data (const QModelIndex &idx, int role=Qt::DisplayRole) const
 
void doDataUpdate ()
 
conv_item_titemForRow (int row)
 
bool showConversationId (int row=0) const
 Show the conversation id if available.
 
- Public Member Functions inherited from ATapDataModel
 ATapDataModel (dataModelType type, int protoId, QString filter, QObject *parent=nullptr)
 Construct a new ATapDataModel object.
 
int rowCount (const QModelIndex &parent=QModelIndex()) const
 Number of rows under the given parent in this model, which is the total number of rows for the empty QModelIndex, and 0 for any valid parent index (as no row has children; this is a flat table.)
 
QString tap () const
 Returns the name for the tap being used.
 
int protoId () const
 The protocol id for the tap.
 
void setFilter (QString filter)
 Set the filter string.
 
QString filter () const
 Return a filter set for the model.
 
bool resolveNames () const
 Is the model set to resolve names in address and ports columns.
 
void setResolveNames (bool resolve)
 Enable or disable if names should be resolved.
 
bool allowsNameResolution () const
 Does the model allow names to be resolved.
 
void useAbsoluteTime (bool absolute)
 Use absolute time for any column supporting it.
 
void useNanosecondTimestamps (bool nanoseconds)
 Use nanosecond timestamps if requested.
 
bool portsAreHidden () const
 Are ports hidden for this model.
 
bool showTotalColumn () const
 A total column is filled.
 
bool enableTap ()
 Enable tapping in this model.
 
void disableTap ()
 Disable the tapping for this model.
 
dataModelType modelType () const
 Return the model type.
 
conv_hash_thash ()
 
void updateFlags (unsigned flag)
 Update the flags.
 

Additional Inherited Members

- Signals inherited from ATapDataModel
void tapListenerChanged (bool enable)
 
- Public Attributes inherited from ATapDataModel
conv_hash_t hash_
 
- Protected Member Functions inherited from ATapDataModel
virtual tap_packet_cb conversationPacketHandler ()
 
void resetData ()
 
void updateData (GArray *data)
 
register_ct_tregisterTable () const
 
- Static Protected Member Functions inherited from ATapDataModel
static void tapReset (void *tapdata)
 
static void tapDraw (void *tap_data)
 
- Protected Attributes inherited from ATapDataModel
dataModelType _type
 
GArray * storage_
 
QString _filter
 
bool _absoluteTime
 
bool _nanoseconds
 
bool _resolveNames
 
bool _disableTap
 
double _minRelStartTime
 
double _maxRelStopTime
 
unsigned _tapFlags
 

Member Function Documentation

◆ columnCount()

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

Implements ATapDataModel.

◆ data()

QVariant ConversationDataModel::data ( const QModelIndex &  idx,
int  role = Qt::DisplayRole 
) const
virtual

Implements ATapDataModel.

◆ headerData()

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

Implements ATapDataModel.

◆ showConversationId()

bool ConversationDataModel::showConversationId ( int  row = 0) const

Show the conversation id if available.

Returns
true a conversation id exists
false none available

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