1 #ifndef MUSICLRCANALYSIS_H
2 #define MUSICLRCANALYSIS_H
88 State loadFromFile(
const QString &path);
93 qint64 setSongTimeSpeed(qint64 time);
97 void revertTime(qint64 pos);
119 void clear() noexcept;
127 bool isEmpty()
const noexcept;
131 int count()
const noexcept;
136 QString text(
int index)
const;
140 bool findText(qint64 current, qint64 total, QString &pre, QString &last, qint64 &interval) const;
144 qint64 findTime(
int index) const;
148 qint64 findTime(const QStringList &ts) const;
153 QString dataString() const;
157 QStringList dataList() const;
167 void matchLrcLine(const QString &oneLine);
171 void matchLrcLine(const QString &oneLine, const QString &cap, const QString &first, const QString &second);
175 void matchLrcLine(const QString &oneLine, QString cap, const QString &splite);
179 void matchLrcLine(const QString &oneLine, const QString &cap, const QString &first, const QString &second, const QString &third);
181 int m_lineMax, m_currentLrcIndex;
182 QString m_currentFilePath;
184 QStringList m_currentShowLrcContainer;
188 #endif // MUSICLRCANALYSIS_H
#define TTK_MODULE_EXPORT
QString currentFilePath() const noexcept
int lineMax() const noexcept
void setLineMax(int max) noexcept
bool isValid(const QString &data)
void setCurrentFilePath(const QString &name) noexcept
void setCurrentIndex(int index) noexcept
int currentIndex() const noexcept
The class of the core lrc analysis.
QMap< qint64, QString > TTKIntStringMap
#define TTK_DECLARE_MODULE(Class)
int lineMiddle() const noexcept
static constexpr int MUSIC_LRC_INTERIOR_MAX_LINE
constexpr const _Tp & max(const _Tp &a, const _Tp &b) noexcept