From: APTX Date: Thu, 10 Feb 2011 16:34:35 +0000 (+0100) Subject: Make RawReply emit replyReady. X-Git-Url: https://gitweb.tyo.aptx.org/?a=commitdiff_plain;h=refs%2Fheads%2Fproxy;p=anidbudpclient.git Make RawReply emit replyReady. --- 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