1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/mrbeanc-follower-v2.0

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
updateform.h 1.4 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
mrbeanc Отправлено 18.06.2024 12:58 7f6a28a
#ifndef UPDATEFORM_H
#define UPDATEFORM_H
#include <QWidget>
#include <QDialog>
#include <QNetworkAccessManager>
#include <QNetworkReply>
#include <QSslSocket>
#include <QtDebug>
#include <functional>
#include "Utils/systemapi.h"
#include <QWinTaskbarButton>
#include <QWinTaskbarProgress>
namespace Ui {
class UpdateForm;
}
class UpdateForm : public QDialog {
Q_OBJECT
public:
explicit UpdateForm(QWidget *parent = nullptr);
~UpdateForm();
QUrl getRedirectTarget(QNetworkReply* reply);
void download(const QUrl& url, const QString& path, std::function<void(bool)> todo);
void getDownloadUrl(const QString& htmlUrl, std::function<void(QMap<QString, QString>)> todo);
QMap<QString, QString> parseHtml(const QString& html);
void updateLatestGiteeRelease(const QString& releaseUrl, const QString& filePath);
void writeBat(const QString& batPath, const QString& zipPath, const QString& folder);
private:
Ui::UpdateForm *ui;
QNetworkAccessManager* manager = nullptr;
const QString releaseUrl = "https://gitee.com/caiqihang2024/follower-v2.0/releases";
QWinTaskbarButton* taskBarBtn = nullptr;
QWinTaskbarProgress* taskBarProgress = nullptr;
const QString ver = QStringLiteral("v") + qApp->applicationVersion();
// QWidget interface
protected:
void showEvent(QShowEvent* event) override;
};
#endif // UPDATEFORM_H

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/mrbeanc-follower-v2.0.git
git@api.gitlife.ru:oschina-mirror/mrbeanc-follower-v2.0.git
oschina-mirror
mrbeanc-follower-v2.0
mrbeanc-follower-v2.0
master