]> Some of my projects - anidbudpclient.git/commitdiff
Make RawReply emit replyReady. proxy
authorAPTX <marek321@gmail.com>
Thu, 10 Feb 2011 16:34:35 +0000 (17:34 +0100)
committerAPTX <marek321@gmail.com>
Thu, 10 Feb 2011 16:34:35 +0000 (17:34 +0100)
rawcommand.cpp
rawcommand.h

index a442dba1b6667acdd8fa1022d27af9984acb35c6..673ec92ce5704bd10f15874900f3da19cfef5fc4 100644 (file)
@@ -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
index 3d822393bfa2c73ca6b89cf13b571b9e3d21d28a..e699dde03f66451d3f74dfecbe57d626f39da264 100644 (file)
@@ -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