ScreenLockDetector/src/powermonitor.h

38 lines
962 B
C
Raw Normal View History

#ifndef POWERMONITOR_H
#define POWERMONITOR_H
2025-11-11 20:39:04 +08:00
#include "platform/powermonitor_base.h"
/**
* @brief
*
*
* /
*/
class PowerMonitor : public PowerMonitorBase
{
Q_OBJECT
public:
/**
* @brief
* @param parent
*
*
* - Linux: PowerMonitorLinux (使 DBus login1)
* - macOS: PowerMonitorMacOS (使 NSWorkspace )
*/
explicit PowerMonitor(QObject *parent = nullptr);
~PowerMonitor() override;
/**
* @brief
* @return true false
*/
bool initialize() override;
private:
PowerMonitorBase *m_impl; // 平台特定的实现
};
#endif // POWERMONITOR_H