summaryrefslogtreecommitdiff
path: root/examples/nfc/ndefeditor/urirecordeditor.h
blob: 2a2a373633ce551c7b0cbf9fa8bd016d3eb7dca1 (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) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

#ifndef URIRECORDEDITOR_H
#define URIRECORDEDITOR_H

#include <QtNfc/qndefnfcurirecord.h>

#include <QtWidgets/QWidget>

QT_BEGIN_NAMESPACE
namespace Ui {
    class UriRecordEditor;
}
QT_END_NAMESPACE

//! [0]
class UriRecordEditor : public QWidget
{
    Q_OBJECT

public:
    explicit UriRecordEditor(QWidget *parent = 0);
    ~UriRecordEditor();

    void setRecord(const QNdefNfcUriRecord &uriRecord);
    QNdefNfcUriRecord record() const;

private:
    Ui::UriRecordEditor *ui;
};
//! [0]
#endif // URIRECORDEDITOR_H