Changeset View
Changeset View
Standalone View
Standalone View
src/services/ampache/AmpacheAccountLogin.cpp
Show First 20 Lines • Show All 120 Lines • ▼ Show 20 Line(s) | 73 | { | |||
---|---|---|---|---|---|
121 | } | 121 | } | ||
122 | 122 | | |||
123 | query.addQueryItem( "timestamp", timestamp ); | 123 | query.addQueryItem( "timestamp", timestamp ); | ||
124 | query.addQueryItem( "auth", passPhrase ); | 124 | query.addQueryItem( "auth", passPhrase ); | ||
125 | url.setQuery( query ); | 125 | url.setQuery( query ); | ||
126 | 126 | | |||
127 | debug() << "Authenticating with string: " << url.url() << passPhrase; | 127 | debug() << "Authenticating with string: " << url.url() << passPhrase; | ||
128 | 128 | | |||
129 | // TODO: Amarok::Components::logger()->newProgressOperation( m_xmlDownloadJob, i18n( "Authenticating with Ampache" ) ); | 129 | // TODO: Amarok::Logger::newProgressOperation( m_xmlDownloadJob, i18n( "Authenticating with Ampache" ) ); | ||
130 | m_authRequest = The::networkAccessManager()->getData( url, this, &AmpacheAccountLogin::authenticationComplete ); | 130 | m_authRequest = The::networkAccessManager()->getData( url, this, &AmpacheAccountLogin::authenticationComplete ); | ||
131 | 131 | | |||
132 | if( !m_authRequest ) | 132 | if( !m_authRequest ) | ||
133 | emit finished(); | 133 | emit finished(); | ||
134 | } | 134 | } | ||
135 | 135 | | |||
136 | void AmpacheAccountLogin::authenticationComplete( const QUrl &requestUrl, QByteArray data, NetworkAccessManagerProxy::Error e ) | 136 | void AmpacheAccountLogin::authenticationComplete( const QUrl &requestUrl, QByteArray data, NetworkAccessManagerProxy::Error e ) | ||
137 | { | 137 | { | ||
▲ Show 20 Lines • Show All 144 Lines • Show Last 20 Lines |