qleany 1.7.3

Architecture generator for Rust and C++/Qt applications.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Generated by Qleany v0.0.1 from slint_feature_commands.tera

//! HandlingAppLifecycle feature commands for Slint UI
#![allow(unused_imports, dead_code)]

use crate::app_context::AppContext;
use handling_app_lifecycle::handling_app_lifecycle_controller;

pub fn initialize_app(ctx: &AppContext) -> Result<(), String> {
    handling_app_lifecycle_controller::initialize_app(&ctx.db_context, &ctx.event_hub)
        .map_err(|e| format!("Error while initialize_app: {:?}", e))
}

pub fn clean_up_before_exit(ctx: &AppContext) -> Result<(), String> {
    handling_app_lifecycle_controller::clean_up_before_exit(&ctx.db_context, &ctx.event_hub)
        .map_err(|e| format!("Error while clean_up_before_exit: {:?}", e))
}