51 QString title()
const noexcept;
55 QString artist()
const noexcept;
60 inline
void setAddTimeStr(
const QString &t) noexcept { m_addTimeStr = t; }
68 inline void setSizeStr(
const QString &s) noexcept { m_sizeStr = s; }
77 inline void setName(
const QString &n) noexcept { m_name = n; }
81 inline QString
name()
const noexcept {
return m_name; }
85 inline void setPath(
const QString &p) noexcept { m_path = p; }
89 inline QString
path()
const noexcept {
return m_path; }
93 inline void setFormat(
const QString &t) noexcept { m_format = t; }
101 inline void setDuration(
const QString &t) noexcept { m_duration = t; }
125 bool operator> (
const MusicSong &other)
const noexcept;
132 QString m_name,
m_path, m_format, m_duration;
148 m_order(
Qt::AscendingOrder)
172 m_itemWidget(
nullptr)
179 return m_itemIndex < other.m_itemIndex;
197 #endif // MUSICSONG_H
#define TTK_MODULE_EXPORT
bool operator<(const MusicSongItem &other) const noexcept
QString sizeStr() const noexcept
TTK_DECLARE_LIST(MusicSong)
void setSort(const Sort s) noexcept
QString path() const noexcept
The namespace of the string literals.
bool operator==(const TTKOptional< T > &v, const T &other)
void setName(const QString &n) noexcept
qint64 size() const noexcept
The namespace of the application object.
MusicAbstractSongsListTableWidget * m_itemWidget
void setFormat(const QString &t) noexcept
void setSizeStr(const QString &s) noexcept
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)