1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-20 04:41:36 +02:00

Fix cross compiling/linking once again: today's episode: scanmanager and sip_twitter.

This commit is contained in:
Dominik Schmidt
2011-02-15 05:51:24 +01:00
parent 10c59d6f9e
commit 053fa4220c
6 changed files with 21 additions and 12 deletions

View File

@@ -12,6 +12,7 @@ add_definitions( -DQT_SHARED )
if(WIN32)
set(PLATFORM_SPECIFIC_LIBS "ws2_32.dll" "advapi32.dll" )
add_definitions( -DQTWEETLIB_MAKEDLL )
endif(WIN32)
set(TOMAHAWK_QTWEETLIB_SOURCES

View File

@@ -40,8 +40,11 @@ class QTWEETLIBSHARED_EXPORT OAuth : public QObject
public:
OAuth(QObject *parent = 0);
OAuth(const QByteArray& consumerKey, const QByteArray& consumerSecret, QObject *parent = 0);
enum HttpMethod {GET, POST, PUT, DELETE};
#undef GET
#undef POST
#undef PUT
#undef DELETE
enum HttpMethod {GET, POST, PUT, DELETE};
void parseTokens(const QByteArray& response);
QByteArray generateAuthorizationHeader(const QUrl& url, HttpMethod method);