FOSSredder 0.5.0
Loading...
Searching...
No Matches
main.cpp File Reference

Initializes the desktop application and shared runtime infrastructure. More...

#include "analysis-rendering/OpenCvAnalysisRendererAdapter.h"
#include "archive/ZipArchiveAdapter.h"
#include "core/application/analysis/AnalysisService.h"
#include "core/application/annual/AnnualService.h"
#include "core/application/export/ExportService.h"
#include "core/application/import/IImportStatement.h"
#include "core/application/import/StatementImportRunner.h"
#include "core/application/workspace/WorkspaceSessionState.h"
#include "core/ports/infra/document-image-processing/IDocumentImageProcessor.h"
#include "core/ports/infra/pdf-rendering/IPdfRenderer.h"
#include "core/ports/infra/text-recognition/ITextRecognizer.h"
#include "core/ports/usecases/analysis/IAnalysisRunner.h"
#include "core/ports/usecases/annual/IAnnualRunner.h"
#include "core/ports/usecases/export/IExportRunner.h"
#include "core/ports/usecases/import/IImportRunner.h"
#include "core/ports/workspace/IWorkspaceReader.h"
#include "core/ports/workspace/IWorkspaceWriter.h"
#include <QApplication>
#include <QByteArray>
#include <QIcon>
#include <QMessageBox>
#include <QObject>
#include <QQuickStyle>
#include "persistence/Factory.h"
#include "persistence/WorkspaceStateStore.h"
#include "core/application/storage/StorageManager.h"
#include "core/application/workspace/WorkspaceFacade.h"
#include "core/errors/ErrorCodes.h"
#include "core/errors/ErrorReporting.h"
#include "core/ports/diagnostics/IDiagnostics.h"
#include "diagnostics/DiagnosticsDefaults.h"
#include "diagnostics/ErrorReporter.h"
#include "diagnostics/FileDiagnostics.h"
#include "ui/shell/Defaults.h"
#include "xlsx-writer/XlntTableWriterAdapter.h"
#include <QDir>
#include <QStandardPaths>
#include <QtGlobal>
#include <cstdio>
#include <filesystem>
#include <iostream>
#include <mutex>
#include <string_view>
Include dependency graph for main.cpp:

Go to the source code of this file.

Functions

std::shared_ptr< core::ports::pdf_rendering::IPdfRenderer > createPdfRendererAdapter (std::shared_ptr< core::ports::diagnostics::IDiagnostics > dbg)
std::shared_ptr< core::ports::document_image_processing::IDocumentImageProcessor > createDocumentImageProcessorAdapter (std::shared_ptr< core::ports::diagnostics::IDiagnostics > dbg)
std::shared_ptr< core::ports::text_recognition::ITextRecognizer > createTextRecognizerAdapter (std::shared_ptr< core::ports::diagnostics::IDiagnostics > dbg)
int startQmlApp (QApplication &app, core::ports::workspace::IWorkspaceReader &workspaceReader, core::ports::workspace::IWorkspaceWriter &workspaceWriter, std::shared_ptr< core::ports::diagnostics::IErrorReporter > errorReporter, std::shared_ptr< core::ports::analysis::IAnalysisRunner > analysisRunner, std::shared_ptr< core::ports::annual::IAnnualRunner > annualRunner, std::shared_ptr< core::ports::exporting::IExportRunner > exportRunner, std::shared_ptr< core::ports::importing::IImportRunner > importRunner)
 Start the QML application UI.
int main (int argc, char *argv[])

Detailed Description

Initializes the desktop application and shared runtime infrastructure.

Definition in file main.cpp.

Function Documentation

◆ createDocumentImageProcessorAdapter()

std::shared_ptr< core::ports::document_image_processing::IDocumentImageProcessor > createDocumentImageProcessorAdapter ( std::shared_ptr< core::ports::diagnostics::IDiagnostics > dbg)

Definition at line 114 of file OpenCvDocumentImageProcessorAdapter.cpp.

◆ createPdfRendererAdapter()

std::shared_ptr< core::ports::pdf_rendering::IPdfRenderer > createPdfRendererAdapter ( std::shared_ptr< core::ports::diagnostics::IDiagnostics > dbg)

Definition at line 86 of file PopplerPdfRendererAdapter.cpp.

◆ createTextRecognizerAdapter()

std::shared_ptr< core::ports::text_recognition::ITextRecognizer > createTextRecognizerAdapter ( std::shared_ptr< core::ports::diagnostics::IDiagnostics > dbg)

Definition at line 146 of file TesseractTextRecognizerAdapter.cpp.

◆ main()

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

Definition at line 325 of file main.cpp.

Here is the call graph for this function:

◆ startQmlApp()

int startQmlApp ( QApplication & app,
core::ports::workspace::IWorkspaceReader & workspaceReader,
core::ports::workspace::IWorkspaceWriter & workspaceWriter,
std::shared_ptr< core::ports::diagnostics::IErrorReporter > errorReporter,
std::shared_ptr< core::ports::analysis::IAnalysisRunner > analysisRunner,
std::shared_ptr< core::ports::annual::IAnnualRunner > annualRunner,
std::shared_ptr< core::ports::exporting::IExportRunner > exportRunner,
std::shared_ptr< core::ports::importing::IImportRunner > importRunner )
extern

Start the QML application UI.

Implemented in main_qml.cpp.

Start the QML application UI.

Parameters
appReference to the already-created QApplication instance.
workspaceReaderWorkspace read port exposed to the UI composition.
workspaceWriterWorkspace write port exposed to the UI composition.
errorReporterReporter used by UI and workspace boundaries.
analysisRunnerAnalysis use-case runner.
annualRunnerAnnual use-case runner.
exportRunnerExport use-case runner.
importRunnerImport use-case runner.
Returns
Return value from QApplication::exec().

Definition at line 34 of file main_qml.cpp.

Here is the call graph for this function: