# kjyoffice/powerpoint.remoteslideshow architecture

> Architecture diagram of the GitHub repository kjyoffice/powerpoint.remoteslideshow, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-01-03). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/kjyoffice/powerpoint.remoteslideshow
- Repository: https://github.com/kjyoffice/powerpoint.remoteslideshow

## Overview

a. Primary Flows:
- PowerPoint ↔ Server (Slide control and export)
- Server ↔ Mobile Client (HTTP/80 port)
- User Authentication Flow

##### Key Technical Elements to Highlight

- HTTP Server (Port 80)
- File System Storage (for slide images)
- Authentication System
- PowerPoint COM Integration

##### Architectural Layers (Use horizontal layers)

Top to bottom:
- Presentation Layer (HTML/CSS)
- Server Logic Layer (C# Components)
- PowerPoint Integration Layer
- Storage Layer (Slide Images)

##### Specific Details

a. Components from XProvider:
- Model (ResponseContent, SlideItem)
- AppConfig
- Worker (SingleServer)
- TypeValue (SlideShowModeType)

b. Network Configuration:
- Port 80 specification
- Virtual directory (/SlideShow/)
- Local network connectivity

**[Mobile Client Layer]**

- ▼
**[Web Server Layer (Port 80)]**

- Authentication
- Slide Image Serving
- Control Commands

- ▼
**[Application Core Layer]**

- PowerPoint Integration
- Slide Management
- Configuration

- ▼
**[Storage Layer]**

Important Considerations:

##### Special Notes
- Security aspects (admin rights, firewall settings)
- Image export path configuration
- Network boundaries
- Authentication points

## Diagram (Mermaid)

```mermaid
graph TB
    %% Styles and Classes
    classDef client fill:#a8d1ff,stroke:#333
    classDef server fill:#90EE90,stroke:#333
    classDef external fill:#FFE5B4,stroke:#333
    classDef storage fill:#E6E6FA,stroke:#333
    classDef security fill:#FFB6C1,stroke:#333
    classDef config fill:#DDA0DD,stroke:#333

    %% Client Layer
    subgraph ClientLayer
        Browser["Web Browser Interface"]
        HTML["HTML/CSS Frontend"]
    end

    %% Server Layer
    subgraph ServerLayer
        WebServer["Web Server Module<br/>(Port 80)"]
        Auth["Authentication System"]
        MimeHandler["MIME Type Handler"]
    end

    %% Application Core
    subgraph CoreLayer
        PPTIntegration["PowerPoint Integration"]
        SlideManagement["Slide Management"]
        ConfigManager["Configuration Manager"]
        NetworkConfig["Network Configuration"]
        MainApp["Main Application"]
    end

    %% Storage Layer
    subgraph StorageLayer
        FileSystem["File System Storage<br/>(Slide Images)"]
        Models["Data Models<br/>- ResponseContent<br/>- SlideItem"]
        SlideShowMode["Slide Show Mode Types"]
    end

    %% External Systems
    MSPowerPoint["Microsoft PowerPoint<br/>(2007/2010/365)"]:::external

    %% Relationships
    Browser --> WebServer
    HTML --> Browser
    WebServer --> Auth
    WebServer --> MimeHandler
    WebServer --> PPTIntegration
    PPTIntegration --> MSPowerPoint
    PPTIntegration --> SlideManagement
    SlideManagement --> FileSystem
    ConfigManager --> NetworkConfig
    MainApp --> PPTIntegration
    MainApp --> WebServer
    SlideManagement --> Models
    SlideManagement --> SlideShowMode

    %% Click Events
    click Browser "https://github.com/kjyoffice/PowerPoint.RemoteSlideShow/tree/master/PowerPoint.RemoteSlideShow.Server/HTML/"
    click HTML "https://github.com/kjyoffice/PowerPoint.RemoteSlideShow/blob/master/PowerPoint.RemoteSlideShow.Server/CSS/DefaultStyle.css"
    click WebServer "https://github.com/kjyoffice/PowerPoint.RemoteSlideShow/blob/master/PowerPoint.RemoteSlideShow.Server/XProvider/Worker/SingleServer.cs"
    click Auth "https://github.com/kjyoffice/PowerPoint.RemoteSlideShow/blob/master/PowerPoint.RemoteSlideShow.Server/HTML/Login.html"
    click PPTIntegration "https://github.com/kjyoffice/PowerPoint.RemoteSlideShow/blob/master/PowerPoint.RemoteSlideShow.Server/RemoteSlideShow.cs"
    click ConfigManager "https://github.com/kjyoffice/PowerPoint.RemoteSlideShow/blob/master/PowerPoint.RemoteSlideShow.Server/XProvider/AppConfig/AppSettings.cs"
    click NetworkConfig "https://github.com/kjyoffice/PowerPoint.RemoteSlideShow/blob/master/PowerPoint.RemoteSlideShow.Server/XProvider/Value/NetworkValue.cs"
    click Models "https://github.com/kjyoffice/PowerPoint.RemoteSlideShow/blob/master/PowerPoint.RemoteSlideShow.Server/XProvider/Model/ResponseContent.cs"
    click SlideShowMode "https://github.com/kjyoffice/PowerPoint.RemoteSlideShow/blob/master/PowerPoint.RemoteSlideShow.Server/XProvider/TypeValue/SlideShowdModeType.cs"
    click MainApp "https://github.com/kjyoffice/PowerPoint.RemoteSlideShow/blob/master/PowerPoint.RemoteSlideShow.Server/MainFrame.cs"
    click MimeHandler "https://github.com/kjyoffice/PowerPoint.RemoteSlideShow/blob/master/PowerPoint.RemoteSlideShow.Server/XProvider/Value/MimeTypeValue.cs"

    %% Style Applications
    class Browser,HTML client
    class WebServer,Auth,MimeHandler server
    class PPTIntegration,SlideManagement,ConfigManager,NetworkConfig,MainApp server
    class FileSystem,Models,SlideShowMode storage
    class Auth security
    class ConfigManager,NetworkConfig config

    %% Legend
    subgraph Legend
        Client["Client Component"]:::client
        Server["Server Component"]:::server
        External["External System"]:::external
        Storage["Storage Component"]:::storage
        SecurityComp["Security Component"]:::security
        ConfigComp["Configuration Component"]:::config
    end
```
