From 12853c43cb5ff275d7313ed0b3c28e585e2131d9 Mon Sep 17 00:00:00 2001 From: APTX Date: Mon, 2 Jan 2012 18:30:25 +0100 Subject: [PATCH] Add newVersionAvailable signal. --- client.cpp | 3 +++ client.h | 1 + 2 files changed, 4 insertions(+) diff --git a/client.cpp b/client.cpp index 38d213b..4f042f8 100644 --- a/client.cpp +++ b/client.cpp @@ -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 diff --git a/client.h b/client.h index 78e7781..e09d9ff 100644 --- a/client.h +++ b/client.h @@ -95,6 +95,7 @@ public slots: void cancel(AbstractReply *command); signals: + void newVersionAvailable(); void startConnecting(); void connected(); -- 2.52.0