40 lines
871 B
C++
40 lines
871 B
C++
/*----------------------------------------------------------------------------
|
|
* Copyright (c) TJD Technologies Co., Ltd. 2024. All rights reserved.
|
|
*
|
|
* Description: TjdUiAppPowerSavingDialModel.h
|
|
*
|
|
* Author: luziquan@ss-tjd.com
|
|
*
|
|
* Create: 2024-11-18
|
|
*--------------------------------------------------------------------------*/
|
|
|
|
#ifndef TJD_UI_APP_BATTERY_SAVER_MODEL_H
|
|
#define TJD_UI_APP_BATTERY_SAVER_MODEL_H
|
|
|
|
namespace TJD {
|
|
|
|
struct BatterySaverData {
|
|
int month;
|
|
int day;
|
|
int hour;
|
|
int minute;
|
|
int second;
|
|
int week;
|
|
int step;
|
|
};
|
|
|
|
class TjdUiAppBatterySaverModel
|
|
{
|
|
public:
|
|
static TjdUiAppBatterySaverModel &GetInstance(void);
|
|
struct BatterySaverData GetCurrentData(void);
|
|
void SetLcdIdleMode(bool enable);
|
|
|
|
private:
|
|
TjdUiAppBatterySaverModel() {};
|
|
~TjdUiAppBatterySaverModel() {};
|
|
};
|
|
|
|
} // namespace TJD
|
|
|
|
#endif |