ASAPCabinetFE
 
Loading...
Searching...
No Matches
ScreenshotManager Class Reference

Manages screenshot capture mode. More...

#include <screenshot_manager.h>

+ Inheritance diagram for ScreenshotManager:
+ Collaboration diagram for ScreenshotManager:

Public Member Functions

 ScreenshotManager (const std::string &exeDir, IConfigService *configManager, IKeybindProvider *keybindProvider, ISoundManager *soundManager)
 Constructs a ScreenshotManager instance.
 
void launchScreenshotMode (const std::string &vpxFile) override
 Launches screenshot mode for a VPX file.
 
bool isActive () const override
 Checks if screenshot mode is active.
 
- Public Member Functions inherited from IScreenshotManager
virtual ~IScreenshotManager ()=default
 Virtual destructor for proper cleanup in derived classes.
 

Detailed Description

Manages screenshot capture mode.

This class implements IScreenshotManager to coordinate screenshot capture by launching a process (e.g., a VPX file), displaying a UI with ScreenshotWindow, and capturing screenshots with ScreenshotCapture. It uses IConfigService for settings, IKeybindProvider for inputs, and ISoundManager for audio feedback.

Constructor & Destructor Documentation

◆ ScreenshotManager()

ScreenshotManager::ScreenshotManager ( const std::string &  exeDir,
IConfigService configManager,
IKeybindProvider keybindProvider,
ISoundManager soundManager 
)

Constructs a ScreenshotManager instance.

Initializes the manager with dependencies for configuration, keybindings, sound, and the executable directory for file paths.

Parameters
exeDirThe executable directory for resolving file paths.
configManagerThe configuration service for settings.
keybindProviderThe keybind provider for input handling.
soundManagerThe sound manager for audio feedback.

Member Function Documentation

◆ isActive()

bool ScreenshotManager::isActive ( ) const
inlineoverridevirtual

Checks if screenshot mode is active.

Returns
True if screenshot mode is running, false otherwise.

Implements IScreenshotManager.

◆ launchScreenshotMode()

void ScreenshotManager::launchScreenshotMode ( const std::string &  vpxFile)
overridevirtual

Launches screenshot mode for a VPX file.

Starts a process for the specified VPX file, displays the screenshot UI, and prepares for capturing screenshots.

Parameters
vpxFileThe path to the VPX file to launch.

Implements IScreenshotManager.

+ Here is the call graph for this function:

The documentation for this class was generated from the following files: