update epan/dissectors/pidl/drsuapi/drsuapi.idl from samba
[wireshark-sm.git] / ui / qt / utils / wireshark_mime_data.h
blob4732f39a8940da9f945b49f75c36854f2bb9b802
1 /** @file
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
8 */
10 #ifndef UI_QT_UTILS_WIRESHARK_MIME_DATA_H_
11 #define UI_QT_UTILS_WIRESHARK_MIME_DATA_H_
13 #include <QMimeData>
15 class WiresharkMimeData: public QMimeData {
16 public:
17 virtual QString labelText() const = 0;
18 virtual void allowPlainText();
20 static const QString ColoringRulesMimeType;
21 static const QString ColumnListMimeType;
22 static const QString FilterListMimeType;
23 static const QString DisplayFilterMimeType;
26 class ToolbarEntryMimeData: public WiresharkMimeData {
27 Q_OBJECT
28 public:
30 ToolbarEntryMimeData(QString element, int pos);
32 int position() const;
33 QString element() const;
34 QString filter() const;
35 void setFilter(QString);
37 QString labelText() const override;
39 private:
41 QString element_;
42 QString filter_;
43 int pos_;
47 #endif /* UI_QT_UTILS_WIRESHARK_MIME_DATA_H_ */