Qt 4.8
Classes | Functions
qdbusmessage.h File Reference
#include <QtDBus/qdbusmacros.h>
#include <QtDBus/qdbuserror.h>
#include <QtCore/qlist.h>
#include <QtCore/qvariant.h>

Go to the source code of this file.

Classes

class  QDBusMessage
 The QDBusMessage class represents one message sent or received over the D-Bus bus. More...
 

Functions

Q_DBUS_EXPORT QDebug operator<< (QDebug, const QDBusMessage &)
 

Function Documentation

◆ operator<<()

Q_DBUS_EXPORT QDebug operator<< ( QDebug  ,
const QDBusMessage  
)

Definition at line 813 of file qdbusmessage.cpp.

Referenced by QDBusMessage::createErrorReply().

814 {
815  dbg.nospace() << "QDBusMessage(type=" << msg.type()
816  << ", service=" << msg.service();
817  if (msg.type() == QDBusMessage::MethodCallMessage ||
818  msg.type() == QDBusMessage::SignalMessage)
819  dbg.nospace() << ", path=" << msg.path()
820  << ", interface=" << msg.interface()
821  << ", member=" << msg.member();
822  if (msg.type() == QDBusMessage::ErrorMessage)
823  dbg.nospace() << ", error name=" << msg.errorName()
824  << ", error message=" << msg.errorMessage();
825  dbg.nospace() << ", signature=" << msg.signature()
826  << ", contents=(";
827  debugVariantList(dbg, msg.arguments());
828  dbg.nospace() << ") )";
829  return dbg.space();
830 }
static void debugVariantList(QDebug dbg, const QVariantList &list)