44 #include <QSharedData> 47 # include <private/qcore_unix_p.h> 131 {
if (
d && !
d->ref.deref())
delete d; }
161 if (fileDescriptor != -1)
181 d.operator=(other.
d);
200 return d ?
d->
fd != -1 :
false;
218 return d ?
d->
fd.operator int() : -1;
256 if (fileDescriptor != -1)
281 if (fileDescriptor != -1)
#define QT_END_NAMESPACE
This macro expands to.
QDBusUnixFileDescriptor()
Constructs a QDBusUnixFileDescriptor without a wrapped file descriptor.
The QAtomicInt class provides platform-independent atomic operations on integers. ...
static bool isSupported()
Returns true if Unix file descriptors are supported on this platform.
~QDBusUnixFileDescriptorPrivate()
static int qt_safe_close(int fd)
void setFileDescriptor(int fileDescriptor)
Sets the file descriptor that this QDBusUnixFileDescriptor object holds to a copy of fileDescriptor...
The QDBusUnixFileDescriptor class holds one Unix file descriptor.
QDBusUnixFileDescriptorPrivate()
#define QT_BEGIN_NAMESPACE
This macro expands to.
~QDBusUnixFileDescriptor()
Destroys this QDBusUnixFileDescriptor object and disposes of the Unix file descriptor that it contain...
QDBusUnixFileDescriptor & operator=(const QDBusUnixFileDescriptor &other)
Copies the Unix file descriptor from the other QDBusUnixFileDescriptor object.
QDBusUnixFileDescriptorPrivate(const QDBusUnixFileDescriptorPrivate &other)
bool isValid() const
Returns true if this Unix file descriptor is valid.
The QSharedData class is a base class for shared data objects.
void detach()
If the shared data object's reference count is greater than 1, this function creates a deep copy of t...
int takeFileDescriptor()
Extracts the Unix file descriptor from the QDBusUnixFileDescriptor object and transfers ownership...
int fileDescriptor() const
Returns the Unix file descriptor contained by this QDBusUnixFileDescriptor object.
void giveFileDescriptor(int fileDescriptor)
Sets the Unix file descriptor to fileDescriptor without copying.
~QExplicitlySharedDataPointer()
Decrements the reference count of the shared data object.
int fetchAndStoreRelaxed(int newValue)
Atomic fetch-and-store.
static int qt_safe_dup(int oldfd, int atleast=0, int flags=FD_CLOEXEC)