Wireshark 4.7.2
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
bookmark_model.h
Go to the documentation of this file.
1
9
10#ifndef BOOKMARK_MODEL_H
11#define BOOKMARK_MODEL_H
12
13#include <QAbstractListModel>
14#include <QString>
15
29class BookmarkModel : public QAbstractListModel
30{
31 Q_OBJECT
32
33public:
35 enum Roles {
36 ExpressionRole = Qt::UserRole + 1,
38 };
39
40 explicit BookmarkModel(QObject *parent = nullptr);
41
48 virtual bool contains(const QString &expression) const = 0;
49};
50
51#endif // BOOKMARK_MODEL_H
Abstract list model of saved ("bookmarked") filter expressions.
Definition bookmark_model.h:30
virtual bool contains(const QString &expression) const =0
Returns true when expression exactly matches a saved entry.
Roles
Item-data roles exposed by every bookmark model.
Definition bookmark_model.h:35
@ NameRole
Definition bookmark_model.h:37
@ ExpressionRole
Definition bookmark_model.h:36