Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
327181ef18 | ||
|
60ae140aab | ||
|
767965a2f4 | ||
|
ee70819f2b | ||
|
1ef3c53629 |
@ -16,6 +16,10 @@ if (CMAKE_CXX_COMPILER MATCHES ".*clang")
|
|||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-uninitialized")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-uninitialized")
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
|
if (APPLE)
|
||||||
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --stdlib=libc++")
|
||||||
|
endif ()
|
||||||
|
|
||||||
set(CMAKE_REQUIRED_FLAGS "-std=c++0x")
|
set(CMAKE_REQUIRED_FLAGS "-std=c++0x")
|
||||||
check_cxx_source_compiles(
|
check_cxx_source_compiles(
|
||||||
"#include <unordered_map>
|
"#include <unordered_map>
|
||||||
|
@ -3,6 +3,8 @@
|
|||||||
|
|
||||||
#include "internetservice.h"
|
#include "internetservice.h"
|
||||||
|
|
||||||
|
#include <memory>
|
||||||
|
|
||||||
#include <QMenu>
|
#include <QMenu>
|
||||||
|
|
||||||
#include "core/tagreaderclient.h"
|
#include "core/tagreaderclient.h"
|
||||||
@ -61,8 +63,8 @@ class CloudFileService : public InternetService {
|
|||||||
LibraryModel* library_model_;
|
LibraryModel* library_model_;
|
||||||
QSortFilterProxyModel* library_sort_model_;
|
QSortFilterProxyModel* library_sort_model_;
|
||||||
|
|
||||||
boost::scoped_ptr<QMenu> context_menu_;
|
std::unique_ptr<QMenu> context_menu_;
|
||||||
boost::scoped_ptr<AlbumCoverManager> cover_manager_;
|
std::unique_ptr<AlbumCoverManager> cover_manager_;
|
||||||
PlaylistManager* playlist_manager_;
|
PlaylistManager* playlist_manager_;
|
||||||
TaskManager* task_manager_;
|
TaskManager* task_manager_;
|
||||||
|
|
||||||
|
@ -99,12 +99,12 @@ void SpotifyServer::SetPlaybackSettings(pb::spotify::Bitrate bitrate, bool volum
|
|||||||
|
|
||||||
void SpotifyServer::MessageArrived(const pb::spotify::Message& message) {
|
void SpotifyServer::MessageArrived(const pb::spotify::Message& message) {
|
||||||
if (message.has_login_response()) {
|
if (message.has_login_response()) {
|
||||||
const pb::spotify::LoginResponse& response = message.login_response();
|
const auto& response = message.login_response();
|
||||||
logged_in_ = response.success();
|
logged_in_ = response.success();
|
||||||
|
|
||||||
if (response.success()) {
|
if (response.success()) {
|
||||||
// Send any messages that were queued before the client logged in
|
// Send any messages that were queued before the client logged in
|
||||||
foreach (const pb::spotify::Message& message, queued_messages_) {
|
for (const pb::spotify::Message& message : queued_messages_) {
|
||||||
SendOrQueueMessage(message);
|
SendOrQueueMessage(message);
|
||||||
}
|
}
|
||||||
queued_messages_.clear();
|
queued_messages_.clear();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user