| Wireshark 4.7.3 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
29 class BookmarkModel : public QAbstractListModel
30{
31 Q_OBJECT
32
33 public:
35 enum Roles {
36 ExpressionRole = Qt::UserRole + 1,
37 NameRole
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
BookmarkModel
Abstract list model of saved ("bookmarked") filter expressions.
Definition bookmark_model.h:30
BookmarkModel::contains
virtual bool contains(const QString &expression) const =0
Returns true when expression exactly matches a saved entry.
BookmarkModel::Roles
Roles
Item-data roles exposed by every bookmark model.
Definition bookmark_model.h:35
BookmarkModel::NameRole
@ NameRole
Definition bookmark_model.h:37
BookmarkModel::ExpressionRole
@ ExpressionRole
Definition bookmark_model.h:36