const std::string& GetFull() { static const std::string full = SPRING_VERSION_ENGINE + (GetAdditional().empty() ? "" : (" (" + GetAdditional() + ")")); return full; }
const std::string& GetFull() { static const std::string full = Get() + "." + GetPatchSet() + (GetAdditional().empty() ? "" : (" (" + GetAdditional() + ")")); return full; }
void PendingSimilarArtists::handleInfoReplyFinished () { auto reply = qobject_cast<QNetworkReply*> (sender ()); reply->deleteLater (); const int similarity = reply->property ("Similarity").toInt (); const auto& augment = GetAdditional (reply->peek (reply->bytesAvailable ())); const auto& artist = lastfm::Artist::getInfo (reply); Media::ArtistInfo info = { artist.name (), augment.ShortDesc_, augment.FullDesc_, artist.imageUrl (lastfm::Large), artist.imageUrl (lastfm::ExtraLarge), artist.www (), Media::TagInfos_t () }; Similar_ << Media::SimilarityInfo_t (info, similarity); auto tagsReply = artist.getTopTags (); tagsReply->setProperty ("Position", Similar_.size () - 1); connect (tagsReply, SIGNAL (finished ()), this, SLOT (handleTagsReplyFinished ())); connect (tagsReply, SIGNAL (error (QNetworkReply::NetworkError)), this, SLOT (handleTagsReplyError ())); }