Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qdbusunixfiledescriptor.h
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
4
5#ifndef QDBUSUNIXFILEDESCRIPTOR_H
6#define QDBUSUNIXFILEDESCRIPTOR_H
7
8#include <QtDBus/qtdbusglobal.h>
9#include <QtCore/qshareddata.h>
10
11#ifndef QT_NO_DBUS
12
13#include <utility>
14
16
17
19
20class Q_DBUS_EXPORT QDBusUnixFileDescriptor
21{
22public:
24 explicit QDBusUnixFileDescriptor(int fileDescriptor);
29
31 { d.swap(other.d); }
32
33 bool isValid() const;
34
35 int fileDescriptor() const;
36 void setFileDescriptor(int fileDescriptor);
37
38 void giveFileDescriptor(int fileDescriptor);
39 int takeFileDescriptor();
40
41 static bool isSupported();
42
43protected:
44 typedef QExplicitlySharedDataPointer<QDBusUnixFileDescriptorPrivate> Data;
46};
47
48Q_DECLARE_SHARED(QDBusUnixFileDescriptor)
49
51
53
54#endif // QT_NO_DBUS
55#endif // QDBUSUNIXFILEDESCRIPTOR_H
\variable QDBusUnixFileDescriptor::d
void swap(QDBusUnixFileDescriptor &other) noexcept
QExplicitlySharedDataPointer< QDBusUnixFileDescriptorPrivate > Data
QDBusUnixFileDescriptor & operator=(QDBusUnixFileDescriptor &&other) noexcept
Move-assigns other to this QDBusUnixFileDescriptor.
Combined button and popup list for selecting options.
#define QT_DECL_METATYPE_EXTERN(TYPE, EXPORT)
Definition qmetatype.h:1388
QSharedPointer< T > other(t)
[5]
this swap(other)