From 5b91b571be86b7f92a5190348d192513dbe27cdd Mon Sep 17 00:00:00 2001 From: Nodir Temirkhodjaev Date: Tue, 28 Aug 2018 06:33:35 +0500 Subject: [PATCH] Remove TaskUzOnline, because addresses are same with TaskTasix now. --- src/ui/FortFirewall.pro | 2 -- src/ui/i18n/i18n_ru.qm | Bin 10522 -> 10284 bytes src/ui/i18n/i18n_ru.ts | 13 ---------- src/ui/task/taskinfo.cpp | 5 ---- src/ui/task/taskinfo.h | 3 +-- src/ui/task/taskmanager.cpp | 1 - src/ui/task/taskuzonline.cpp | 46 ----------------------------------- src/ui/task/taskuzonline.h | 27 -------------------- 8 files changed, 1 insertion(+), 96 deletions(-) delete mode 100644 src/ui/task/taskuzonline.cpp delete mode 100644 src/ui/task/taskuzonline.h diff --git a/src/ui/FortFirewall.pro b/src/ui/FortFirewall.pro index 70458bc2..4bf8049c 100644 --- a/src/ui/FortFirewall.pro +++ b/src/ui/FortFirewall.pro @@ -42,7 +42,6 @@ SOURCES += \ task/taskmanager.cpp \ task/tasktasix.cpp \ task/taskupdatechecker.cpp \ - task/taskuzonline.cpp \ task/taskworker.cpp \ translationmanager.cpp \ util/conf/addressrange.cpp \ @@ -100,7 +99,6 @@ HEADERS += \ task/taskmanager.h \ task/tasktasix.h \ task/taskupdatechecker.h \ - task/taskuzonline.h \ task/taskworker.h \ translationmanager.h \ util/conf/addressrange.h \ diff --git a/src/ui/i18n/i18n_ru.qm b/src/ui/i18n/i18n_ru.qm index da5c75512709639b685e1d5552e5206abad37599..edbe33e0e3d6e9f41c8c0977ab4430c74f2c3096 100644 GIT binary patch delta 1062 zcmX9+eN2>f9RJ+&cF#R8_aJX~yd5vcAH5D;U63eKui|7;Ca8;W(5Mw+Sn>=(XtQYug|{E_xt;PUY>9J=H5-m z;zKcjoDZZu4g{V8%pRcV1`vAyC>{qArh(Up$yq=NF(n=-8v?R|MAlhtkUHN3R!l+a zIt#?3wTZ0X#z(DO7`G3jm43i}!Iph1nRSjW z_u>GFo0lo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=0&nT}2L9GV;VJ*?Q)~~IqyOuB#OBo0!qTeei)vo@cQVvt H+u{5N*K8)H diff --git a/src/ui/i18n/i18n_ru.ts b/src/ui/i18n/i18n_ru.ts index 4b76ea20..54fe128b 100644 --- a/src/ui/i18n/i18n_ru.ts +++ b/src/ui/i18n/i18n_ru.ts @@ -167,11 +167,6 @@ TAS-IX Addresses Downloader Загрузчик TAS-IX адресов - - - UzOnline Addresses Downloader - Загрузчик UzOnline адресов - TaskTasix @@ -189,14 +184,6 @@ Новая версия! - - TaskUzonline - - - UzOnline addresses updated! - UzOnline адреса обновлены! - - qml diff --git a/src/ui/task/taskinfo.cpp b/src/ui/task/taskinfo.cpp index 3dad5964..b399501b 100644 --- a/src/ui/task/taskinfo.cpp +++ b/src/ui/task/taskinfo.cpp @@ -6,7 +6,6 @@ #include "../util/dateutil.h" #include "tasktasix.h" #include "taskupdatechecker.h" -#include "taskuzonline.h" #define TASK_INFO_VERSION 1 @@ -48,8 +47,6 @@ QString TaskInfo::title() const return tr("Update Checker"); case Tasix: return tr("TAS-IX Addresses Downloader"); - case Uzonline: - return tr("UzOnline Addresses Downloader"); default: Q_UNREACHABLE(); return QString(); @@ -199,8 +196,6 @@ TaskWorker *TaskInfo::createWorker() return new TaskUpdateChecker(this); case Tasix: return new TaskTasix(this); - case Uzonline: - return new TaskUzonline(this); default: Q_UNREACHABLE(); return nullptr; diff --git a/src/ui/task/taskinfo.h b/src/ui/task/taskinfo.h index 4d4b5aff..3d7589f2 100644 --- a/src/ui/task/taskinfo.h +++ b/src/ui/task/taskinfo.h @@ -21,8 +21,7 @@ public: enum TaskType : qint16 { TypeNone = -1, UpdateChecker = 0, - Tasix, - Uzonline + Tasix }; Q_ENUM(TaskType) diff --git a/src/ui/task/taskmanager.cpp b/src/ui/task/taskmanager.cpp index 0c3a01ca..ff29fddd 100644 --- a/src/ui/task/taskmanager.cpp +++ b/src/ui/task/taskmanager.cpp @@ -28,7 +28,6 @@ void TaskManager::setupTasks() { appendTaskInfo(new TaskInfo(TaskInfo::UpdateChecker, this)); appendTaskInfo(new TaskInfo(TaskInfo::Tasix, this)); - appendTaskInfo(new TaskInfo(TaskInfo::Uzonline, this)); } void TaskManager::appendTaskInfo(TaskInfo *taskInfo) diff --git a/src/ui/task/taskuzonline.cpp b/src/ui/task/taskuzonline.cpp deleted file mode 100644 index 95d5e1cd..00000000 --- a/src/ui/task/taskuzonline.cpp +++ /dev/null @@ -1,46 +0,0 @@ -#include "taskuzonline.h" - -#include -#include - -#include "../util/net/netdownloader.h" - -TaskUzonline::TaskUzonline(QObject *parent) : - TaskTasix(parent) -{ -} - -void TaskUzonline::setupDownloader() -{ - downloader()->setUrl("https://alltor.me/viewtopic.php?p=1345405"); -} - -QStringList TaskUzonline::parseUzonlineBuffer(const QByteArray &buffer) -{ - const int startPos = buffer.indexOf("=UZONLINE=START="); - const int endPos = buffer.indexOf("=UZONLINE=END=", startPos + 1); - if (startPos < 0 || endPos < 0) - return QStringList(); - - const QRegularExpression re(R"(([\d.]+)[^\d.]*-[^\d.]*([\d.]+))"); - - QStringList list; - - // Parse lines - const QString text = QString::fromLatin1(buffer.constData() + startPos, - endPos - startPos); - - foreach (const QStringRef &line, text.splitRef( - "