diff --git a/mythplugins/mythgallery/mythgallery/iconview.cpp b/mythplugins/mythgallery/mythgallery/iconview.cpp index 53a6bb82d39..b0df9b7f169 100644 --- a/mythplugins/mythgallery/mythgallery/iconview.cpp +++ b/mythplugins/mythgallery/mythgallery/iconview.cpp @@ -37,7 +37,6 @@ using namespace std; // MythTV headers #include #include -#include #include #include #include diff --git a/mythplugins/mythmusic/mythmusic/streamview.cpp b/mythplugins/mythmusic/mythmusic/streamview.cpp index cb938e4a841..1cda127a167 100644 --- a/mythplugins/mythmusic/mythmusic/streamview.cpp +++ b/mythplugins/mythmusic/mythmusic/streamview.cpp @@ -16,7 +16,6 @@ #include #include #include -#include #include #include #include diff --git a/mythtv/libs/libmythmetadata/metadataimagedownload.cpp b/mythtv/libs/libmythmetadata/metadataimagedownload.cpp index c7868a14acc..70888843bb3 100644 --- a/mythtv/libs/libmythmetadata/metadataimagedownload.cpp +++ b/mythtv/libs/libmythmetadata/metadataimagedownload.cpp @@ -9,7 +9,6 @@ #include "mythcorecontext.h" #include "mythuihelper.h" #include "mythdirs.h" -#include "httpcomms.h" #include "storagegroup.h" #include "metadataimagedownload.h" #include "remotefile.h" diff --git a/mythtv/libs/libmythupnp/mythxmlclient.h b/mythtv/libs/libmythupnp/mythxmlclient.h index 8afb6249954..0d85ef057e6 100644 --- a/mythtv/libs/libmythupnp/mythxmlclient.h +++ b/mythtv/libs/libmythupnp/mythxmlclient.h @@ -15,8 +15,6 @@ #include -#include "httpcomms.h" - #include "upnpexp.h" #include "mythdbparams.h" diff --git a/mythtv/libs/libmythupnp/soapclient.cpp b/mythtv/libs/libmythupnp/soapclient.cpp index eddce48ee77..309dd6c6d7d 100644 --- a/mythtv/libs/libmythupnp/soapclient.cpp +++ b/mythtv/libs/libmythupnp/soapclient.cpp @@ -18,6 +18,10 @@ #include "httprequest.h" #include "upnp.h" +#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0) +#include "httpcomms.h" +#endif + #define LOC QString("SOAPClient: ") /** \brief Full SOAPClient constructor. After constructing the client @@ -201,11 +205,13 @@ QDomDocument SOAPClient::SendSOAPRequest(const QString &sMethod, // Add appropriate headers // -------------------------------------------------------------- +#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0) QHttpRequestHeader header("POST", sMethod, 1, 0); header.setValue("CONTENT-TYPE", "text/xml; charset=\"utf-8\"" ); header.setValue("SOAPACTION", QString("\"%1#%2\"").arg(m_sNamespace).arg(sMethod)); +#endif // -------------------------------------------------------------- // Build request payload @@ -246,6 +252,7 @@ QDomDocument SOAPClient::SendSOAPRequest(const QString &sMethod, QBuffer buff(&aBuffer); +#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0) LOG(VB_UPNP, LOG_DEBUG, QString("SOAPClient(%1) sending:\n").arg(url.toString()) + header.toString() + QString("\n%1\n").arg(aBuffer.constData())); @@ -263,6 +270,10 @@ QDomDocument SOAPClient::SendSOAPRequest(const QString &sMethod, QString() // userAgent, UPnP/1.0 very strict on // format if set ); +#else + #warning This needs to be ported to Qt5 + QString sXml("This needs to be ported to Qt5"); +#endif // -------------------------------------------------------------- // Parse response diff --git a/mythtv/libs/libmythupnp/soapclient.h b/mythtv/libs/libmythupnp/soapclient.h index 6b35a91e303..097b35e1101 100644 --- a/mythtv/libs/libmythupnp/soapclient.h +++ b/mythtv/libs/libmythupnp/soapclient.h @@ -17,7 +17,6 @@ #include #include -#include "httpcomms.h" #include "upnputil.h" #include "upnpexp.h"