void PasteBinDotComProtocol::pasteFinished() { if (m_pasteReply->error()) qWarning("%s protocol error: %s", PROTOCOL_NAME, qPrintable(m_pasteReply->errorString())); else emit pasteDone(QString::fromLatin1(m_pasteReply->readAll())); m_pasteReply->deleteLater(); m_pasteReply = 0; }
void LepheProtocol::pasteFinished() { if (_pasteReply->error()) qWarning("%s protocol error: %s", PROTOCOL_NAME, qPrintable(_pasteReply->errorString())); else emit pasteDone(QString::fromLatin1(_pasteReply->readAll())); _pasteReply->deleteLater(); _pasteReply = NULL; }
void PasteBinDotComProtocol::pasteFinished() { if (m_pasteReply->error()) { qWarning("Pastebin.com protocol error: %s", qPrintable(m_pasteReply->errorString())); } else { emit pasteDone(QString::fromAscii(m_pasteReply->readAll())); } m_pasteReply->deleteLater(); m_pasteReply = 0; }
void KdePasteProtocol::pasteFinished() { if (m_pasteReply->error()) { qWarning("%s protocol error: %s", qPrintable(protocolName()),qPrintable(m_pasteReply->errorString())); } else { // Parse id from '<result><id>143204</id><hash></hash></result>' // No useful error reports have been observed. const QString id = parseElement(m_pasteReply, QLatin1String("id")); if (id.isEmpty()) { qWarning("%s protocol error: Could not send entry.", qPrintable(protocolName())); } else { emit pasteDone(QLatin1String(hostUrlC) + id); } } m_pasteReply->deleteLater(); m_pasteReply = 0; }