feat: dashboard show on hover, media and weather tabs added
C++ / fmt (pull_request) Failing after 6s
C++ / build (pull_request) Failing after 9s
C++ / clang-tidy (pull_request) Failing after 10s
JS/TS / fmt (pull_request) Successful in 13s
JS/TS / lint (pull_request) Successful in 8s
Python / static (pull_request) Successful in 30s
Rust / build (pull_request) Successful in 49s
Rust / fmt (pull_request) Successful in 26s
Python / verify (pull_request) Successful in 1m44s
Rust / clippy (pull_request) Successful in 44s
C++ / fmt (pull_request) Failing after 6s
C++ / build (pull_request) Failing after 9s
C++ / clang-tidy (pull_request) Failing after 10s
JS/TS / fmt (pull_request) Successful in 13s
JS/TS / lint (pull_request) Successful in 8s
Python / static (pull_request) Successful in 30s
Rust / build (pull_request) Successful in 49s
Rust / fmt (pull_request) Successful in 26s
Python / verify (pull_request) Successful in 1m44s
Rust / clippy (pull_request) Successful in 44s
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
#include "lyriccandidate.hpp"
|
||||
|
||||
namespace ZShell::services {
|
||||
|
||||
LyricCandidate::LyricCandidate(
|
||||
LyricsBackend backend,
|
||||
QString id,
|
||||
QString title,
|
||||
QString artist,
|
||||
QString album,
|
||||
qreal duration)
|
||||
: m_backend(backend)
|
||||
, m_id(std::move(id))
|
||||
, m_title(std::move(title))
|
||||
, m_artist(std::move(artist))
|
||||
, m_album(std::move(album))
|
||||
, m_duration(duration) {}
|
||||
|
||||
LyricsBackend LyricCandidate::backend() const {
|
||||
return m_backend;
|
||||
}
|
||||
|
||||
QString LyricCandidate::id() const {
|
||||
return m_id;
|
||||
}
|
||||
|
||||
QString LyricCandidate::title() const {
|
||||
return m_title;
|
||||
}
|
||||
|
||||
QString LyricCandidate::artist() const {
|
||||
return m_artist;
|
||||
}
|
||||
|
||||
QString LyricCandidate::album() const {
|
||||
return m_album;
|
||||
}
|
||||
|
||||
qreal LyricCandidate::duration() const {
|
||||
return m_duration;
|
||||
}
|
||||
|
||||
bool LyricCandidate::isValid() const {
|
||||
return !m_id.isEmpty();
|
||||
}
|
||||
|
||||
bool LyricCandidate::operator==(const LyricCandidate& o) const noexcept {
|
||||
return m_backend == o.m_backend && m_id == o.m_id;
|
||||
}
|
||||
|
||||
bool LyricCandidate::operator!=(const LyricCandidate& o) const noexcept {
|
||||
return !(*this == o);
|
||||
}
|
||||
|
||||
} // namespace ZShell::services
|
||||
Reference in New Issue
Block a user