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
qwaylanddatasource.cpp
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
9#include "qwaylandmimehelper_p.h"
11
12#include <QtCore/QFile>
13
14#include <QtCore/QDebug>
15
16#include <unistd.h>
17#include <signal.h>
18#include <fcntl.h>
19
20QT_BEGIN_NAMESPACE
21using namespace std::chrono;
22
23namespace QtWaylandClient {
24
36
41
46
48{
50 if (!content.isEmpty()) {
53 break;
55 qWarning() << "QWaylandDataSource: timeout writing to pipe";
56 break;
58 qWarning() << "QWaylandDataSource: peer closed pipe";
59 break;
61 qWarning() << "QWaylandDataSource: write() failed";
62 break;
63 }
64 }
65 close(fd);
66}
67
73
86
91
97
98}
99
100QT_END_NAMESPACE
101
102#include "moc_qwaylanddatasource_p.cpp"