Skip to content

Commit

Permalink
Conditionally compile netutils.h code only in Qt4 build.
Browse files Browse the repository at this point in the history
netutils.h uses HTTP APIs that are gone in Qt5.
  • Loading branch information
daniel-kristjansson authored and jyavenard committed Mar 8, 2013
1 parent 3886b6a commit cef92bf
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion mythtv/programs/mythbackend/internetContent.cpp
Expand Up @@ -23,9 +23,12 @@
#include "mythdirs.h"

#include "rssparse.h"
#include "netutils.h"
#include "netgrabbermanager.h"

#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
#include "netutils.h"
#endif

/////////////////////////////////////////////////////////////////////////////
//
/////////////////////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -139,6 +142,7 @@ void InternetContent::GetInternetSearch( HTTPRequest *pRequest )
"Command: %1 -p %2 -S '%3'")
.arg(command).arg(pagenum).arg(query));

#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
Search *search = new Search();
QEventLoop loop;

Expand All @@ -161,6 +165,9 @@ void InternetContent::GetInternetSearch( HTTPRequest *pRequest )
return;

pRequest->FormatRawResponse( ret.toString() );
#else
#warning InternetContent::GetInternetSearch() not yet ported to Qt5
#endif
}

/////////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit cef92bf

Please sign in to comment.