aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/widgets/copy_from_profile_menu.h
blob: f120d511954716f87d8270e3b1461225604d6b31 (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
/* copy_from_profile_menu.h
 *
 * Wireshark - Network traffic analyzer
 * By Gerald Combs <gerald@wireshark.org>
 * Copyright 1998 Gerald Combs
 *
 * SPDX-License-Identifier: GPL-2.0-or-later
 */

#ifndef COPY_FROM_PROFILE_MENU_H
#define COPY_FROM_PROFILE_MENU_H

#include <config.h>
#include <glib.h>

#include <QMenu>

class CopyFromProfileMenu : public QMenu
{
    Q_OBJECT

public:
    explicit CopyFromProfileMenu(QString filename, QWidget *parent = Q_NULLPTR);
    ~CopyFromProfileMenu() { }

    bool haveProfiles();

private:

    QAction * systemDefault(QString filename);

    bool have_profiles_;
};

#endif // COPY_FROM_PROFILE_MENU_H