Logo

Cake Planner

Backend

main.cpp

File Header Information

FieldValue
SPDX CommentEntry Point
SPDX TypeSOURCE
ContributorZHENG Robert
License IDMIT
Filemain.cpp
DescriptionEntry Point
Version0.15.0
Date2026-01-24
AuthorZHENG Robert (robert@hase-zheng.net)
CopyrightCopyright (c) 2026 ZHENG Robert
LicenseMIT

Table of Contents

API Documentation

namespace fs = std::filesystem

fs namespace.


void signalHandler(int signum)

Signal handler callback.

ParameterDescription
signumThe signal number (e.g., SIGINT, SIGTERM).

int main(int argc, char *argv[])

Main entry point of the application.

ParameterDescription
argcArgument count.
argvArgument 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.