summaryrefslogtreecommitdiffstats
path: root/examples/network/secureudpserver/nicselector.h
blob: 4f8bf9a85fb8ef0431c32b0b632ffb1a2c1306e7 (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
// Copyright (C) 2018 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

#ifndef NICSELECTOR_H
#define NICSELECTOR_H

#include <QDialog>
#include <QHostAddress>
#include <QList>

QT_BEGIN_NAMESPACE
namespace Ui {
class NicSelector;
}
QT_END_NAMESPACE

class NicSelector : public QDialog
{
    Q_OBJECT

public:
    explicit NicSelector(QWidget *parent = nullptr);
    ~NicSelector();

    QHostAddress selectedIp() const;
    quint16 selectedPort() const;

private:
    Ui::NicSelector *ui = nullptr;
    QList<QHostAddress> availableAddresses;
};

#endif // NICSELECTOR_H