2024-06-13 15:41:40 +08:00
|
|
|
#include "Application.h"
|
2024-05-21 21:09:55 +08:00
|
|
|
#include "BoostLog.h"
|
2024-06-13 15:41:40 +08:00
|
|
|
#include "DeviceDiscovery.h"
|
2024-05-21 21:09:55 +08:00
|
|
|
#include "Widget.h"
|
|
|
|
|
|
|
|
int main(int argc, char *argv[]) {
|
2024-06-13 15:41:40 +08:00
|
|
|
using namespace Amass;
|
2024-05-21 21:09:55 +08:00
|
|
|
boost::log::initialize("logs/app");
|
|
|
|
|
2024-06-13 15:41:40 +08:00
|
|
|
auto app = Singleton<Application>::instance<Construct>(argc, argv);
|
|
|
|
app->initializeLogger();
|
2024-05-21 21:09:55 +08:00
|
|
|
|
2024-06-13 15:41:40 +08:00
|
|
|
// Widget w;
|
|
|
|
// w.setWindowTitle("L015上位机工具");
|
|
|
|
// w.setMinimumWidth(1120);
|
|
|
|
// w.setMinimumHeight(640);
|
|
|
|
// w.show();
|
|
|
|
// QObject::connect(app.get(), &Application::newLog, &w, &Widget::onNewLog);
|
|
|
|
|
|
|
|
return app->exec();
|
2024-05-21 21:09:55 +08:00
|
|
|
}
|