This commit is contained in:
Nodir Temirkhodjaev 2017-10-25 14:55:42 +05:00
parent d815b40fba
commit cb36342136
5 changed files with 10 additions and 10 deletions

View File

@ -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));

View File

@ -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;

View File

@ -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:

View File

@ -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();

View File

@ -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);
}
};