3 * Wireshark - Network traffic analyzer
4 * By Gerald Combs <gerald@wireshark.org>
5 * Copyright 1998 Gerald Combs
7 * SPDX-License-Identifier: GPL-2.0-or-later
10 #ifndef UI_QT_EXTCAP_ARGUMENT_MULTISELECT_H_
11 #define UI_QT_EXTCAP_ARGUMENT_MULTISELECT_H_
15 #include <QStandardItem>
17 #include <QAbstractItemModel>
18 #include <QItemSelection>
20 #include <extcap_parser.h>
21 #include <extcap_argument.h>
23 class ExtArgMultiSelect
: public ExtcapArgument
27 ExtArgMultiSelect(extcap_arg
* argument
, QObject
*parent
= Q_NULLPTR
);
28 virtual ~ExtArgMultiSelect();
30 virtual QString
value();
31 virtual bool isValid();
32 virtual QString
defaultValue();
33 virtual bool isSetDefaultValueSupported();
36 virtual void setDefaultValue();
39 virtual QList
<QStandardItem
*> valueWalker(ExtcapValueList list
, QStringList
&defaults
);
40 void checkItemsWalker(QStandardItem
* item
, QStringList defaults
);
41 virtual QWidget
* createEditor(QWidget
* parent
);
45 void itemChanged(QStandardItem
*);
50 QAbstractItemModel
* viewModel
;
54 #endif /* UI_QT_EXTCAP_ARGUMENT_MULTISELECT_H_ */