Refactory lock screen and screen saver.

This commit is contained in:
sunwen
2024-05-06 16:51:15 +08:00
parent 6f13ef7dc7
commit 29fea313ad
8 changed files with 21 additions and 52 deletions

View File

@@ -1,4 +1,5 @@
#include "GetLockScreenTimeHelper.h"
#include "Locker.h"
#include "json/jsonobject.h"
@@ -28,6 +29,7 @@ QString GetLockScreenTimeHelper::getLockScreenTimeStr()
void GetLockScreenTimeHelper::setLockScreenTime(const QString& aTime)
{
int time = aTime.section(" ", 0, 0).toInt();
Locker::getInstance()->setTimer(time * 1000 * 60);
JsonObject::Instance()->setLockScreenTime(time);
}