From ed1c31e2c4545f3d465707d5fdddfa5b8a988d05 Mon Sep 17 00:00:00 2001 From: APTX Date: Thu, 10 Feb 2011 17:34:35 +0100 Subject: [PATCH] Make RawReply emit replyReady. --- rawcommand.cpp | 9 +++++++++ rawcommand.h | 1 + 2 files changed, 10 insertions(+) diff --git a/rawcommand.cpp b/rawcommand.cpp index a442dba..673ec92 100644 --- a/rawcommand.cpp +++ b/rawcommand.cpp @@ -33,4 +33,13 @@ Command RawCommand::rawCommand() const return Command(m_command, QVariantMap()); } +void RawReply::setRawReply(ReplyCode replyCode, const QString &reply) +{ + AbstractReply::setRawReply(replyCode, reply); + if (200 <= replyCode && replyCode >= 299) + emit replyReady(true); + else + emit replyReady(false); +} + } // namespace AniDBUdpClient diff --git a/rawcommand.h b/rawcommand.h index 3d82239..e699dde 100644 --- a/rawcommand.h +++ b/rawcommand.h @@ -31,6 +31,7 @@ class ANIDBUDPCLIENTSHARED_EXPORT RawReply : public AbstractReply Q_OBJECT REPLY_DEFINITION_HELPER(Raw) public: + void setRawReply(ReplyCode replyCode, const QString &reply); }; } // namespace AniDBUdpClient -- 2.52.0