# reatmos/whitelist_antivirus-windows architecture

> Architecture diagram of the GitHub repository reatmos/whitelist_antivirus-windows, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2024-12-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/reatmos/whitelist_antivirus-windows
- Repository: https://github.com/reatmos/whitelist_antivirus-windows

## Overview

##### Main Components Identification

a) Core Application Components:
- C++ Main Application (WLAV)
- Python Integration Layer
- GUI Interface (QT-based)
- Database Layer (SQLite3)
- File Scanning Engine
- External Services Integration (VirusTotal, implied by CheckVT.py)

##### Integration Points

Clear connections between:

##### Technical Components

Dependencies:
- OpenSSL (security and cryptography)
- QT Framework (GUI)
- Python Runtime
- SQLite3
- libcurl (for API communications)

Use the following visual elements:
- Blue rectangles: Core application components
- Green rectangles: External dependencies
- Yellow rectangles: Database components
- Red rectangles: Security-related components

##### Component Relationships

Key interactions:
**GUI Layer → Application Core → File Scanner**
- ↓
**Python Scripts ← → External Services**
- ↓
- Database Layer

## Diagram (Mermaid)

```mermaid
flowchart TB
    %% Styles
    classDef gui fill:#a8d1ff,stroke:#000
    classDef core fill:#aaffaa,stroke:#000
    classDef python fill:#ffdb99,stroke:#000
    classDef database fill:#ffb3b3,stroke:#000
    classDef external fill:#e6ccff,stroke:#000
    classDef security fill:#ff9999,stroke:#000

    %% Presentation Layer
    subgraph GUI
        QT[QT GUI Interface]:::gui
        UI[WLAV UI]:::gui
        RC[Resource Files]:::gui
    end

    %% Application Layer
    subgraph Core
        Main[Main Application]:::core
        Scanner[File Scanner]:::core
        Headers[Core Headers]:::core
    end

    subgraph Python
        PyManager[Python Script Manager]:::python
        OutputBDB[OutputBDB]:::python
        OutputNDB[OutputNDB]:::python
        OutputWDB[OutputWDB]:::python
        CheckVT[CheckVT]:::python
    end

    %% Data Layer
    subgraph Storage
        SQLite[SQLite Database]:::database
        WhiteList[Whitelist DB]:::database
        Signatures[File Signatures]:::database
    end

    %% External Services
    subgraph External
        VT[VirusTotal API]:::external
        OpenSSL[OpenSSL]:::security
        LibCurl[LibCurl]:::external
    end

    %% Relationships
    QT --> UI
    UI --> Main
    RC --> UI
    Main --> Scanner
    Main --> Headers
    Main --> PyManager
    PyManager --> OutputBDB
    PyManager --> OutputNDB
    PyManager --> OutputWDB
    PyManager --> CheckVT
    CheckVT --> LibCurl
    LibCurl --> VT
    Scanner --> SQLite
    Scanner --> WhiteList
    Scanner --> Signatures
    Scanner --> OpenSSL

    %% Click Events
    click UI "https://github.com/reatmos/WhiteList_AntiVirus-Windows/blob/main/WLAV/wlav.ui"
    click RC "https://github.com/reatmos/WhiteList_AntiVirus-Windows/blob/main/WLAV/wlav.qrc"
    click Main "https://github.com/reatmos/WhiteList_AntiVirus-Windows/blob/main/WLAV/main.cpp"
    click Scanner "https://github.com/reatmos/WhiteList_AntiVirus-Windows/blob/main/WLAV/wlav.cpp"
    click Headers "https://github.com/reatmos/WhiteList_AntiVirus-Windows/blob/main/WLAV/include/header.h"
    click OutputBDB "https://github.com/reatmos/WhiteList_AntiVirus-Windows/blob/main/WLAV/Scripts/OutputBDB.py"
    click OutputNDB "https://github.com/reatmos/WhiteList_AntiVirus-Windows/blob/main/WLAV/Scripts/OutputNDB.py"
    click OutputWDB "https://github.com/reatmos/WhiteList_AntiVirus-Windows/blob/main/WLAV/Scripts/OutputWDB.py"
    click CheckVT "https://github.com/reatmos/WhiteList_AntiVirus-Windows/blob/main/WLAV/CheckVT.py"
    click SQLite "https://github.com/reatmos/WhiteList_AntiVirus-Windows/blob/main/packages/sqlite3_c_plus_plus.1.0.3/build/native/include/sqlite3.h"
    click LibCurl "https://github.com/reatmos/WhiteList_AntiVirus-Windows/blob/main/WLAV/include/curl.h"

    %% Legend
    subgraph Legend
        L1[GUI Components]:::gui
        L2[Core Components]:::core
        L3[Python Scripts]:::python
        L4[Database Components]:::database
        L5[External Services]:::external
        L6[Security Components]:::security
    end
```
