void MusicRightAreaWidget::stopLrcMask() const { if( checkSettingParameterValue() ) { m_ui->musiclrccontainerforinline->stopLrcMask(); m_musiclrcfordesktop->stopLrcMask(); } }
void MusicRightAreaWidget::loadCurrentSongLrc(const QString &name, const QString &path) const { if( checkSettingParameterValue() ) { m_ui->musiclrccontainerforinline->stopLrcMask(); m_ui->musiclrccontainerforinline->setCurrentSongName( name ); m_ui->musiclrccontainerforinline->transLrcFileToTime( path.trimmed() ); m_musiclrcfordesktop->setCurrentSongName( name ); } }
void MusicDownloadStatusLabel::musicCheckHasLrcAlready() { if(!M_NETWORK->isOnline()) { ///no network connection showDownLoadInfoFor(MusicObject::DisConnection); return; } else if( checkSettingParameterValue() ) { ///Check there is no opening lyrics display mode if( m_parentWidget->checkMusicListCurrentIndex() ) { return; } QString filename = m_parentWidget->getCurrentFileName(); ///Check if the file exists if( QFile::exists(LRC_DOWNLOAD_AL + filename + LRC_FILE) || QFile::exists(LRC_DOWNLOAD_AL + filename + KRC_FILE) ) { return; } if(m_downloadLrcThread) { delete m_downloadLrcThread; m_downloadLrcThread = nullptr; } ///Start the request query #ifndef USE_MULTIPLE_QUERY m_downloadLrcThread = new MusicDownLoadQuerySingleThread(this); #else m_downloadLrcThread = new MusicDownLoadQueryMultipleThread(this); #endif m_downloadLrcThread->startSearchSong(MusicDownLoadQueryThreadAbstract::MusicQuery, filename); connect(m_downloadLrcThread, SIGNAL(resolvedSuccess()), SLOT(musicHaveNoLrcAlready())); showDownLoadInfoFor(MusicObject::Buffing); } }