aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qmlls/lifecycle/qiopipe.h
blob: 1722e2e465b77b05b83b2933e2883ed257a9e59f (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
// Copyright (C) 2020 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

#ifndef QECHODEVICE_H
#define QECHODEVICE_H

#include <QtCore/qiodevice.h>

QT_BEGIN_NAMESPACE

class QIOPipePrivate;
class QIOPipe : public QObject
{
    Q_OBJECT
    Q_DECLARE_PRIVATE(QIOPipe)

public:
    QIOPipe(QObject *parent = nullptr);

    bool open(QIODevice::OpenMode mode);

    QIODevice *end1() const;
    QIODevice *end2() const;
};

QT_END_NAMESPACE

#endif // QECHODEVICE_H