11#ifndef INCGUARD_MGL_APPLICATION_MODULE_MACOS_H_1613958478
12#define INCGUARD_MGL_APPLICATION_MODULE_MACOS_H_1613958478
15#if defined(MGL_TARGET_MACOS)
17#include <IOKit/pwr_mgt/IOPMLib.h>
24class MacOSApplicationModule :
public CommonApplicationModule
27 MacOSApplicationModule() noexcept;
29 bool Caffeinate(
bool isEnabled) noexcept override;
30 [[nodiscard]]
bool IsCaffeinated() const noexcept override;
32 const ArgumentArray &GetArguments() const noexcept override;
34 void Quit() noexcept override;
43 [[nodiscard]]
bool IsAvailableQuit() const noexcept
override
48 bool SetClipboardText(
const char *text)
noexcept override;
49 [[nodiscard]]
bool GetClipboardText(STL::string &text)
noexcept override;
58 [[nodiscard]]
bool IsAvailableClipboard() const noexcept
override
65 IOPMAssertionID _caffeinateAssertionID;
STL::vector< STL::string > ArgumentArray
引数配列の型
Definition mgl_application_module_interface.h:22