summaryrefslogtreecommitdiffstats
path: root/ui/qt/widgets/compression_group_box.h
blob: 4e70ca2d09b7d26586ace6dc39a3468a6a094e9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/** @file
 *
 * Wireshark - Network traffic analyzer
 * By Gerald Combs <gerald@wireshark.org>
 * Copyright 1998 Gerald Combs
 *
 * SPDX-License-Identifier: GPL-2.0-or-later
 */

#ifndef COMPRESSION_GROUP_BOX_H
#define COMPRESSION_GROUP_BOX_H

#include <config.h>

#include <QGroupBox>

#include <wiretap/wtap.h>

class QButtonGroup;

/**
 * UI element for selecting compression type from among those supported.
 */
class CompressionGroupBox : public QGroupBox
{
    Q_OBJECT

public:
    explicit CompressionGroupBox(QWidget *parent = 0);
    ~CompressionGroupBox();
    wtap_compression_type compressionType() const;
    void setCompressionType(wtap_compression_type type);

signals:
    void stateChanged();

private:
    QButtonGroup *bg_;
};

#endif // COMPRESSION_GROUP_BOX_H