aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/PySide6/qiopipe.h
blob: 6a325f184c50f65ef890b86d61f5d3db0a726875 (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
// Copyright (C) 2024 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only

#ifndef QIOPIPE_H
#define QIOPIPE_H

#include <QtCore/qiodevicebase.h>
#include <QtCore/qobject.h>

QT_BEGIN_NAMESPACE

class QIODevice;

namespace QtCoreHelper
{

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

public:
    QIOPipe(QObject *parent = nullptr);

    bool open(QIODeviceBase::OpenMode mode);

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

} // namespace QtCoreHelper

QT_END_NAMESPACE

#endif // QIOPIPE_H