mirror of
https://github.com/tnodir/fort
synced 2024-11-15 06:06:30 +00:00
Fix typo
This commit is contained in:
parent
d815b40fba
commit
cb36342136
@ -68,7 +68,7 @@ void Test::taskTasix()
|
||||
const QByteArray buf = FileUtil::readFileData(STR(PWD) "/data/tasix-mrlg.html");
|
||||
QVERIFY(!buf.isEmpty());
|
||||
|
||||
const QString text = TaskTasix::parseTasixBufer(buf);
|
||||
const QString text = TaskTasix::parseTasixBuffer(buf);
|
||||
QVERIFY(!text.isEmpty());
|
||||
|
||||
//QVERIFY(FileUtil::writeFile(QString(STR(PWD) "/data/tasix-mrlg.out"), text));
|
||||
|
@ -50,7 +50,7 @@ void TaskTasix::cancel(bool success)
|
||||
void TaskTasix::downloadFinished(bool success)
|
||||
{
|
||||
if (success) {
|
||||
m_rangeText = parseBufer(m_downloader->buffer());
|
||||
m_rangeText = parseBuffer(m_downloader->buffer());
|
||||
success = !m_rangeText.isEmpty();
|
||||
}
|
||||
|
||||
@ -76,7 +76,7 @@ bool TaskTasix::processResult(FortManager *fortManager)
|
||||
#endif
|
||||
}
|
||||
|
||||
QString TaskTasix::parseTasixBufer(const QByteArray &buffer)
|
||||
QString TaskTasix::parseTasixBuffer(const QByteArray &buffer)
|
||||
{
|
||||
QStringList list;
|
||||
|
||||
|
@ -14,13 +14,13 @@ public:
|
||||
|
||||
HttpDownloader *downloader() const { return m_downloader; }
|
||||
|
||||
static QString parseTasixBufer(const QByteArray &buffer);
|
||||
static QString parseTasixBuffer(const QByteArray &buffer);
|
||||
|
||||
protected:
|
||||
virtual void startDownloader() const;
|
||||
|
||||
virtual QString parseBufer(const QByteArray &buffer) const {
|
||||
return parseTasixBufer(buffer);
|
||||
virtual QString parseBuffer(const QByteArray &buffer) const {
|
||||
return parseTasixBuffer(buffer);
|
||||
}
|
||||
|
||||
signals:
|
||||
|
@ -8,7 +8,7 @@ TaskUzonline::TaskUzonline(QObject *parent) :
|
||||
}
|
||||
|
||||
#include <QDebug>
|
||||
QString TaskUzonline::parseUzonlineBufer(const QByteArray &buffer)
|
||||
QString TaskUzonline::parseUzonlineBuffer(const QByteArray &buffer)
|
||||
{
|
||||
qDebug() << buffer.length() << buffer;
|
||||
return QString();
|
||||
|
@ -10,13 +10,13 @@ class TaskUzonline : public TaskTasix
|
||||
public:
|
||||
explicit TaskUzonline(QObject *parent = nullptr);
|
||||
|
||||
static QString parseUzonlineBufer(const QByteArray &buffer);
|
||||
static QString parseUzonlineBuffer(const QByteArray &buffer);
|
||||
|
||||
protected:
|
||||
void startDownloader() const override;
|
||||
|
||||
QString parseBufer(const QByteArray &buffer) const override {
|
||||
return parseUzonlineBufer(buffer);
|
||||
QString parseBuffer(const QByteArray &buffer) const override {
|
||||
return parseUzonlineBuffer(buffer);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user