mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJClient.git
synced 2026-03-28 05:25:39 +03:00
feat: add version container
This commit is contained in:
25
mainwindow.h
25
mainwindow.h
@@ -11,6 +11,7 @@
|
||||
#include <Core/UpdateController.h>
|
||||
#include <Core/sendsystem.h>
|
||||
#include <Core/hashcomparer.h>
|
||||
#include <Core/versioncontainer.h>
|
||||
#include "Datas.h"
|
||||
#include "commonbuttongroupwidget.h"
|
||||
#include "entrywidget.h"
|
||||
@@ -45,7 +46,15 @@ public:
|
||||
void checkUpdate();
|
||||
~MainWindow();
|
||||
|
||||
void initialize();
|
||||
void bindConnection();
|
||||
void login();
|
||||
void saveServerSettingsWithConnect();
|
||||
void loadToServer();
|
||||
void undoCurrentChanges();
|
||||
void startUnityClient();
|
||||
void setCurrentVersionName(StreamingVersionData *version);
|
||||
void disableUnsaveButton(bool flag);
|
||||
|
||||
signals:
|
||||
void sigInitializeClient(MainWindow* mainWindow,
|
||||
@@ -78,7 +87,7 @@ public slots:
|
||||
void lostConnection();
|
||||
void serverBlocked();
|
||||
void checkLoginResult(ServerAuthorization * serverAuth);
|
||||
void setNeedUpdate(bool flag,quint64 size,quint64 fileCount);
|
||||
void setNeedUpdate(bool flag,quint64 size,quint64 fileCount,quint64 deleteCount);
|
||||
void showServerListWidget(QList<StreamingVersionData*> *serverData);
|
||||
|
||||
|
||||
@@ -91,12 +100,13 @@ private slots:
|
||||
void on_offlineStartButton_clicked();
|
||||
|
||||
|
||||
void on_unsafeChangingButton_clicked();
|
||||
|
||||
private:
|
||||
Ui::MainWindow *ui;
|
||||
MyWinHeader *header;
|
||||
UpdateNotifyWidget *updateWidget;
|
||||
CommonButtonGroupWidget *commonButtonGroupWidget;
|
||||
InstructorButtonGroupWidget *instructorButtonGroupWidget;
|
||||
EntryWidget *entryWidget;
|
||||
VersionSelectWidget *versionSelectWidget;
|
||||
|
||||
@@ -109,6 +119,7 @@ private:
|
||||
ExternalExecuter *externalExecuter;
|
||||
SendSystem *sendSystem;
|
||||
HashComparer *hashComparer;
|
||||
VersionContainer *versionContainer;
|
||||
QThread *workerThread;
|
||||
QThread *animationThread;
|
||||
QTimer *timer;
|
||||
@@ -131,15 +142,7 @@ private:
|
||||
void startLoadingAnim();
|
||||
void stopLoadingMovie();
|
||||
void showConnectionEmpty();
|
||||
|
||||
public:
|
||||
void initialize();
|
||||
void login();
|
||||
void saveServerSettingsWithConnect();
|
||||
void loadToServer();
|
||||
void undoCurrentChanges();
|
||||
void startUnityClient();
|
||||
void setCurrentVersionName(QString versionName);
|
||||
void setTitle();
|
||||
|
||||
protected:
|
||||
virtual void keyPressEvent(QKeyEvent *event);
|
||||
|
||||
Reference in New Issue
Block a user