This commit is contained in:
John Maguire 2013-02-06 15:06:06 +01:00
commit 591b455684
4 changed files with 9 additions and 9 deletions

View File

@ -48,6 +48,8 @@ void RegisterMetaTypes() {
qRegisterMetaType<PodcastList>("PodcastList");
qRegisterMetaType<QList<CoverSearchResult> >("QList<CoverSearchResult>");
qRegisterMetaType<QList<PlaylistItemPtr> >("QList<PlaylistItemPtr>");
qRegisterMetaType<PlaylistSequence::RepeatMode>("PlaylistSequence::RepeatMode");
qRegisterMetaType<PlaylistSequence::ShuffleMode>("PlaylistSequence::ShuffleMode");
qRegisterMetaType<QList<PodcastEpisode> >("QList<PodcastEpisode>");
qRegisterMetaType<QList<Podcast> >("QList<Podcast>");
qRegisterMetaType<QList<QNetworkCookie> >("QList<QNetworkCookie>");

View File

@ -45,13 +45,6 @@ IncomingDataParser::IncomingDataParser(Application* app)
connect(this, SIGNAL(SeekTo(int)),
app_->player(), SLOT(SeekTo(int)));
// For some connects we have to wait for the playlistmanager
// to be initialized
connect(app_->playlist_manager(), SIGNAL(PlaylistManagerInitialized()),
this, SLOT(PlaylistManagerInitialized()));
}
void IncomingDataParser::PlaylistManagerInitialized() {
connect(this, SIGNAL(SetActivePlaylist(int)),
app_->playlist_manager(), SLOT(SetActivePlaylist(int)));
connect(this, SIGNAL(ShuffleCurrent()),

View File

@ -36,8 +36,6 @@ signals:
void SetShuffleMode(PlaylistSequence::ShuffleMode mode);
void SeekTo(int seconds);
private slots:
void PlaylistManagerInitialized();
private:
Application* app_;

View File

@ -140,6 +140,13 @@ void OutgoingDataCreator::SendFirstData() {
// And the current track position
UpdateTrackPosition();
// And the current playlists
SendAllPlaylists();
// Send the current random and repeat mode
SendShuffleMode(app_->playlist_manager()->sequence()->shuffle_mode());
SendRepeatMode(app_->playlist_manager()->sequence()->repeat_mode());
}
void OutgoingDataCreator::CurrentSongChanged(const Song& song, const QString& uri, const QImage& img) {