A table model managing a list of exportable objects extracted from network traffic.
More...
#include <export_objects_model.h>
|
| | ExportObjectModel (register_eo_t *eo, QObject *parent) |
| | Constructs a new ExportObjectModel.
|
| |
|
virtual | ~ExportObjectModel () |
| | Destroys the ExportObjectModel.
|
| |
| void | addObjectEntry (export_object_entry_t *entry) |
| | Adds a new export object entry to the model.
|
| |
| export_object_entry_t * | objectEntry (int row) |
| | Retrieves the export object entry at a specific row.
|
| |
|
void | resetObjects () |
| | Resets and clears all object entries from the model.
|
| |
| bool | saveEntry (const QModelIndex &index, QString filename) |
| | Saves a specific entry to a file.
|
| |
| void | saveEntries (const QModelIndexList &indices, QString path) |
| | Saves multiple entries to a directory.
|
| |
| void | saveAllEntries (QString path) |
| | Saves all entries in the model to a directory.
|
| |
| const char * | getTapListenerName () |
| | Retrieves the name of the tap listener.
|
| |
| void * | getTapData () |
| | Retrieves the tap data pointer.
|
| |
| tap_packet_cb | getTapPacketFunc () |
| | Retrieves the callback function used for processing tap packets.
|
| |
|
void | removeTap () |
| | Removes the associated tap listener.
|
| |
| QVariant | data (const QModelIndex &index, int role) const |
| | Retrieves data from the model for a given index and role.
|
| |
| QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
| | Retrieves the header data for a specific section and role.
|
| |
| int | rowCount (const QModelIndex &parent=QModelIndex()) const |
| | Returns the number of rows under a given parent.
|
| |
| int | columnCount (const QModelIndex &parent=QModelIndex()) const |
| | Returns the number of columns under a given parent.
|
| |
|
| static void | resetTap (void *tapdata) |
| | Static callback used to reset the tap data.
|
| |
A table model managing a list of exportable objects extracted from network traffic.
◆ ExportObjectColumn
Enumerates the columns for the export object model.
| Enumerator |
|---|
| colPacket | Packet number column.
|
| colHostname | Hostname column.
|
| colContent | Content type column.
|
| colSize | Size of the object column.
|
| colFilename | Filename column.
|
| colExportObjectMax | End of columns marker.
|
◆ ExportObjectModel()
| ExportObjectModel::ExportObjectModel |
( |
register_eo_t * |
eo, |
|
|
QObject * |
parent |
|
) |
| |
Constructs a new ExportObjectModel.
- Parameters
-
| eo | Pointer to the registered export object type. |
| parent | The parent QObject. |
◆ addObjectEntry()
Adds a new export object entry to the model.
- Parameters
-
| entry | Pointer to the export object entry. |
◆ columnCount()
| int ExportObjectModel::columnCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
Returns the number of columns under a given parent.
- Parameters
-
| parent | The parent model index (defaults to an invalid QModelIndex). |
- Returns
- The number of columns.
◆ data()
| QVariant ExportObjectModel::data |
( |
const QModelIndex & |
index, |
|
|
int |
role |
|
) |
| const |
Retrieves data from the model for a given index and role.
- Parameters
-
| index | The model index. |
| role | The data role requested. |
- Returns
- The data associated with the index and role.
◆ getTapData()
| void * ExportObjectModel::getTapData |
( |
| ) |
|
Retrieves the tap data pointer.
- Returns
- Pointer to the tap data.
◆ getTapListenerName()
| const char * ExportObjectModel::getTapListenerName |
( |
| ) |
|
Retrieves the name of the tap listener.
- Returns
- The tap listener name string.
◆ getTapPacketFunc()
| tap_packet_cb ExportObjectModel::getTapPacketFunc |
( |
| ) |
|
Retrieves the callback function used for processing tap packets.
- Returns
- The tap packet callback function pointer.
◆ headerData()
| QVariant ExportObjectModel::headerData |
( |
int |
section, |
|
|
Qt::Orientation |
orientation, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
Retrieves the header data for a specific section and role.
- Parameters
-
| section | The column or row section. |
| orientation | The orientation of the header. |
| role | The data role requested (defaults to Qt::DisplayRole). |
- Returns
- The header data.
◆ objectEntry()
Retrieves the export object entry at a specific row.
- Parameters
-
- Returns
- Pointer to the export object entry.
◆ resetTap()
| void ExportObjectModel::resetTap |
( |
void * |
tapdata | ) |
|
|
static |
Static callback used to reset the tap data.
- Parameters
-
| tapdata | Pointer to the tap data to reset. |
◆ rowCount()
| int ExportObjectModel::rowCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
Returns the number of rows under a given parent.
- Parameters
-
| parent | The parent model index (defaults to an invalid QModelIndex). |
- Returns
- The number of rows.
◆ saveAllEntries()
| void ExportObjectModel::saveAllEntries |
( |
QString |
path | ) |
|
Saves all entries in the model to a directory.
- Parameters
-
| path | The destination directory path. |
◆ saveEntries()
| void ExportObjectModel::saveEntries |
( |
const QModelIndexList & |
indices, |
|
|
QString |
path |
|
) |
| |
Saves multiple entries to a directory.
- Parameters
-
| indices | The list of model indices to save. |
| path | The destination directory path. |
◆ saveEntry()
| bool ExportObjectModel::saveEntry |
( |
const QModelIndex & |
index, |
|
|
QString |
filename |
|
) |
| |
Saves a specific entry to a file.
- Parameters
-
| index | The model index of the entry to save. |
| filename | The destination filename. |
- Returns
- True if saved successfully, false otherwise.
The documentation for this class was generated from the following files:
- /builds/wireshark/wireshark/ui/qt/models/export_objects_model.h
- /builds/wireshark/wireshark/ui/qt/models/export_objects_model.cpp