diff --git a/app/scanner/HGImgThumb.cpp b/app/scanner/HGImgThumb.cpp index ba2ce194..3fe5a983 100644 --- a/app/scanner/HGImgThumb.cpp +++ b/app/scanner/HGImgThumb.cpp @@ -4644,7 +4644,7 @@ void HGImgThumb::Show() repaint(); } -void HGImgThumb::ThreadFunc(HGThread thread, HGPointer param) +void HGAPI HGImgThumb::ThreadFunc(HGThread thread, HGPointer param) { Q_UNUSED(thread); diff --git a/app/scanner/HGImgThumb.h b/app/scanner/HGImgThumb.h index f2d11188..071e921d 100644 --- a/app/scanner/HGImgThumb.h +++ b/app/scanner/HGImgThumb.h @@ -192,7 +192,7 @@ private: QRect getNullScrollPos(); void Show(); - static void ThreadFunc(HGThread thread, HGPointer param); + static void HGAPI ThreadFunc(HGThread thread, HGPointer param); private: HGLock m_lockFront; diff --git a/app/scanner/dialog_exportimagefile.cpp b/app/scanner/dialog_exportimagefile.cpp index a446422e..bef0a2b4 100644 --- a/app/scanner/dialog_exportimagefile.cpp +++ b/app/scanner/dialog_exportimagefile.cpp @@ -47,7 +47,7 @@ Dialog_ExportImageFile::~Dialog_ExportImageFile() delete ui; } -void Dialog_ExportImageFile::ThreadFunc(HGThread thread, HGPointer param) +void HGAPI Dialog_ExportImageFile::ThreadFunc(HGThread thread, HGPointer param) { (void)thread; Dialog_ExportImageFile *p = (Dialog_ExportImageFile *)param; diff --git a/app/scanner/dialog_exportimagefile.h b/app/scanner/dialog_exportimagefile.h index 8f68d20b..75b04ef3 100644 --- a/app/scanner/dialog_exportimagefile.h +++ b/app/scanner/dialog_exportimagefile.h @@ -19,7 +19,7 @@ public: ~Dialog_ExportImageFile(); private: - static void ThreadFunc(HGThread thread, HGPointer param); + static void HGAPI ThreadFunc(HGThread thread, HGPointer param); signals: void updateProgress(int value); diff --git a/app/scanner/dialog_multirotateimagefile.cpp b/app/scanner/dialog_multirotateimagefile.cpp index 048949bd..a57d8afc 100644 --- a/app/scanner/dialog_multirotateimagefile.cpp +++ b/app/scanner/dialog_multirotateimagefile.cpp @@ -34,7 +34,7 @@ Dialog_MultiRotateImageFile::~Dialog_MultiRotateImageFile() delete ui; } -void Dialog_MultiRotateImageFile::ThreadFunc(HGThread thread, HGPointer param) +void HGAPI Dialog_MultiRotateImageFile::ThreadFunc(HGThread thread, HGPointer param) { (void)thread; Dialog_MultiRotateImageFile *p = (Dialog_MultiRotateImageFile *)param; diff --git a/app/scanner/dialog_multirotateimagefile.h b/app/scanner/dialog_multirotateimagefile.h index 0265a3e3..40c31d16 100644 --- a/app/scanner/dialog_multirotateimagefile.h +++ b/app/scanner/dialog_multirotateimagefile.h @@ -20,7 +20,7 @@ signals: void refreshImageFile(const QString &fileName); private: - static void ThreadFunc(HGThread thread, HGPointer param); + static void HGAPI ThreadFunc(HGThread thread, HGPointer param); signals: void updateProgress(int value); diff --git a/app/scanner/dialog_updateprogress.cpp b/app/scanner/dialog_updateprogress.cpp index 52ce6496..e4ad7efc 100644 --- a/app/scanner/dialog_updateprogress.cpp +++ b/app/scanner/dialog_updateprogress.cpp @@ -34,7 +34,7 @@ Dialog_updateProgress::~Dialog_updateProgress() delete ui; } -HGInt Dialog_updateProgress::HttpDownloadThreadFunc(HGULonglong totalSize, HGULonglong nowSize, HGPointer param) +HGInt HGAPI Dialog_updateProgress::HttpDownloadThreadFunc(HGULonglong totalSize, HGULonglong nowSize, HGPointer param) { Dialog_updateProgress *p = (Dialog_updateProgress *)param; if (p->m_stopThread) @@ -50,7 +50,7 @@ HGInt Dialog_updateProgress::HttpDownloadThreadFunc(HGULonglong totalSize, HGULo return 0; } -void Dialog_updateProgress::ThreadFunc(HGThread thread, HGPointer param) +void HGAPI Dialog_updateProgress::ThreadFunc(HGThread thread, HGPointer param) { (void)thread; Dialog_updateProgress *p = (Dialog_updateProgress *)param; diff --git a/app/scanner/dialog_updateprogress.h b/app/scanner/dialog_updateprogress.h index 57c84138..688c908f 100644 --- a/app/scanner/dialog_updateprogress.h +++ b/app/scanner/dialog_updateprogress.h @@ -19,8 +19,8 @@ public: const QString &savePath, QWidget *parent = nullptr); ~Dialog_updateProgress(); private: - static HGInt HttpDownloadThreadFunc(HGULonglong totalSize, HGULonglong nowSize, HGPointer param); - static void ThreadFunc(HGThread thread, HGPointer param); + static HGInt HGAPI HttpDownloadThreadFunc(HGULonglong totalSize, HGULonglong nowSize, HGPointer param); + static void HGAPI ThreadFunc(HGThread thread, HGPointer param); signals: void updateProgress(int value); diff --git a/app/scanner/mainwindow.cpp b/app/scanner/mainwindow.cpp index db3df631..0c73fbc9 100644 --- a/app/scanner/mainwindow.cpp +++ b/app/scanner/mainwindow.cpp @@ -2404,7 +2404,7 @@ int MainWindow::sane_ex_callback(SANE_Handle hdev, int code, void *data, unsigne return 0; } -void MainWindow::CrashFunc(HGPointer crashAddr, HGPointer param) +void HGAPI MainWindow::CrashFunc(HGPointer crashAddr, HGPointer param) { MainWindow *p = (MainWindow *)param; diff --git a/app/scanner/mainwindow.h b/app/scanner/mainwindow.h index 9729551c..8e37005a 100644 --- a/app/scanner/mainwindow.h +++ b/app/scanner/mainwindow.h @@ -222,7 +222,7 @@ protected: private: static int sane_ex_callback(SANE_Handle hdev, int code, void *data, unsigned int* len, void *param); - static void CrashFunc(HGPointer crashAddr, HGPointer param); + static void HGAPI CrashFunc(HGPointer crashAddr, HGPointer param); HGUInt getDpi(); QString getCacheFileName(HGImage img); diff --git a/app/upgrade/mainwindow.cpp b/app/upgrade/mainwindow.cpp index 063e6883..df030fc1 100644 --- a/app/upgrade/mainwindow.cpp +++ b/app/upgrade/mainwindow.cpp @@ -83,7 +83,7 @@ bool MainWindow::Upgrade(const std::string& pkgPath) return ret; } -void MainWindow::ThreadFunc(HGThread thread, HGPointer param) +void HGAPI MainWindow::ThreadFunc(HGThread thread, HGPointer param) { (void)thread; MainWindow* p = (MainWindow*)param; diff --git a/app/upgrade/mainwindow.h b/app/upgrade/mainwindow.h index 7468d40b..c0d53d37 100644 --- a/app/upgrade/mainwindow.h +++ b/app/upgrade/mainwindow.h @@ -23,7 +23,7 @@ signals: private: static bool Upgrade(const std::string& pkgPath); - static void ThreadFunc(HGThread thread, HGPointer param); + static void HGAPI ThreadFunc(HGThread thread, HGPointer param); private: Ui::MainWindow *ui;