46 explicit
MusicSong(
const QString &path,
bool track = false) noexcept;
52 QString title()
const noexcept;
56 QString artist()
const noexcept;
61 inline
void setAddTimeStr(
const QString &t) noexcept { m_addTimeStr = t; }
69 inline void setSizeStr(
const QString &s) noexcept { m_sizeStr = s; }
78 inline void setName(
const QString &n) noexcept { m_name = n; }
82 inline QString
name()
const noexcept {
return m_name; }
86 inline void setPath(
const QString &p) noexcept { m_path = p; }
90 inline QString
path()
const noexcept {
return m_path; }
94 inline void setFormat(
const QString &t) noexcept { m_format = t; }
102 inline void setDuration(
const QString &t) noexcept { m_duration = t; }
126 bool operator> (
const MusicSong &other)
const noexcept;
133 QString m_name,
m_path, m_format, m_duration;
149 m_order(Qt::AscendingOrder)
173 m_itemWidget(nullptr)
180 return m_itemIndex < other.m_itemIndex;
228 #endif // MUSICSONG_H
bool operator==(const VolumeSettings &v1, const VolumeSettings &v2)
#define TTK_MODULE_EXPORT
TTK_MODULE_EXPORT QString generateSongName(const QString &title, const QString &artist)
bool operator<(const MusicSongItem &other) const noexcept
TTK_MODULE_EXPORT QString generateSongArtist(const QString &name, const QString &key=TTK_DEFAULT_STR)
QString sizeStr() const noexcept
TTK_DECLARE_LIST(MusicSong)
TTK_MODULE_EXPORT bool playlistRowValid(int index)
void setSort(const Sort s) noexcept
TTK_MODULE_EXPORT QString trackRelatedPath(const QString &path)
QString path() const noexcept
static constexpr wchar_t key[]
TTK_MODULE_EXPORT QString generateSongTitle(const QString &name, const QString &key=TTK_DEFAULT_STR)
void setName(const QString &n) noexcept
qint64 size() const noexcept
TTK_MODULE_EXPORT QString generateNetworkSongPath(const QString &path)
The namespace of the process utils.
MusicAbstractSongsListTableWidget * m_itemWidget
void setFormat(const QString &t) noexcept
void setSizeStr(const QString &s) noexcept
TTK_MODULE_EXPORT QString generateNetworkSongTime(const QString &path)
#define TTK_DECLARE_MODULE(Class)
The class of the music song sort tag.
QString format() const noexcept
QString duration() const noexcept
QString name() const noexcept
void setDuration(const QString &t) noexcept
QString addTimeStr() const noexcept
The class of the music song item.
void setPlayCount(const int c) noexcept
The class of the music song info.
void setPath(const QString &p) noexcept
constexpr bool operator<(int128_t, int128_t)
int playCount() const noexcept
TTK_MODULE_EXPORT MusicSongList generateSongList(const QString &path)