doc: update dbus sources for clangqdoc
Changed some uses of Q_QDOC to Q_CLANG_QDOC; eliminated some uses of Q_QDOC; correct some function signatures used for qdoc; added docs for swap() functions. Change-Id: I0d3c62d462bd3b10fd35d411bdfb93d952e6423d Reviewed-by: Martin Smith <martin.smith@qt.io>
This commit is contained in:
parent
f4ad5ede58
commit
a942721edc
@ -1374,6 +1374,12 @@ QDBusArgument &operator<<(QDBusArgument &a, const QLineF &line)
|
||||
}
|
||||
#endif
|
||||
|
||||
/*!
|
||||
\fn void QDBusArgument::swap(QDBusArgument &other)
|
||||
|
||||
Swaps this QDBusArgument instance with \a other.
|
||||
*/
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif // QT_NO_DBUS
|
||||
|
@ -1272,6 +1272,12 @@ QByteArray QDBusConnection::localMachineId()
|
||||
When using BlockWithGui, applications must be prepared for reentrancy in any function.
|
||||
*/
|
||||
|
||||
/*!
|
||||
\fn void QDBusConnection::swap(QDBusConnection &other)
|
||||
|
||||
Swaps this QDBusConnection instance with \a other.
|
||||
*/
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
|
@ -409,6 +409,12 @@ QDebug operator<<(QDebug dbg, const QDBusError &msg)
|
||||
}
|
||||
#endif
|
||||
|
||||
/*!
|
||||
\fn void QDBusError::swap(QDBusError &other)
|
||||
|
||||
Swaps this QDBusError instance with \a other.
|
||||
*/
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif // QT_NO_DBUS
|
||||
|
@ -218,6 +218,24 @@ void QDBusSignature::doCheck()
|
||||
\sa signature()
|
||||
*/
|
||||
|
||||
/*!
|
||||
\fn void QDBusObjectPath::swap(QDBusObjectPath &other)
|
||||
|
||||
Swaps this QDBusObjectPath instance with \a other.
|
||||
*/
|
||||
|
||||
/*!
|
||||
\fn void QDBusSignature::swap(QDBusSignature &other)
|
||||
|
||||
Swaps this QDBusSignature instance with \a other.
|
||||
*/
|
||||
|
||||
/*!
|
||||
\fn void QDBusVariant::swap(QDBusVariant &other)
|
||||
|
||||
Swaps this QDBusVariant instance with \a other.
|
||||
*/
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif // QT_NO_DBUS
|
||||
|
@ -777,16 +777,6 @@ QDBusMessage::MessageType QDBusMessage::type() const
|
||||
return InvalidMessage;
|
||||
}
|
||||
|
||||
/*!
|
||||
Sends the message without waiting for a reply. This is suitable
|
||||
for errors, signals, and return values as well as calls whose
|
||||
return values are not necessary.
|
||||
|
||||
Returns \c true if the message was queued successfully;
|
||||
otherwise returns \c false.
|
||||
|
||||
\sa QDBusConnection::send()
|
||||
*/
|
||||
#ifndef QT_NO_DEBUG_STREAM
|
||||
static QDebug operator<<(QDebug dbg, QDBusMessage::MessageType t)
|
||||
{
|
||||
@ -839,6 +829,12 @@ QDebug operator<<(QDebug dbg, const QDBusMessage &msg)
|
||||
}
|
||||
#endif
|
||||
|
||||
/*!
|
||||
\fn void QDBusMessage::swap(QDBusMessage &other)
|
||||
|
||||
Swaps this QDBusMessage instance with \a other.
|
||||
*/
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif // QT_NO_DBUS
|
||||
|
@ -414,7 +414,7 @@ QDBusMessage QDBusPendingCall::reply() const
|
||||
}
|
||||
|
||||
#if 0
|
||||
/*!
|
||||
/*
|
||||
Sets the slot \a member in object \a target to be called when the
|
||||
reply arrives. The slot's parameter list must match the reply
|
||||
message's arguments for it to be called.
|
||||
|
@ -111,7 +111,7 @@ namespace QDBusPendingReplyTypes {
|
||||
template<typename T1 = void, typename T2 = void, typename T3 = void, typename T4 = void,
|
||||
typename T5 = void, typename T6 = void, typename T7 = void, typename T8 = void>
|
||||
class QDBusPendingReply:
|
||||
#ifdef Q_QDOC
|
||||
#ifdef Q_CLANG_QDOC
|
||||
public QDBusPendingCall
|
||||
#else
|
||||
public QDBusPendingReplyData
|
||||
@ -144,25 +144,12 @@ public:
|
||||
|
||||
inline int count() const { return Count; }
|
||||
|
||||
#if defined(Q_QDOC)
|
||||
#if defined(Q_CLANG_QDOC)
|
||||
QVariant argumentAt(int index) const;
|
||||
#else
|
||||
using QDBusPendingReplyData::argumentAt;
|
||||
#endif
|
||||
|
||||
#if defined(Q_QDOC)
|
||||
bool isFinished() const;
|
||||
void waitForFinished();
|
||||
|
||||
bool isValid() const;
|
||||
bool isError() const;
|
||||
QDBusError error() const;
|
||||
QDBusMessage reply() const;
|
||||
|
||||
template<int Index> inline Type argumentAt() const;
|
||||
inline T1 value() const;
|
||||
inline operator T1() const;
|
||||
#else
|
||||
template<int Index> inline
|
||||
const typename Select<Index>::Type argumentAt() const
|
||||
{
|
||||
@ -171,6 +158,18 @@ public:
|
||||
return qdbus_cast<ResultType>(argumentAt(Index), 0);
|
||||
}
|
||||
|
||||
#if defined(Q_CLANG_QDOC)
|
||||
bool isFinished() const;
|
||||
void waitForFinished();
|
||||
|
||||
bool isValid() const;
|
||||
bool isError() const;
|
||||
QDBusError error() const;
|
||||
QDBusMessage reply() const;
|
||||
|
||||
inline T1 value() const;
|
||||
inline operator T1() const;
|
||||
#else
|
||||
inline typename Select<0>::Type value() const
|
||||
{
|
||||
return argumentAt<0>();
|
||||
|
Loading…
Reference in New Issue
Block a user