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

index 38d213b..4f042f8 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 78e7781..e09d9ff 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();