Commit Graph

12 Commits

Author SHA1 Message Date
hoenking 1eff46e523 调整代码结构 2025-11-11 20:39:04 +08:00
ubuntu1804 6722ed4d5c Split ScreenLockDetector into platform classes
Introduce ScreenLockDetectorBase and move platform logic into
ScreenLockDetectorLinux and ScreenLockDetectorMacOS. Rename mac files to
*_macos, add new base/linux source files, and update CMakeLists to
include them. Convert ScreenLockDetector into a factory/facade that
creates and forwards signals to the platform detector. Add refactoring
docs and a migration guide.
2025-11-11 13:03:59 +08:00
ubuntu1804 bff9ded0fa Rename login interface to UKUI ScreenSaver
Replace m_loginInterface/m_loginConnected with
m_ukuiInterface/m_ukuiConnected, update connection/teardown logic and
log messages, and query lock state via UKUI's GetLockState method
instead of the previous login manager property call.
2025-11-10 11:24:10 +08:00
ubuntu1804 eaa40929bd Use session D-Bus for ukui ScreenSaver connections
Replace QDBusConnection::systemBus() with QDBusConnection::sessionBus()
when creating the org.ukui.ScreenSaver interface and connecting
Lock/Unlock signals so notifications are tied to the user session
2025-11-10 11:09:07 +08:00
ubuntu1804 ac16f7d054 增加支持KylinOS 2025-11-10 10:34:04 +08:00
hoenking 471b4c7b3b Add macOS support and cross-platform CMake 2025-11-08 16:57:58 +08:00
ubuntu1804 7e468e0232 Track and display screen lock info
Record lock time, duration and count in CustomWidget and show a
lock-info overlay. setPaintingEnabled now logs lock/unlock times and
increments lock count. Emit screenLocked/screenUnlocked signals in
ScreenLockDetector. Minor UI and whitespace cleanup.
2025-11-08 11:37:10 +08:00
ubuntu1804 7e919ddef9 Enable Login Manager and stop emitting unlock
Call connectToLoginManager() in initialize(). Comment out
lockStateChanged and screenUnlocked emissions to silence them.
2025-11-08 10:51:45 +08:00
ubuntu1804 03c763431a 支持deepin dde 2025-11-08 09:56:34 +08:00
ubuntu1804 fa4514d4eb Improve DBus screen lock detection and debugging 2025-11-07 15:47:48 +08:00
ubuntu1804 778a697336 Add DEB packaging and Deepin support 2025-11-07 14:57:13 +08:00
ubuntu1804 772cc2c3e5 init 2025-11-07 10:56:45 +08:00