main.cpp
File Header Information
| Field | Value |
|---|---|
| SPDX Comment | Entry Point |
| SPDX Type | SOURCE |
| Contributor | ZHENG Robert |
| License ID | MIT |
| File | main.cpp |
| Description | Entry Point |
| Version | 0.15.0 |
| Date | 2026-01-24 |
| Author | ZHENG Robert (robert@hase-zheng.net) |
| Copyright | Copyright (c) 2026 ZHENG Robert |
| License | MIT |
Table of Contents
- File Header Information
- API Documentation
- namespace fs = std::filesystem
- void signalHandler(int signum)
- int main(int argc, char *argv[])
- QCoreApplication qtApp(argc, argv)
- else spdlog::set_level(spdlog::level::info)
- std::filesystem::path dbP(dbFullPath)
- rz::service::SmtpService smtpService(configModel, &qtApp)
- rz::service::NotificationService notifyService(&smtpService)
- rz::controller::AuthController authController(¬ifyService)
- std::thread serverThread([&app, serverPort, &qtApp]()
API Documentation
namespace fs = std::filesystem
fs namespace.
void signalHandler(int signum)
Signal handler callback.
| Parameter | Description |
|---|---|
signum | The signal number (e.g., SIGINT, SIGTERM). |
int main(int argc, char *argv[])
Main entry point of the application.
| Parameter | Description |
|---|---|
argc | Argument count. |
argv | Argument vector. |
Returns: Exit code.
QCoreApplication qtApp(argc, argv)
Function implementation.
else spdlog::set_level(spdlog::level::info)
Function implementation.
std::filesystem::path dbP(dbFullPath)
Function implementation.
rz::service::SmtpService smtpService(configModel, &qtApp)
Function implementation.
rz::service::NotificationService notifyService(&smtpService)
Function implementation.
rz::controller::AuthController authController(¬ifyService)
Function implementation.
std::thread serverThread([&app, serverPort, &qtApp]()
Function implementation.