continue to operate, so code need not have compile-time checks for the
availability of this feature.
- On non-Unix systems, QDBusUnixFileDescriptor will always report an
- invalid state and QDBusUnixFileDescriptor::isSupported() will return
- false.
-
\sa QDBusConnection::ConnectionCapabilities, QDBusConnection::connectionCapabilities()
*/
return d ? d->fd.operator int() : -1;
}
-// qdoc documentation is generated on Unix
-
-/*!
- Returns true if Unix file descriptors are supported on this platform. In
- other words, this function returns true if this is a Unix platform.
-
- Note that QDBusUnixFileDescriptor continues to operate even if this
- function returns false. The only difference is that the
- QDBusUnixFileDescriptor objects will always be in the isValid() == false
- state and fileDescriptor() will always return -1. The class will not
- consume any operating system resources.
-*/
-bool QDBusUnixFileDescriptor::isSupported()
-{
- return true;
-}
-
/*!
Sets the file descriptor that this QDBusUnixFileDescriptor object holds
to a copy of \a fileDescriptor. The original file descriptor is not
void giveFileDescriptor(int fileDescriptor);
int takeFileDescriptor();
- static bool isSupported();
-
#if defined(Q_COMPILER_RVALUE_REFS)
QDBusUnixFileDescriptor(QDBusUnixFileDescriptor &&other) : d(static_cast<Data &&>(other.d))
{ }