Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qwaylandpipewritehelper_p.h
Go to the documentation of this file.
1
// Copyright (C) 2026 UnionTech Software Technology Co., Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4
#
ifndef
QWAYLANDPIPEWRITEHELPER_P_H
5
#
define
QWAYLANDPIPEWRITEHELPER_P_H
6
7
//
8
// W A R N I N G
9
// -------------
10
//
11
// This file is not part of the Qt API. It exists purely as an
12
// implementation detail. This header file may change from version to
13
// version without notice, or even be removed.
14
//
15
// We mean it.
16
//
17
18
#
include
<
QtCore
/
qtypes
.
h
>
19
#
include
<
chrono
>
20
21
QT_BEGIN_NAMESPACE
22
23
namespace
QWaylandPipeWriteHelper
24
{
25
enum
class
SafeWriteResult
{
26
Ok
,
27
Timeout
,
28
Closed
,
29
Error
,
30
};
31
SafeWriteResult
safeWriteWithTimeout
(
int
fd,
32
const
char
*data,
33
qsizetype len,
34
qsizetype chunkSize,
35
std
::chrono::nanoseconds timeout);
36
};
37
38
QT_END_NAMESPACE
39
40
#
endif
// QWAYLANDPIPEWRITEHELPER_P_H
QWaylandPipeWriteHelper
Definition
qwaylandpipewritehelper_p.h:24
QWaylandPipeWriteHelper::SafeWriteResult
SafeWriteResult
Definition
qwaylandpipewritehelper_p.h:25
QWaylandPipeWriteHelper::SafeWriteResult::Closed
@ Closed
Definition
qwaylandpipewritehelper_p.h:28
QWaylandPipeWriteHelper::SafeWriteResult::Error
@ Error
Definition
qwaylandpipewritehelper_p.h:29
QWaylandPipeWriteHelper::SafeWriteResult::Ok
@ Ok
Definition
qwaylandpipewritehelper_p.h:26
QWaylandPipeWriteHelper::SafeWriteResult::Timeout
@ Timeout
Definition
qwaylandpipewritehelper_p.h:27
QWaylandPipeWriteHelper::safeWriteWithTimeout
SafeWriteResult safeWriteWithTimeout(int fd, const char *data, qsizetype len, qsizetype chunkSize, std::chrono::nanoseconds timeout)
Definition
qwaylandpipewritehelper.cpp:10
QtWaylandClient
Definition
qwaylandclientextension.h:15
std
[33]
Definition
src_corelib_tools_qhash.cpp:421
qtbase
src
plugins
platforms
wayland
shared
qwaylandpipewritehelper_p.h
Generated on
for Qt by
1.16.1