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. | |
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.
| 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.
| exeDir | The executable directory for resolving file paths. |
| configManager | The configuration service for settings. |
| keybindProvider | The keybind provider for input handling. |
| soundManager | The sound manager for audio feedback. |
|
inlineoverridevirtual |
Checks if screenshot mode is active.
Implements IScreenshotManager.
|
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.
| vpxFile | The path to the VPX file to launch. |
Implements IScreenshotManager.
Here is the call graph for this function: