From: APTX Date: Mon, 2 Jan 2012 17:30:25 +0000 (+0100) Subject: Add newVersionAvailable signal. X-Git-Url: https://gitweb.aptx.org/?a=commitdiff_plain;h=12853c43cb5ff275d7313ed0b3c28e585e2131d9;p=anidbudpclient.git Add newVersionAvailable signal. --- 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();