Fixed compile error for the subsonic module.

This commit is contained in:
Alex Seiler 2016-03-29 21:23:53 +02:00
parent ca487a5166
commit 6cc60d0cf8
2 changed files with 6 additions and 2 deletions

View File

@ -139,7 +139,7 @@ SubsonicService::SubsonicService(Application* app, InternetModel* parent)
tr("Refresh catalogue"), this, tr("Refresh catalogue"), this,
SLOT(ReloadDatabase())); SLOT(ReloadDatabase()));
QAction* config_action = context_menu_->addAction( QAction* config_action = context_menu_->addAction(
IconLoader::Load("configure", IconLoader::Base), tr("Configure Subsonic..."), IconLoader::Load("configure", IconLoader::Base), tr("Configure Subsonic..."),
this, SLOT(ShowConfig())); this, SLOT(ShowConfig()));
context_menu_->addSeparator(); context_menu_->addSeparator();
context_menu_->addMenu(library_filter_->menu()); context_menu_->addMenu(library_filter_->menu());
@ -154,7 +154,7 @@ SubsonicService::SubsonicService(Application* app, InternetModel* parent)
SubsonicService::~SubsonicService() {} SubsonicService::~SubsonicService() {}
QStandardItem* SubsonicService::CreateRootItem() { QStandardItem* SubsonicService::CreateRootItem() {
root_ = new QStandardItem(IconLoader::Load("subsonic", IconLoader::Provider), root_ = new QStandardItem(IconLoader::Load("subsonic", IconLoader::Provider),
kServiceName); kServiceName);
root_->setData(true, InternetModel::Role_CanLazyLoad); root_->setData(true, InternetModel::Role_CanLazyLoad);
return root_; return root_;
@ -404,6 +404,7 @@ void SubsonicService::UpdateServer(const QString& server) {
const int SubsonicLibraryScanner::kAlbumChunkSize = 500; const int SubsonicLibraryScanner::kAlbumChunkSize = 500;
const int SubsonicLibraryScanner::kConcurrentRequests = 8; const int SubsonicLibraryScanner::kConcurrentRequests = 8;
const int SubsonicLibraryScanner::kCoverArtSize = 1024;
SubsonicLibraryScanner::SubsonicLibraryScanner(SubsonicService* service, SubsonicLibraryScanner::SubsonicLibraryScanner(SubsonicService* service,
QObject* parent) QObject* parent)

View File

@ -125,6 +125,8 @@ class SubsonicService : public InternetService {
static const char* kFtsTable; static const char* kFtsTable;
static const int kMaxRedirects; static const int kMaxRedirects;
static const int kCoverArtSize;
signals: signals:
void LoginStateChanged(SubsonicService::LoginState newstate); void LoginStateChanged(SubsonicService::LoginState newstate);
@ -185,6 +187,7 @@ class SubsonicLibraryScanner : public QObject {
static const int kAlbumChunkSize; static const int kAlbumChunkSize;
static const int kConcurrentRequests; static const int kConcurrentRequests;
static const int kCoverArtSize;
void GetAlbumCover(const QString& id); void GetAlbumCover(const QString& id);