QDebug NetworkManager::operator <<(QDebug dbg, const NetworkManager::PppSetting &setting) { dbg.nospace() << "type: " << setting.typeAsString(setting.type()) << '\n'; dbg.nospace() << "initialized: " << !setting.isNull() << '\n'; dbg.nospace() << NM_SETTING_PPP_NOAUTH << ": " << setting.noAuth() << '\n'; dbg.nospace() << NM_SETTING_PPP_REFUSE_EAP << ": " << setting.refuseEap() << '\n'; dbg.nospace() << NM_SETTING_PPP_REFUSE_PAP << ": " << setting.refusePap() << '\n'; dbg.nospace() << NM_SETTING_PPP_REFUSE_CHAP << ": " << setting.refuseChap() << '\n'; dbg.nospace() << NM_SETTING_PPP_REFUSE_MSCHAP << ": " << setting.refuseMschap() << '\n'; dbg.nospace() << NM_SETTING_PPP_REFUSE_MSCHAPV2 << ": " << setting.refuseMschapv2() << '\n'; dbg.nospace() << NM_SETTING_PPP_NOBSDCOMP << ": " << setting.noBsdComp() << '\n'; dbg.nospace() << NM_SETTING_PPP_NODEFLATE << ": " << setting.noDeflate() << '\n'; dbg.nospace() << NM_SETTING_PPP_NO_VJ_COMP << ": " << setting.noVjComp() << '\n'; dbg.nospace() << NM_SETTING_PPP_REQUIRE_MPPE << ": " << setting.requireMppe() << '\n'; dbg.nospace() << NM_SETTING_PPP_REQUIRE_MPPE_128 << ": " << setting.requireMppe128() << '\n'; dbg.nospace() << NM_SETTING_PPP_MPPE_STATEFUL << ": " << setting.mppeStateful() << '\n'; dbg.nospace() << NM_SETTING_PPP_CRTSCTS << ": " << setting.cRtsCts() << '\n'; dbg.nospace() << NM_SETTING_PPP_BAUD << ": " << setting.baud() << '\n'; dbg.nospace() << NM_SETTING_PPP_MRU << ": " << setting.mru() << '\n'; dbg.nospace() << NM_SETTING_PPP_MTU << ": " << setting.mtu() << '\n'; dbg.nospace() << NM_SETTING_PPP_LCP_ECHO_FAILURE << ": " << setting.lcpEchoFailure() << '\n'; dbg.nospace() << NM_SETTING_PPP_LCP_ECHO_INTERVAL << ": " << setting.lcpEchoInterval() << '\n'; return dbg.maybeSpace(); }
QDebug operator<<(QDebug dbg, const NodeList_sV &list) { for (int i = 0; i < list.size(); i++) { dbg.nospace() << i << ": " << list.at(i) << " "; } return dbg.maybeSpace(); }
QDebug operator<<(QDebug dbg, QGithubMarkdown::Token::Type type) { switch (type) { case QGithubMarkdown::Token::Character: dbg.nospace() << "Character"; break; case QGithubMarkdown::Token::NewLine: dbg.nospace() << "NewLine"; break; case QGithubMarkdown::Token::HeadingStart: dbg.nospace() << "HeadingStart"; break; case QGithubMarkdown::Token::QuoteStart: dbg.nospace() << "QuoteStart"; break; case QGithubMarkdown::Token::CodeDelimiter: dbg.nospace() << "CodeDelimiter"; break; case QGithubMarkdown::Token::InlineCodeDelimiter: dbg.nospace() << "InlineCodeDelimiter"; break; case QGithubMarkdown::Token::Bold: dbg.nospace() << "Bold"; break; case QGithubMarkdown::Token::Italic: dbg.nospace() << "Italic"; break; case QGithubMarkdown::Token::ImageStart: dbg.nospace() << "ImageStart"; break; case QGithubMarkdown::Token::LinkStart: dbg.nospace() << "LinkStart"; break; case QGithubMarkdown::Token::LinkMiddle: dbg.nospace() << "LinkMiddle"; break; case QGithubMarkdown::Token::LinkEnd: dbg.nospace() << "LinkEnd"; break; case QGithubMarkdown::Token::UnorderedListStart: dbg.nospace() << "UnorderedListStart"; break; case QGithubMarkdown::Token::OrderedListStart: dbg.nospace() << "OrderedListStart"; break; case QGithubMarkdown::Token::HtmlTagOpen: dbg.nospace() << "HtmlTagOpen"; break; case QGithubMarkdown::Token::HtmlTagClose: dbg.nospace() << "HtmlTagClose"; break; case QGithubMarkdown::Token::Invalid: dbg.nospace() << "Invalid"; break; case QGithubMarkdown::Token::EOD: dbg.nospace() << "EOD"; break; } return dbg.maybeSpace(); }
QDebug operator<<(QDebug dbg, const Palette &palette) { dbg.nospace() << "Palette(" << palette.color() << ", " << palette.shift() << ")"; return dbg.maybeSpace(); }
QDebug operator<<(QDebug debug, const ctkPlugin& plugin) { debug.nospace() << "ctkPlugin[" << "id=" << plugin.getPluginId() << ", state=" << plugin.getState() << ", loc=" << plugin.getLocation() << ", symName=" << plugin.getSymbolicName() << "]"; return debug.maybeSpace(); }
QDebug operator<<(QDebug debug, const ctkPluginEvent& event) { if (event.isNull()) return debug << "NONE"; QSharedPointer<ctkPlugin> p = event.getPlugin(); debug.nospace() << event.getType() << " #" << p->getPluginId() << " (" << p->getLocation() << ")"; return debug.maybeSpace(); }
QDebug operator<<(QDebug dbg, const ctkConfigurationEvent& event) { if (event.isNull()) return dbg << "NONE"; dbg.nospace() << event.getType() << (event.getFactoryPid().isEmpty() ? " " : event.getFactoryPid() + ", ") << "pid=" << event.getPid(); return dbg.maybeSpace(); }
QDebug operator<<( QDebug dbg, const QgsInterval &interval ) { if ( !interval.isValid() ) dbg.nospace() << "QgsInterval()"; else dbg.nospace() << "QgsInterval(" << interval.seconds() << ")"; return dbg.maybeSpace(); }
QDebug operator<<(QDebug dbg, const QContact& contact) { dbg.nospace() << "QContact(" << contact.id() << ")"; foreach (const QContactDetail& detail, contact.details()) { dbg.space() << '\n' << detail; } return dbg.maybeSpace(); }
/*! * \internal */ QDebug operator<<(QDebug dbg, const CanvasBuffer *buffer) { if (buffer) dbg.nospace() << "Canvas3DBuffer("<< buffer->name() <<", id:" << buffer->m_bufferId << ")"; else dbg.nospace() << "Canvas3DBuffer("<< ((void*) buffer) <<")"; return dbg.maybeSpace(); }
QDebug operator<<(QDebug dbg, const CanvasTexture *texture) { if (texture) dbg.nospace() << "Canvas3DTexture("<< ((void*) texture) << ", name:" << texture->name() << ", id:" << texture->textureId() << ")"; else dbg.nospace() << "Canvas3DTexture("<< ((void*) texture) <<")"; return dbg.maybeSpace(); }
QDebug operator<<(QDebug dbg, const CoverInfo& info) { return dbg.maybeSpace() << QString("CoverInfo(%1,%2,%3,%4,%5,%6)") .arg(typeToString(info.type)) .arg(sourceToString(info.source)) .arg(info.coverLocation) .arg(QString::number(info.hash)) .arg(info.trackLocation); }
QDebug operator<<(QDebug debug, const Alert &alert) { if (alert.isValid()) { debug << "Snore::Alert(" << alert.name() << ")" ; } else { debug << "Snore::Alert(0x00)" ; } return debug.maybeSpace(); }
QDebug operator<<(QDebug dbg, const EntityInstance &instance) { dbg.nospace()<<"\r\n{"; foreach(int p, instance.properties()){ dbg.nospace()<<p<<":"<<instance.get(p)<<";\r\n"; } dbg.nospace()<<"}"; return dbg.maybeSpace(); }
QDebug operator<< ( QDebug dbg, const SipInfo& info ) { if( !info.isValid() ) dbg.nospace() << "info is invalid"; else dbg.nospace() << info.toJson(); return dbg.maybeSpace(); }
QDebug operator<<(QDebug dbg, const ctkPluginDatabaseException& exc) { dbg << "ctkPluginDatabaseException:" << exc.what(); const char* causeMsg = exc.getCause().what(); if (causeMsg) dbg << " Caused by:" << causeMsg; return dbg.maybeSpace(); }
/*! \relates QOrganizerCollectionId Outputs \a id to the debug stream \a dbg. */ QDebug operator<<(QDebug dbg, const QOrganizerCollectionId &id) { dbg.nospace() << "QOrganizerCollectionId("; if (id.isNull()) dbg.nospace() << "(null))"; else id.d->debugStreamOut(dbg) << ")"; return dbg.maybeSpace(); }
QDebug NetworkManager::operator <<(QDebug dbg, const NetworkManager::BluetoothSetting &setting) { dbg.nospace() << "type: " << setting.typeAsString(setting.type()) << '\n'; dbg.nospace() << "initialized: " << !setting.isNull() << '\n'; dbg.nospace() << NM_SETTING_BLUETOOTH_BDADDR << ": " << setting.bluetoothAddress() << '\n'; dbg.nospace() << NM_SETTING_BLUETOOTH_TYPE << ": " << setting.profileType() << '\n'; return dbg.maybeSpace(); }
QDebug operator << (QDebug qd, const ItemInfo &info) { qd << "ItemInfo " << &info; qd << "\tTrack" << info.track; qd << "\tStart pos: " << info.startPos.toString(); qd << "\tEnd pos: " << info.endPos.toString(); qd << "\tCrop start: " << info.cropStart.toString(); qd << "\tCrop duration: " << info.cropDuration.toString(); return qd.maybeSpace(); }
/// Gives human-readable event type information. QDebug operator<<(QDebug str, const QEvent * ev) { static int eventEnumIndex = QEvent::staticMetaObject.indexOfEnumerator("Type"); str << "QEvent"; if (ev) { QString name = QEvent::staticMetaObject.enumerator(eventEnumIndex).valueToKey(ev->type()); if (!name.isEmpty()) str << name; else str << ev->type(); } else { str << (void*)ev; } return str.maybeSpace(); }
QDebug operator<<(QDebug dbg, const ctkPluginFrameworkEvent& event) { if (event.isNull()) return dbg << "NONE"; ctkPlugin* p = event.getPlugin(); QString err = event.getErrorString(); dbg.nospace() << event.getType() << " #" << p->getPluginId() << " (" << p->getLocation() << ")" << (err.isEmpty() ? "" : " exception: ") << err; return dbg.maybeSpace(); }
/*! Streams the \a collection to the given debug stream \a dbg, and returns the stream. \since 1.1 */ QDebug operator<<(QDebug dbg, const QOrganizerCollection& collection) { dbg.nospace() << "QOrganizerCollection(id=" << collection.id(); QVariantMap metadata = collection.metaData(); QVariantMap::const_iterator it; for (it = metadata.constBegin(); it != metadata.constEnd(); ++it) { dbg.nospace() << ", " << it.key() << '=' << it.value(); } dbg.nospace() << ')'; return dbg.maybeSpace(); }
QDebug operator<<(QDebug dbg, const QVersitDocument& document) { dbg.nospace() << "QVersitDocument(" << document.type() << ", " << document.componentType() << ')'; foreach (const QVersitProperty& property, document.properties()) { dbg.space() << '\n' << property; } foreach (const QVersitDocument& nested, document.subDocuments()) { dbg.space() << '\n' << nested; } return dbg.maybeSpace(); }
QDebug operator<<(QDebug dbg, const QContactDetail& detail) { dbg.nospace() << "QContactDetail(name=" << detail.definitionName() << ", key=" << detail.key(); QVariantMap fields = detail.variantValues(); QVariantMap::const_iterator it; for (it = fields.constBegin(); it != fields.constEnd(); ++it) { dbg.nospace() << ", " << it.key() << '=' << it.value(); } dbg.nospace() << ')'; return dbg.maybeSpace(); }
//! [custom type streaming operator] QDebug operator<<(QDebug dbg, const Message &message) { QStringList pieces = message.body().split("\r\n", QString::SkipEmptyParts); if (pieces.isEmpty()) dbg.nospace() << "Message()"; else if (pieces.size() == 1) dbg.nospace() << "Message(" << pieces.first() << ")"; else dbg.nospace() << "Message(" << pieces.first() << " ...)"; return dbg.maybeSpace(); }
QDebug operator<<(QDebug dbg, const CanvasContextAttributes &attribs) { dbg.nospace() << "Canvas3DContextAttributes(\n alpha:"<< attribs.m_alpha << "\n depth:" << attribs.m_depth << "\n m_stencil:" << attribs.m_stencil << "\n antialias:"<< attribs.m_antialias << "\n premultipliedAlpha:" << attribs.m_premultipliedAlpha << "\n preserveDrawingBuffer:" << attribs.m_preserveDrawingBuffer << "\n preferLowPowerToHighPerformance:" << attribs.m_preferLowPowerToHighPerformance << "\n failIfMajorPerformanceCaveat:" << attribs.m_failIfMajorPerformanceCaveat << ")"; return dbg.maybeSpace(); }
//---------------------------------------------------------------------------- QDebug operator<<(QDebug dbg, const ctkServiceEvent& event) { if (event.isNull()) return dbg << "NONE"; ctkServiceReference sr = event.getServiceReference(); // Some events will not have a service reference qlonglong sid = sr.getProperty(ctkPluginConstants::SERVICE_ID).toLongLong(); QStringList classes = sr.getProperty(ctkPluginConstants::OBJECTCLASS).toStringList(); dbg.nospace() << event.getType() << " " << sid << " objectClass=" << classes; return dbg.maybeSpace(); }
QDebug NetworkManager::operator <<(QDebug dbg, const NetworkManager::SerialSetting &setting) { dbg.nospace() << "type: " << setting.typeAsString(setting.type()) << '\n'; dbg.nospace() << "initialized: " << !setting.isNull() << '\n'; dbg.nospace() << NM_SETTING_SERIAL_BAUD << ": " << setting.baud() << '\n'; dbg.nospace() << NM_SETTING_SERIAL_BITS << ": " << setting.bits() << '\n'; dbg.nospace() << NM_SETTING_SERIAL_PARITY << ": " << setting.parity() << '\n'; dbg.nospace() << NM_SETTING_SERIAL_STOPBITS << ": " << setting.stopbits() << '\n'; dbg.nospace() << NM_SETTING_SERIAL_SEND_DELAY << ": " << setting.sendDelay() << '\n'; return dbg.maybeSpace(); }
QDebug NetworkManager::operator <<(QDebug dbg, const NetworkManager::VlanSetting &setting) { dbg.nospace() << "type: " << setting.typeAsString(setting.type()) << '\n'; dbg.nospace() << "initialized: " << !setting.isNull() << '\n'; dbg.nospace() << NM_SETTING_VLAN_INTERFACE_NAME << ": " << setting.interfaceName() << '\n'; dbg.nospace() << NM_SETTING_VLAN_PARENT << ": " << setting.parent() << '\n'; dbg.nospace() << NM_SETTING_VLAN_ID << ": " << setting.id() << '\n'; dbg.nospace() << NM_SETTING_VLAN_FLAGS << ": " << setting.flags() << '\n'; dbg.nospace() << NM_SETTING_VLAN_INGRESS_PRIORITY_MAP << ": " << setting.ingressPriorityMap() << '\n'; dbg.nospace() << NM_SETTING_VLAN_EGRESS_PRIORITY_MAP << ": " << setting.egressPriorityMap() << '\n'; return dbg.maybeSpace(); }
QDebug operator<<(QDebug dbg, const TvShowEpisode &episode) { QString nl = "\n"; QString out; out.append("TvShowEpisode").append(nl); out.append(QString(" Files: ").append(nl)); foreach (const QString &file, episode.files()) out.append(QString(" %1").arg(file).append(nl)); out.append(QString(" Name: ").append(episode.name()).append(nl)); out.append(QString(" ShowTitle: ").append(episode.showTitle()).append(nl)); out.append(QString(" Season: %1").arg(episode.season()).append(nl)); out.append(QString(" Episode: %1").arg(episode.episode()).append(nl)); out.append(QString(" Rating: %1").arg(episode.rating()).append(nl)); out.append(QString(" FirstAired: ").append(episode.firstAired().toString("yyyy-MM-dd")).append(nl)); out.append(QString(" LastPlayed: ").append(episode.lastPlayed().toString("yyyy-MM-dd")).append(nl)); out.append(QString(" Playcount: %1%2").arg(episode.playCount()).arg(nl)); out.append(QString(" Certification: ").append(episode.certification()).append(nl)); out.append(QString(" Overview: ").append(episode.overview())).append(nl); foreach (const QString &writer, episode.writers()) out.append(QString(" Writer: ").append(writer)).append(nl); foreach (const QString &director, episode.directors()) out.append(QString(" Director: ").append(director)).append(nl); /* foreach (const QString &studio, movie.studios()) out.append(QString(" Studio: ").append(studio)).append(nl); foreach (const QString &country, movie.countries()) out.append(QString(" Country: ").append(country)).append(nl); foreach (const Actor &actor, movie.actors()) { out.append(QString(" Actor: ").append(nl)); out.append(QString(" Name: ").append(actor.name)).append(nl); out.append(QString(" Role: ").append(actor.role)).append(nl); out.append(QString(" Thumb: ").append(actor.thumb)).append(nl); } foreach (const Poster &poster, movie.posters()) { out.append(QString(" Poster: ")).append(nl); out.append(QString(" ID: ").append(poster.id)).append(nl); out.append(QString(" Original: ").append(poster.originalUrl.toString())).append(nl); out.append(QString(" Thumb: ").append(poster.thumbUrl.toString())).append(nl); } foreach (const Poster &backdrop, movie.backdrops()) { out.append(QString(" Backdrop: ")).append(nl); out.append(QString(" ID: ").append(backdrop.id)).append(nl); out.append(QString(" Original: ").append(backdrop.originalUrl.toString())).append(nl); out.append(QString(" Thumb: ").append(backdrop.thumbUrl.toString())).append(nl); } */ dbg.nospace() << out; return dbg.maybeSpace(); }