feat: display Update size and notification

This commit is contained in:
semenov
2024-08-20 15:07:56 +03:00
parent fa79d72b6c
commit cafc764627
15 changed files with 614 additions and 420 deletions

View File

@@ -48,6 +48,12 @@ private slots:
void on_settingsButton_clicked();
void disableNotify();
void onConnectionState(bool flag);
void on_connectButton_clicked();
private:
Ui::MainWindow *ui;
TCPClient *client;
@@ -59,12 +65,14 @@ private:
QThread *connectionThread;
QThread *updateControllerThread;
quint64 maxBytesAvailable;
QTimer *timer;
float globalValue;
void DebugLog(QString message);
void Initialize();
void UpdateProgress(qint64 size,quint64 sended);
void LoadComplete();
void SetNeedUpdate(bool flag);
void SetNeedUpdate(bool flag,quint64 size);
void LostConnection();
void CheckLoginResult(ServerAuthorization * serverAuth);
void CheckAppAvailable();