From 6cc60d0cf880147ffa89e3fba39388fbdc36f8cc Mon Sep 17 00:00:00 2001 From: Alex Seiler Date: Tue, 29 Mar 2016 21:23:53 +0200 Subject: [PATCH] Fixed compile error for the subsonic module. --- src/internet/subsonic/subsonicservice.cpp | 5 +++-- src/internet/subsonic/subsonicservice.h | 3 +++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/internet/subsonic/subsonicservice.cpp b/src/internet/subsonic/subsonicservice.cpp index 27eed3ebc..c43990448 100644 --- a/src/internet/subsonic/subsonicservice.cpp +++ b/src/internet/subsonic/subsonicservice.cpp @@ -139,7 +139,7 @@ SubsonicService::SubsonicService(Application* app, InternetModel* parent) tr("Refresh catalogue"), this, SLOT(ReloadDatabase())); 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())); context_menu_->addSeparator(); context_menu_->addMenu(library_filter_->menu()); @@ -154,7 +154,7 @@ SubsonicService::SubsonicService(Application* app, InternetModel* parent) SubsonicService::~SubsonicService() {} QStandardItem* SubsonicService::CreateRootItem() { - root_ = new QStandardItem(IconLoader::Load("subsonic", IconLoader::Provider), + root_ = new QStandardItem(IconLoader::Load("subsonic", IconLoader::Provider), kServiceName); root_->setData(true, InternetModel::Role_CanLazyLoad); return root_; @@ -404,6 +404,7 @@ void SubsonicService::UpdateServer(const QString& server) { const int SubsonicLibraryScanner::kAlbumChunkSize = 500; const int SubsonicLibraryScanner::kConcurrentRequests = 8; +const int SubsonicLibraryScanner::kCoverArtSize = 1024; SubsonicLibraryScanner::SubsonicLibraryScanner(SubsonicService* service, QObject* parent) diff --git a/src/internet/subsonic/subsonicservice.h b/src/internet/subsonic/subsonicservice.h index 8aada17a9..2b1cc5625 100644 --- a/src/internet/subsonic/subsonicservice.h +++ b/src/internet/subsonic/subsonicservice.h @@ -125,6 +125,8 @@ class SubsonicService : public InternetService { static const char* kFtsTable; static const int kMaxRedirects; + static const int kCoverArtSize; + signals: void LoginStateChanged(SubsonicService::LoginState newstate); @@ -185,6 +187,7 @@ class SubsonicLibraryScanner : public QObject { static const int kAlbumChunkSize; static const int kConcurrentRequests; + static const int kCoverArtSize; void GetAlbumCover(const QString& id);