mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJClient.git
synced 2026-03-28 05:25:39 +03:00
ref: refactoring treads, check local update instructor
This commit is contained in:
20
mainwindow.h
20
mainwindow.h
@@ -33,6 +33,7 @@ class HashComparer;
|
||||
class CommonButtonGroupWidget;
|
||||
class InstructorButtonGroupWidget;
|
||||
class EntryWidget;
|
||||
class ScreenChecker;
|
||||
|
||||
class MainWindow : public QMainWindow
|
||||
{
|
||||
@@ -47,10 +48,17 @@ public:
|
||||
void bindConnection();
|
||||
|
||||
signals:
|
||||
void sigInitializeClient(RecognizeSystem *recognizeSystem,
|
||||
void sigInitializeClient(MainWindow* mainWindow,
|
||||
RecognizeSystem *recognizeSystem,
|
||||
ExternalExecuter *externalExecuter,
|
||||
SendSystem *sendSystem,
|
||||
QThread *thread);
|
||||
void sigRecognize(UpdateController* updateController,
|
||||
DataParser* dataParser,
|
||||
MainWindow* mainWindow,
|
||||
HashComparer* hashComparer,
|
||||
TCPClient *tcpClient);
|
||||
|
||||
void sigSendCommand(QString command);
|
||||
void sigSendXMLAnswer(QString answer);
|
||||
void sigUpdateFilesOnServer(QList<FileData> *fileSendList);
|
||||
@@ -61,6 +69,10 @@ signals:
|
||||
|
||||
|
||||
public slots:
|
||||
void showUpdateInfo();
|
||||
void showCompleteDialogBox();
|
||||
void slotConnectionState(bool flag);
|
||||
void slotServerDisconnect();
|
||||
void updateProgress();
|
||||
void loadComplete();
|
||||
void lostConnection();
|
||||
@@ -73,8 +85,6 @@ private slots:
|
||||
void on_settingsButton_clicked();
|
||||
void on_languageComboBox_activated(const QString &arg1);
|
||||
void slotDisableNotify();
|
||||
void slotConnectionState(bool flag);
|
||||
void slotServerDisconnect();
|
||||
void on_updateListGuideLabel_linkActivated(const QString &link);
|
||||
void on_exitButton_clicked();
|
||||
void on_offlineStartButton_clicked();
|
||||
@@ -99,7 +109,7 @@ private:
|
||||
ExternalExecuter *externalExecuter;
|
||||
SendSystem *sendSystem;
|
||||
HashComparer *hashComparer;
|
||||
QThread *connectionThread;
|
||||
QThread *workerThread;
|
||||
QThread *animationThread;
|
||||
QTimer *timer;
|
||||
QMovie *movie;
|
||||
@@ -118,10 +128,8 @@ private:
|
||||
void loadStaticData();
|
||||
void bindClient();
|
||||
void createObjects();
|
||||
void showUpdateInfo();
|
||||
void startLoadingAnim();
|
||||
void stopLoadingMovie();
|
||||
void showCompleteDialogBox();
|
||||
void showConnectionEmpty();
|
||||
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user