Fix webremote branch

This commit is contained in:
John Maguire 2015-01-19 13:47:14 +01:00
parent 50abf41609
commit a8ef587fac
4 changed files with 10 additions and 4 deletions

View File

@ -22,6 +22,7 @@
#include "core/logging.h"
#include "engines/enginebase.h"
#include "internet/core/internetmodel.h"
#include "networkremote/songsender.h"
#include "playlist/playlistmanager.h"
#include "playlist/playlistsequence.h"
#include "playlist/playlist.h"

View File

@ -1,7 +1,10 @@
#include "remoteclient.h"
#include "networkremote/songsender.h"
RemoteClient::RemoteClient(Application* app, QObject* parent)
: QObject(parent),
app_(app),
downloader_(false) {
downloader_(false),
song_sender_(new SongSender(app, this)) {
}

View File

@ -4,13 +4,11 @@
#include <QAbstractSocket>
#include <QObject>
#include "songsender.h"
#include "core/application.h"
#include "remotecontrolmessages.pb.h"
class Application;
class QByteArray;
class SongSender;
class RemoteClient : public QObject {
Q_OBJECT
@ -31,6 +29,7 @@ class RemoteClient : public QObject {
protected:
Application* app_;
bool downloader_;
SongSender* song_sender_;
};
#endif // REMOTECLIENT_H

View File

@ -23,8 +23,11 @@
#include "core/application.h"
#include "core/logging.h"
#include "core/player.h"
#include "core/utilities.h"
#include "library/librarybackend.h"
#include "networkremote/outgoingdatacreator.h"
#include "networkremote/remoteclient.h"
#include "playlist/playlistitem.h"
const quint32 SongSender::kFileChunkSize = 100000; // in Bytes