1 #ifndef MUSICLRCANALYSIS_H
2 #define MUSICLRCANALYSIS_H
75 inline int lineMax()
const {
return m_lineMax; }
84 State setData(
const QByteArray &data);
97 State loadFromLrcFile(
const QString &path);
101 State loadFromKrcFile(
const QString &path);
106 qint64 setSongTimeSpeed(qint64 time);
110 void revertTime(qint64 pos);
140 bool isEmpty()
const;
149 QString text(
int index)
const;
153 bool findText(qint64 current, qint64 total, QString &pre, QString &last, qint64 &interval)
const;
157 qint64 findTime(
int index)
const;
161 qint64 findTime(
const QStringList &ts)
const;
166 QString dataString()
const;
170 QStringList dataList()
const;
176 void matchLrcLine(
const QString &oneLine);
180 void matchLrcLine(
const QString &oneLine,
const QString &cap,
const QString &first,
const QString &second);
184 void matchLrcLine(
const QString &oneLine, QString cap,
const QString &splite);
188 void matchLrcLine(
const QString &oneLine,
const QString &cap,
const QString &first,
const QString &second,
const QString &third);
197 #endif // MUSICLRCANALYSIS_H
#define TTK_MODULE_EXPORT
void setCurrentIndex(int index)
bool isValid(const QString &data)
constexpr const _Tp & max(const _Tp &a, const _Tp &b)
The class of the core lrc analysis.
QMap< qint64, QString > TTKIntStringMap
void setCurrentFilePath(const QString &name)
QString currentFilePath() const
#define TTK_DECLARE_MODULE(Class)
static constexpr int MUSIC_LRC_INTERIOR_MAX_LINE
TTKIntStringMap m_lrcContainer
static constexpr const char * MUSIC_TTKLRCF
QStringList m_currentShowLrcContainer
QString m_currentFilePath