Refactory lock screen and screen saver.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user