mirror of
https://github.com/Almamu/linux-wallpaperengine.git
synced 2025-07-16 06:12:23 +08:00
25 lines
543 B
C++
25 lines
543 B
C++
#pragma once
|
|
|
|
namespace WallpaperEngine::WebBrowser {
|
|
class CWebBrowserContext {
|
|
public:
|
|
CWebBrowserContext (int argc, char** argv);
|
|
~CWebBrowserContext();
|
|
|
|
void markAsUsed();
|
|
[[nodiscard]] bool isUsed() const;
|
|
void stop();
|
|
|
|
private:
|
|
/**
|
|
* Handles the actual initialization logic
|
|
*/
|
|
void delayedInitialization();
|
|
|
|
int m_argc;
|
|
char** m_argv;
|
|
bool m_stopped;
|
|
bool m_inUse;
|
|
};
|
|
} // namespace WallpaperEngine::WebBrowser
|