Fix misspelled names.

This commit is contained in:
Vlad Maltsev 2014-08-13 02:10:07 +07:00
parent e65596cba6
commit 08c0f7d28f
3 changed files with 7 additions and 7 deletions

View File

@ -1102,25 +1102,25 @@ void VkService::SongStarting(const Song& song) {
audio_provider_->setBroadcast(id.audio_id, id.owner_id, IdList()); audio_provider_->setBroadcast(id.audio_id, id.owner_id, IdList());
NewClosure(reply, SIGNAL(resultReady(QVariant)), this, NewClosure(reply, SIGNAL(resultReady(QVariant)), this,
SLOT(BroadcastChangeReceived(Vreen::IntReply*)), reply); SLOT(BroadcastChangeReceived(Vreen::IntReply*)), reply);
connect(app_->player(), SIGNAL(Stopped()), this, SLOT(SongStoped()), connect(app_->player(), SIGNAL(Stopped()), this, SLOT(SongStopped()),
Qt::UniqueConnection); Qt::UniqueConnection);
qLog(Debug) << "Broadcasting" << song.artist() << "-" << song.title(); qLog(Debug) << "Broadcasting" << song.artist() << "-" << song.title();
} }
} }
void VkService::SongSkiped() { void VkService::SongSkipped() {
current_song_.set_valid(false); current_song_.set_valid(false);
cache_->BreakCurrentCaching(); cache_->BreakCurrentCaching();
} }
void VkService::SongStoped() { void VkService::SongStopped() {
current_song_.set_valid(false); current_song_.set_valid(false);
if (isBroadcasting() && HasAccount()) { if (isBroadcasting() && HasAccount()) {
auto reply = audio_provider_->resetBroadcast(IdList()); auto reply = audio_provider_->resetBroadcast(IdList());
NewClosure(reply, SIGNAL(resultReady(QVariant)), this, NewClosure(reply, SIGNAL(resultReady(QVariant)), this,
SLOT(BroadcastChangeReceived(Vreen::IntReply*)), reply); SLOT(BroadcastChangeReceived(Vreen::IntReply*)), reply);
disconnect(app_->player(), SIGNAL(Stopped()), this, SLOT(SongStoped())); disconnect(app_->player(), SIGNAL(Stopped()), this, SLOT(SongStopped()));
qLog(Debug) << "End of broadcasting"; qLog(Debug) << "End of broadcasting";
} }
} }

View File

@ -152,7 +152,7 @@ class VkService : public InternetService {
/* Music */ /* Music */
void SongStarting(const Song& song); void SongStarting(const Song& song);
void SongStarting(const QUrl& url); // Used if song taked from cache. void SongStarting(const QUrl& url); // Used if song taked from cache.
void SongSkiped(); void SongSkipped();
UrlHandler::LoadResult GetSongResult(const QUrl& url); UrlHandler::LoadResult GetSongResult(const QUrl& url);
Vreen::AudioItem GetAudioItemFromUrl(const QUrl& url); Vreen::AudioItem GetAudioItemFromUrl(const QUrl& url);
// Return random song result from group playlist. // Return random song result from group playlist.
@ -197,7 +197,7 @@ signals:
void Error(Vreen::Client::Error error); void Error(Vreen::Client::Error error);
/* Music */ /* Music */
void SongStoped(); void SongStopped();
void UpdateMyMusic(); void UpdateMyMusic();
void UpdateBookmarkSongs(QStandardItem* item); void UpdateBookmarkSongs(QStandardItem* item);
void UpdateAlbumSongs(QStandardItem* item); void UpdateAlbumSongs(QStandardItem* item);

View File

@ -51,7 +51,7 @@ UrlHandler::LoadResult VkUrlHandler::StartLoading(const QUrl& url) {
return result; return result;
} }
void VkUrlHandler::TrackSkipped() { service_->SongSkiped(); } void VkUrlHandler::TrackSkipped() { service_->SongSkipped(); }
UrlHandler::LoadResult VkUrlHandler::LoadNext(const QUrl& url) { UrlHandler::LoadResult VkUrlHandler::LoadNext(const QUrl& url) {
if (url.host() == "group") { if (url.host() == "group") {