2022-06-29 09:46:00 +00:00
|
|
|
#ifndef MAINWINDOW_H
|
|
|
|
#define MAINWINDOW_H
|
|
|
|
|
|
|
|
#include <QMainWindow>
|
2022-06-30 08:42:46 +00:00
|
|
|
#include "base/HGThread.h"
|
2022-06-29 09:46:00 +00:00
|
|
|
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
namespace Ui { class MainWindow; }
|
|
|
|
QT_END_NAMESPACE
|
|
|
|
|
|
|
|
class MainWindow : public QMainWindow
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2022-07-14 04:01:39 +00:00
|
|
|
MainWindow(const std::string &appName, const std::string &pkgPath, QWidget *parent = nullptr);
|
2022-06-29 09:46:00 +00:00
|
|
|
~MainWindow();
|
|
|
|
|
2022-06-30 08:42:46 +00:00
|
|
|
signals:
|
|
|
|
void closeWnd();
|
|
|
|
|
|
|
|
private:
|
|
|
|
static void ThreadFunc(HGThread thread, HGPointer param);
|
|
|
|
|
2022-06-29 09:46:00 +00:00
|
|
|
private:
|
|
|
|
Ui::MainWindow *ui;
|
2022-06-30 08:42:46 +00:00
|
|
|
|
2022-07-14 04:01:39 +00:00
|
|
|
std::string m_appName;
|
2022-06-30 08:42:46 +00:00
|
|
|
std::string m_pkgPath;
|
|
|
|
HGThread m_thread;
|
2022-06-29 09:46:00 +00:00
|
|
|
};
|
|
|
|
#endif // MAINWINDOW_H
|