From 55e8612f27e39171343b73e2202736d03042bf6d Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 24 Mar 2016 21:12:30 +0300 Subject: [PATCH] fixed QtCreator build --- Telegram/SourceFiles/mtproto/connection_auto.cpp | 4 ++-- Telegram/Telegram.pro | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/mtproto/connection_auto.cpp b/Telegram/SourceFiles/mtproto/connection_auto.cpp index 3723f495c3..74aa09baf9 100644 --- a/Telegram/SourceFiles/mtproto/connection_auto.cpp +++ b/Telegram/SourceFiles/mtproto/connection_auto.cpp @@ -255,7 +255,7 @@ void AutoConnection::requestFinished(QNetworkReply *reply) { void AutoConnection::socketPacket(const char *packet, uint32 length) { if (status == FinishedWork) return; - mtpBuffer data = TCPConnection::handleResponse(packet, length); + mtpBuffer data = AbstractTCPConnection::handleResponse(packet, length); if (data.size() == 1) { if (status == WaitingBoth) { status = WaitingHttp; @@ -326,7 +326,7 @@ QString AutoConnection::transport() const { void AutoConnection::socketError(QAbstractSocket::SocketError e) { if (status == FinishedWork) return; - TCPConnection::handleError(e, sock); + AbstractTCPConnection::handleError(e, sock); if (status == WaitingBoth) { status = WaitingHttp; } else if (status == HttpReady) { diff --git a/Telegram/Telegram.pro b/Telegram/Telegram.pro index b6242d3ed0..775839e3e8 100644 --- a/Telegram/Telegram.pro +++ b/Telegram/Telegram.pro @@ -117,6 +117,10 @@ SOURCES += \ ./SourceFiles/mtproto/facade.cpp \ ./SourceFiles/mtproto/auth_key.cpp \ ./SourceFiles/mtproto/connection.cpp \ + ./SourceFiles/mtproto/connection_abstract.cpp \ + ./SourceFiles/mtproto/connection_auto.cpp \ + ./SourceFiles/mtproto/connection_http.cpp \ + ./SourceFiles/mtproto/connection_tcp.cpp \ ./SourceFiles/mtproto/core_types.cpp \ ./SourceFiles/mtproto/dcenter.cpp \ ./SourceFiles/mtproto/file_download.cpp \ @@ -209,6 +213,10 @@ HEADERS += \ ./SourceFiles/mtproto/facade.h \ ./SourceFiles/mtproto/auth_key.h \ ./SourceFiles/mtproto/connection.h \ + ./SourceFiles/mtproto/connection_abstract.h \ + ./SourceFiles/mtproto/connection_auto.h \ + ./SourceFiles/mtproto/connection_http.h \ + ./SourceFiles/mtproto/connection_tcp.h \ ./SourceFiles/mtproto/core_types.h \ ./SourceFiles/mtproto/dcenter.h \ ./SourceFiles/mtproto/file_download.h \