]> Some of my projects - anidbudpclient.git/commitdiff
Add newVersionAvailable signal.
authorAPTX <marek321@gmail.com>
Mon, 2 Jan 2012 17:30:25 +0000 (18:30 +0100)
committerAPTX <marek321@gmail.com>
Mon, 2 Jan 2012 17:30:25 +0000 (18:30 +0100)
client.cpp
client.h

index 38d213b7355f1577a2905ba6bfc3a813a61a3ad7..4f042f890690051cc5644b4d9cc6bab3ae5344d8 100644 (file)
@@ -584,6 +584,9 @@ qDebug() << "Starting replyTimeoutTimer" << newTimeout;
                // Requeue command and reauthenticate if not logged in.
                switch (replyCode)
                {
+                       case LOGIN_ACCEPTED_NEW_VER:
+                               emit newVersionAvailable();
+                       break;
                        case LOGIN_FIRST:
                        case INVALID_SESSION:
 #ifdef ANIDBUDPCLIENT_CLIENT_MISC_DEBUG
index 78e77812a763b8bda022c42b762aef5002975cf2..e09d9ffa1958a0256aa4c031ecdaec3e16b4d186 100644 (file)
--- a/client.h
+++ b/client.h
@@ -95,6 +95,7 @@ public slots:
        void cancel(AbstractReply *command);
 
 signals:
+       void newVersionAvailable();
 
        void startConnecting();
        void connected();