// SPDX-FileCopyrightText: 2026 Matvey Shcherbinin // SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL // version 0.x "hope". 0.1, 0.2, etc // KOutNet entry point // // Startup is split into named phases in src/app: AppStartup does the global // setup, Session builds the long-lived objects, QmlSetup wires the engine and // the window. This file only keeps their order. #include "app/AppStartup.h" #include "app/QmlSetup.h" #include "app/Session.h" #include #include int main(int argc, char *argv[]) { koutnet::app::initQApplication(); QApplication app(argc, argv); // hide on close so the tray keeps the app alive; Qt would quit otherwise QApplication::setQuitOnLastWindowClosed(false); koutnet::app::initIcons(); koutnet::app::initTranslations(); KAboutData aboutData = koutnet::app::makeAboutData(); koutnet::app::registerApplication(app, aboutData); const auto session = koutnet::app::createSession(app); if (!session) return 1; koutnet::app::QmlEngineScope qml(app, aboutData, *session); qml.engine().loadFromModule("koutnet.app", "Main"); koutnet::app::finishStartup(app, qml.engine(), *session); return app.exec(); } // look! // // /|、 // (˚ˎ 。7 // |、˜\ 。 // じしˍ,)ノ // // its cat. i like cats // // last time people was there: // 25.11.2026 // (pls continue tradition)