Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
RecentCaptureFilesListModel Class Reference

Qt model for displaying recent capture files. More...

#include <recentcapturefiles_list_model.h>

Inheritance diagram for RecentCaptureFilesListModel:

Public Types

enum  RecentFileRoles { FilenameRole = Qt::UserRole , FileSizeRole , AccessibleRole }
 Custom data roles for RecentCaptureFilesListModel.
 

Public Member Functions

 RecentCaptureFilesListModel (QObject *parent=nullptr)
 
int rowCount (const QModelIndex &parent=QModelIndex()) const override
 
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const override
 
Qt::ItemFlags flags (const QModelIndex &index) const override
 

Detailed Description

Qt model for displaying recent capture files.

This is a thin wrapper over WorkspaceState - it doesn't store data, just provides a Qt model interface for views.

Thread safety: Assumes single-threaded access (UI thread only).


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