Clementine-audio-player-Mac.../src/internet/dropboxurlhandler.cpp

16 lines
401 B
C++
Raw Normal View History

2012-11-29 20:18:08 +01:00
#include "dropboxurlhandler.h"
#include "internet/dropboxservice.h"
DropboxUrlHandler::DropboxUrlHandler(
DropboxService* service,
QObject* parent)
: UrlHandler(parent),
service_(service) {
}
UrlHandler::LoadResult DropboxUrlHandler::StartLoading(const QUrl& url) {
return LoadResult(url, LoadResult::TrackAvailable,
service_->GetStreamingUrlFromSongId(url));
}