QDebug operator<<(QDebug s, const QNetworkCookie &cookie) { QDebugStateSaver saver(s); s.resetFormat().nospace(); s << "QNetworkCookie(" << cookie.toRawForm(QNetworkCookie::Full) << ')'; return s; }
QDebug operator<<(QDebug d, const mpq_rational& r) { d.nospace(); d.noquote(); stringstream s; s << r; d << QString::fromStdString(s.str()); return d.resetFormat(); }
QDebug operator<<(QDebug debug, const QSslCipher &cipher) { QDebugStateSaver saver(debug); debug.resetFormat().nospace().noquote(); debug << "QSslCipher(name=" << cipher.name() << ", bits=" << cipher.usedBits() << ", proto=" << cipher.protocolString() << ')'; return debug; }
QDebug operator<<(QDebug debug, const QSslKey &key) { QDebugStateSaver saver(debug); debug.resetFormat().nospace(); debug << "QSslKey(" << (key.type() == QSsl::PublicKey ? "PublicKey" : "PrivateKey") << ", " << (key.algorithm() == QSsl::Opaque ? "OPAQUE" : (key.algorithm() == QSsl::Rsa ? "RSA" : ((key.algorithm() == QSsl::Dsa) ? "DSA" : "EC"))) << ", " << key.length() << ')'; return debug; }
QDebug operator<<(QDebug debug, const QSslCertificate &certificate) { QDebugStateSaver saver(debug); debug.resetFormat().nospace(); debug << "QSslCertificate(" << certificate.version() << ", " << certificate.serialNumber() << ", " << certificate.digest().toBase64() << ", " << certificate.issuerInfo(QSslCertificate::Organization) << ", " << certificate.subjectInfo(QSslCertificate::Organization) << ", " << certificate.subjectAlternativeNames() #ifndef QT_NO_DATESTRING << ", " << certificate.effectiveDate() << ", " << certificate.expiryDate() #endif << ')'; return debug; }